New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS app crash at startup #688
Comments
This is the crash log from iPhone simulator, seems like FBAEMKit wasn't included in the final product. Tested with SDK 16.0.1.
|
Same issue on our side, it's exploding by not including the FBAEMKit as expected. |
Same issue here |
It's crashing in the same way for me, for local builds. Doesn't seem to matter which version of the SDK I use either. |
@SaariTech, @HanzaRu, @eranroza FWIW - I think this might be a dupe/reoccurrence of this issue: #659 |
The fix from that thread didn't work for me.
|
I tried multiple permutations of the fixes, and I can say that on Unity Build Automation the only thing needed is to disable Link frameworks statically. (Add use_frameworks! to Podfile is already enabled by default in Google External Dependency Manager) Can confirm that Cocoapods version matters, the build crashes on Cocoapods 1.11.x |
Thank you for coming to my Ted Talk, it works for release builds as well, they get uploaded to AppStore and no crashes. I also tested it on a Jenkins CI. |
@vg-swift Thank you for your post! So you solve it by unchecking the Link frameworks statically ? I am trying to see if 16.0.2 will solve the issue by itself, but I don't think so! |
I could fix this by adding the addToAllTargets parameter in dependecies.xml
|
My app crashes at launch after adding the Facebook 16.0.2 SDK with the same problem. When I unchecked "Link frameworks statically" I get errors building in XCode "DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead" for various SDKs such as AppLovin and Unity Ads mediation. |
Same error with 17.0.2 SDK |
Checklist
Environment
2022.2.19
2022.X
16.0.0
14.2.0
(Have tried14.1.0
too)iOS
version15.2
Goals
I want to build the project with Facebook SDK using Unity Cloud Build.
Expected Results
The app project don't crash on startup in iOS device.
Actual Results
The project built successively, uploaded to TestFlight but the app with Facebook SDK keep crashing at startup.
I have removed Facebook SDK and tried again, it doesn't crash on startup, later I added latest Facebook SDK, it crashed again at startup.
Steps to Reproduce
Code Samples & Details
For xcode 14.2 (experimental) in cloud build, no extra steps needed.
For xcode 14.1 in cloud build, I added this code (iOSBuild.cs) to make the build don't fail and to pass Apple Store Connect verifier:
The text was updated successfully, but these errors were encountered: