Facebook Connect SDK with armv7 architecture? :(

The recently built iPad app using the Facebook Connect SDK. It was recommended that I change the architecture of the project to armv6 in order to enable the Facebook Connect SDK.

After changing the project to armv6, it works fine on the simulator and device, however, when I try to send the application to iTunes Connect, I get the following error when sending:

iPad: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv7 

So, I did some research and a simple architecture change (as it should) “should” fix the problem:

enter image description here

However, the project cannot build with the following error (s):

 ld: warning: ignoring file PROJECT/facebook-ios-sdk/build/facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv6/libfacebook_ios_sdk.a, file was built for archive which is not the architecture being linked (armv7) Undefined symbols for architecture armv7: "_OBJC_CLASS_$_Facebook", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Someone will correct me if I am wrong, but it seems like iTunes Connect will not accept a binary iPad application without armv7, and the Facebook SDK will not allow you to create an application using armv7, right?

The only viable solution is the ability to create a Facebook Connect SDK using armv7, with which I was not successful, I read a lot of forums and posts that did not really come up with a solution that works openly.

I struggled with this for about 7 hours, and I honestly don't know what else to do.

Has anyone submitted an iPad with just the app with the Facebook Connect SDK enabled? It would be interesting to see what settings you have for your project.

Thanks guys, any help would be greatly appreciated.

+4
source share
1 answer

Instead of waiting for a new release of the Facebook SDK, you can incorporate the Facebook source code into the project and then compile it. It should work for armv7 architecture.

0
source

All Articles