Facebook iOS SDK only compiling for armv7
-
06-12-2019 - |
Question
I'm trying to use the facebook-ios-sdk in an iPhone application. I followed the setup instructions and it works perfectly on the simulator, but I cannot get it to run on my actual device. I am using Xcode 4.3 and my deployment target is 3.1 (with ARC).
When I try to run the application on the device, it complains that it cannot link the facebook-ios-sdk since the statically linked library (as per suggestion when using ARC) does not support armv6? According to the facebook-ios-sdk page it does however support it.
Is there a different way to compile the linked lib than described on the facebook-ios-sdk page to include armv6?
Solution
In addition to what rogchap mentioned, is the value of Valid Architectures "armv6 armv7" in the Build Settings for your facebook-ios-sdk project?
And just to be sure, my Architectures setting reads as follows without the quotes:
"armv6 $(ARCHS_STANDARD_32_BIT)"
OTHER TIPS
Open facebook-ios-sdk.xcodeprodj
, then in Build Settings -> Architectures add armv6
.
Build/rebuild the static library via the included script:
./scripts/build_facebook_ios_sdk_static_lib.sh
The Library should now work with armv6
and armv7
Another hint: check your info.plist file for the key 'required device capabilities' and make sure that there is no value like 'armv7'. That would exclude armv6 devices.