Error after upgrading to Xcode 7

I am developing a mobile application with the Ionic Framework and I got a very strange error that broke my entire build.

'MyApp / Plugins / com.phonegap.plugins.facebookconnect / FacebookSDK.framework / FacebookSDK (FBLikeButtonBackgroundSelectedPNG.o)' does not contain a bit code. You must rebuild it with the bit code turned on (Xcode Setup ENABLE_BITCODE), get the updated library from the provider, or disable the bit code for this purpose. for arm64 architecture clang: error: linker command failed with exit code 1 (use -v to see Call)

This will happen after. It worked great before upgrading to the new version of Xcode 7.0. I tried disabling BITCODE for the project, but the Facebook functionality for APP is not working properly.

EDIT

If I disable BITCODE for the project, the Facebook plugin will open the browser instead of the application, so Disabling BITCODE in this case is not a solution.

+7
xcode xcode7 cordova ionic-framework
source share
5 answers

Here is what it worked for me:

I steal it from here: https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1116

  • Update plist with steps 2 and 3 with e Facebook iOS 9 guide
  • Turn off the bit code setting (you already know how to do this: smile :)
+2
source share

From Xcode 7, BitCode, enable it by default. You will get this error until all applications and frameworks in your bundle contain a bitcode.

to remove this warning, you can disable it in the build settings

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

+17
source share

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 would advise you to follow.

Like work, you can try

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

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

+7
source share
 I too face the same problem while updating the frameworks for giving iOS9 support. 1.To change In build settings: 

Enable Bitcode = "NO"

 Not only for your project targets, to set all of your targets including your pods(Project) targets. 2.Change the Build Architecure only: 

Debugging - YES

Relese - NO

This is fixed!

+4
source share

You must update your Facebook SDK. This has helped me since the latest version of the Facebook SDK supports bit code. You do not need to upgrade to v4, since version 3.24 works fine.

There are several other steps for iOS 9 compatibility, such as whitelisting FB domains and authorizing FB applications.

The next version supports bit code and can compile with the flag set to YES:

The relevant section of the FB documentation says:

Is bit code supported?

v4.6 and v3.24 SDKs support bit code. If you are using earlier versions, you must disable the bit code.

All the steps necessary to upgrade to iOS 9 (transport security / application whitelist) can be found here: https://developers.facebook.com/docs/ios/ios9

But I have to tell you that although it compiles / links normally and uses the β€œintegrated” Facebook login dialog, it still uses the browser as a modal presentation in your application. For me, this is a regression from the previous integration of the Facebook application. I do not know if there is a way to return the old "native" login dialog.

0
source share

All Articles