question

mysticbits avatar image
mysticbits asked

Compile error Unity/IOS/Xcode

When I try to compile in Xcode my unity project (2019.3.11) it fails with the following error :

/.../ios36/Classes/Native/PlayFab2.cpp:20808:3: warning: declaration does not declare anything [-Wmissing-declarations]
struct

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JayZuo avatar image JayZuo ♦ commented ·

Could you please share more details? What's the SDK version you are using? Have you tried a very simple project like the one here to see if it works?

0 Likes 0 ·

1 Answer

·
Tommy Li avatar image
Tommy Li answered

This warning is not directly caused by PlayFab. It is caused by Xcode 11.4's new defaults.

Here's a related thread on Unity Forum:

https://forum.unity.com/threads/declaration-does-not-declare-anything-xcode-11-4.855307/

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.