Ios – How to fix Facebook SDK “does not contain bitcode” error

bitcodefacebookiosswift2xcode7

I got below error after updating my Xcode to the latest version:

ld: '/Users/mimicreative/Documents/Kerja/Backup/FacebookSDK/FBSDKMessengerShareKit.framework/FBSDKMessengerShareKit(FBSDKMessengerApplicationStateManager.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. for architecture armv7

However I don't got this error on the earlier version of Xcode. And that error happened when I archive my project.

Best Answer

there is already an update for facebook where bitcode is enabled. check in cocoapods and you eill find it. its Version 4.5 i think

This is used for appthining. If you dont want to update the sdk you cam turn off bitcode in your project. Go to your target-> Settings and serch for bitcode. Than turn the option to NO. By default its activated

EDIT: Facebook Version is 4.6 as @Dharmesh Dhorajiya said :)

Related Topic