Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error after updating to Xcode 7

I am developing mobile app with Ionic Framework and I just received very strange error that broke my whole build.

'myapp/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(FBLikeButtonBackgroundSelectedPNG.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 arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

That happen after . It worked perfectly before upgrading to the new Xcode version 7.0. I have tried to disable the BITCODE for the project but the Facebook functionality of the APP does not work as expected.

EDIT

If I disable BITCODE for the project the Facebook plugin opens the browser instead of the app therefore Disabling BITCODE is not a solution in that case.

like image 631
radioaktiv Avatar asked Sep 17 '15 17:09

radioaktiv


2 Answers

From Xcode 7, BitCode in enable it by default. You will get this error until all apps and frameworks in your bundle doesn't include bitcode.

to remove this warning you can disable this in Build Settings

Build Settings>All>Build Options>Enable Bitcode = NO enter image description here

like image 193
Gaurav Pandey Avatar answered Sep 22 '22 08:09

Gaurav Pandey


This is a known issue with the Facebook Plugin. There is an open ticket at https://github.com/Wizcorp/phonegap-facebook-plugin/issues/111614 - I'd suggest you keep an eye on.

As a work-around, you might try

Project > Build Settings > Build Options > Enable Bitcode = No

(found @ http://forum.ionicframework.com/t/error-after-updating-to-xcode-7/32641)

like image 42
Paul Sturm Avatar answered Sep 23 '22 08:09

Paul Sturm