Open MorganMoon opened 7 years ago
Did it run the set up script beforehand? Looks like all DllImport are failing.
I'm getting exactly the same problem.
What do you mean by setup script? We set this up using the following page:
https://developers.facebook.com/docs/unity/getting-started/ios
We then got a couple of compile errors:
/Users/liam/Desktop/PolyCharge/Libraries/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm:354:96: Cannot initialize a parameter of type 'id
If I comment these lines out, the build continues, but then xcode complains at version 7 being used due to TwitterKit, and forces the sdk version up to 9.0
At this point the compile finishes but we end up with the above linker errors.
Any advice would be greatly appreciated
Another note, the download for 7.10.0 in the following page: https://developers.facebook.com/docs/unity/downloads Actually links to 7.9.4 (we found 7.10.0 somewhere else)
P.s. we just tried going back to 7.9.4 and it all works.
For those of you may encounter this after, I solved this problem by, under FacebookSDK/SDK/Editor/iOS there are two files FBUnityInterface.mm and FBUnityUtility.mm, checked the iOS checkbox under "Select platforms for plugin", and then rebuild you should have no problem.
@jstzwd thanks for that ! It worked for me.
For others who, like me, verify that the boxes referred to by @jstzwd are checked on Windows, I found them to be unchecked when opening the project on Mac . . . I'm not sure how to check the boxes and ensure that the changes stick on Windows, but as a last resort open the project on Mac.
With that being said, I can now build locally but cloud build still fails due to undefined symbols in the SDK.
For those of you may encounter this after, I solved this problem by, under FacebookSDK/SDK/Editor/iOS there are two files FBUnityInterface.mm and FBUnityUtility.mm, checked the iOS checkbox under "Select platforms for plugin", and then rebuild you should have no problem.
thanks! I resolved. copy FacebookSDK/SDK/Editor/iOS to Plugins/iOS
facebook-sdk-for-unity version: 7.10.0 using latest 5.x version of unity
Here are the errors in the cloud build log: