Ios – Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

armv7ioslinker-errorsxcode

I've just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error.

ld: file is universal (3 slices) but does not contain a(n) armv7s
slice: /Users/Darren/Documents/Dev stuff/My
App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a for architecture
armv7s clang: error: linker command failed with exit code 1 (use -v to
see invocation)

Can someone shed some light on what this error it and how to fix it?
I am using adWhirl with AdMob.

Thanks

EDIT —
I am also getting this error in another project for the file libfacebook_ios_sdk.a

Best Answer

The same answer as I gave in this thread:

If you want to remove the support for any architecture, try this:

Project -> Build Settings -> remove the architecture from "valid architectures"

You can use this as a temporary solution until the library has been updated. You have to remove the flag from your own project.

Related Topic