Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Facebook SDK "does not contain bitcode" error?

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.

like image 224
Ega Setya Putra Avatar asked Dec 14 '22 11:12

Ega Setya Putra


2 Answers

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

like image 133
Björn Ro Avatar answered Dec 26 '22 10:12

Björn Ro


find enable bitcode build settings and set to NO:

Build settings

or else upgrade your FacebookSDK

like image 32
Anbu.Karthik Avatar answered Dec 26 '22 10:12

Anbu.Karthik