"missing required architecture x86_64 in file libGoogleAdMobAds.a"

2,327 views
Skip to first unread message

Ricardo Fonseca

unread,
Jun 19, 2014, 11:31:48 AM6/19/14
to google-adm...@googlegroups.com
Hi everyone,

I'm using AdMob for iOS (GoogleAdMobAdsSdkiOS-6.5.1) and everything was working fine till I ran and built for 64-bit. 

Then I got a few errors:


ld: warning: ignoring file libGoogleAdMobAds.a, missing required architecture x86_64 in file libGoogleAdMobAds.a (3 slices)

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_GADBannerView", referenced from:

      objc-class-ref in ViewController.o

  "_OBJC_CLASS_$_GADRequest", referenced from:

      objc-class-ref in ViewController.o

  "_kGADAdSizeSmartBannerPortrait", referenced from:

      -[ViewController showAds] in ViewController.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


From the solutions I found elsewhere (like changing the Architecture on Build Settings) are not working, and I believe to have all files in the Target.

Help? 

Thanks!

Eric Leichtenschlag

unread,
Jun 25, 2014, 10:50:30 PM6/25/14
to google-adm...@googlegroups.com
From the release notes, AdMob add 64 bit support in version 6.6.0. You can grab the latest version of the SDK (now 6.9.3) with 64 bit support at https://developers.google.com/mobile-ads-sdk/download.

Thanks,
Eric

rahul varma

unread,
Oct 31, 2014, 2:56:20 PM10/31/14
to google-adm...@googlegroups.com
Hey check below is the error i get

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_GADRequest", referenced from:

      objc-class-ref in Map_ViewController.o

  "_OBJC_CLASS_$_GAI", referenced from:

      objc-class-ref in Map_ViewController.o

      objc-class-ref in cls_AppDelegate.o

  "_OBJC_CLASS_$_GAIDictionaryBuilder", referenced from:

      objc-class-ref in Map_ViewController.o

  "_OBJC_CLASS_$_GAITrackedViewController", referenced from:

      _OBJC_CLASS_$_Map_ViewController in Map_ViewController.o

  "_OBJC_METACLASS_$_GAITrackedViewController", referenced from:

      _OBJC_METACLASS_$_Map_ViewController in Map_ViewController.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

@Eric : I have checked all possible things to make this work. But no luck.

Also tried the new sdk but the same occurs. 

Could you please give me a solution to this problem ?

Thanks,

Rahul

Eric Leichtenschlag

unread,
Oct 31, 2014, 3:45:12 PM10/31/14
to google-adm...@googlegroups.com
It looks like you're also using the Google Analytics library. Under build settings for your target, double check the library search paths to see that it includes a path to where you have the Mobile ads and Analytics SDKs.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages