4
votes

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.

2
update your Facebook SDK v 4.6 other wise change setting in .plist file Enable BitCode = No;Dharmesh Dhorajiya

2 Answers

7
votes

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 :)

5
votes

find enable bitcode build settings and set to NO:

Build settings

or else upgrade your FacebookSDK