Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture arm64 Google AdMob in Version 6.7.0

Okay so google AdMob API is supposed to work now for arm64, but I am getting this error.

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o)
objc-class-ref in libGoogleAdMobAds.a(GADGestureIdUtil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've searched on Google and many people suggest to avoid using 64Bit capabilities. But now the API is supposed to work so I don't see why I should do that.

I am really stucked here.

like image 1000
David Cruz Avatar asked Dec 05 '22 08:12

David Cruz


1 Answers

Okay so I found the solution.

Google guide iOS developers on how to implement AdMob SDK, however they are missing some info. They tell you it's mandatory to add these Frameworks:

   - AudioToolbox.Framework
   - MessageUI.Framework
   - SystemConfiguration.Framework
   - CoreGraphics.Framework

To solve the error I added this ones also:

   -CoreData.Framework
   -AdSupport.Framework
   -CoreTelephony.Framework
like image 97
David Cruz Avatar answered May 19 '23 14:05

David Cruz