Facebook SDK for iOS6/Xcode 4.5 not working [duplicate] Facebook SDK for iOS6/Xcode 4.5 not working [duplicate] xcode xcode

Facebook SDK for iOS6/Xcode 4.5 not working [duplicate]


For a temporary fix you can do what Sudhakar said, but the app won't run on an iPhone 5, (or atleast with my tests it didn't). You really need a properly compiled SDK.

The current Facebook SDK is build for armv6. I hear they are working on getting a new version out asap that is build for armv7.

In the meantime you can clone down the facebook SDK from github and compile the SDK to work with armv7 yourself. Below are the instructions:

  1. Download or clone a copy of the source code from the git hub page (https://github.com/facebook/facebook-ios-sdk)
  2. Open up the xcode project and in the build settings change the architecture to armv7.
  3. Save and close
  4. Navigate to /scripts and in terminal run build_all.sh

This will then compile the source and output builds/FacebookSDK.framework To get this to work I had to clone the git repository to /Desktop/iOSI replaced the FacebookSDK.framework that was within my app with the newly created version and it worked like a charm.

good luck!


Click the your are Xcode Project -> in Architures tab -> valid Architures -> keep armv7 only and remove armv7s.In my case it working fine, this is only temparary solution.