I have updated Facebook SDK 4.37, after updating the SDK I started seeing one compile time error to disable bitcode. I can't disable bitcode because I have watch kit app which really need to have bitcode enable. If anyone faced this issue and solution, please let me know.
The error that I am seeing is here:
FBSDKShareKit.framework/FBSDKShareKit(FBSDKLikeBoxView.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file FBSDKShareKit.framework/FBSDKShareKit' for architecture arm64
I also posted the same thing on Developers page on Facebook. They are saying this is known and trying to fix.
Often, the easier option is simply to turn bitcode off. This is likely the reason Apple hasn't yet mandated bitcode on all iOS apps. However, bitcode is mandatory for tvOS and watchOS apps.
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.
The current version of the Facebook SDK for iOS is version 14.1. 0.
Finally, Facebook fixed the bug in 4.38
https://developers.facebook.com/docs/ios/change-log-4x/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With