Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

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

like image 788
Darren Avatar asked Sep 13 '12 09:09

Darren


2 Answers

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.

like image 187
Nicholas Avatar answered Oct 14 '22 02:10

Nicholas


iPhone5's cpu is A6(armv7s). The existing Admob sdk does not support it. We have to wait for admob to update the sdk.

like image 22
Vince Yuan Avatar answered Oct 14 '22 01:10

Vince Yuan