2

I am trying to build the my app containing Facebook SDK with Xcode 7 in iOS 9.0. I am getting this error.

Thanks

Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136
PK86
  • 1,218
  • 2
  • 14
  • 25

2 Answers2

5

Update your Facebook SDK version to 4.6

The SDK supports various iOS 9 features including Bitcode. In addition, the SDK dialogs such as Login, Like, Share Dialogs automatically determine the best UI based on the device, including SFSafariViewController instead of Safari. Follow the our Preparing for iOS 9 guide.

https://developers.facebook.com/docs/ios/downloads

Facebook SDK 4.6 Download Link

Also check this for upgrading to iOS 9 Facebook SDK https://developers.facebook.com/docs/ios/ios9


If you getting another bitcode error from other SDK then you can disable bitcode from setting of Xcode target.

For Bitcode issue you can check this question : New warnings in iOS 9

If you have all SDK (Frameworks) with the bitcode enabled then you will not get the bitcode error. If you get that error then Disable it from settings.

enter image description here

Community
  • 1
  • 1
Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136
  • I downloaded this crap (version 4.28) today, and it did not have bitcode. Fail. – Jonny Nov 16 '17 at 09:44
  • [4.28.0](https://developers.facebook.com/docs/ios/downloads) is the latest version as of today (20171116). It really does not include bitcode for some of the bundled sub-frameworks. However I think I was able to fix my issue by installing the SDK through cocoapods, which really means it compiles it all from scratch, thus getting bitcode enabled. For anyone with the same problem, check out https://github.com/facebook/facebook-ios-sdk.git – Jonny Nov 16 '17 at 10:23
  • That's good. The code you linked to are all precomiled binaries with no bitcode in them. Also https://developers.facebook.com/docs/ios/getting-started does not mention Cocoapods anywhere, I had to google around for awhile to find it. – Jonny Nov 17 '17 at 04:18
0

Okay I'm just gonna add my own answer.

Import using Cocoapods.

https://github.com/facebook/facebook-ios-sdk.git

That will get bitcode compiled into the framework.

Jonny
  • 15,955
  • 18
  • 111
  • 232