5

I integrated Google's AdMob SDK into a working iPhone app. I'm getting 12 errors that all start with 'Apple Mach-O Linker (Id) Error'. The text of the error messages typically refer to a low level objective C object called from a google library. For example:

Undefined symbols for architecture i386: "_NSInMemoryStoreType", referenced from: anon in libGoogleAnalytics.a(GAIDataStore.o) +[GAIDataStore memoryContextWithModel:withError:] in libGoogleAnalytics_debug.a(GAIDataStore.o)

I thought I might not be linking a necessary framework but that all seems to be in order. I followed the instructions at https://developers.google.com/mobile-ads-sdk/docs/ and my linked libraries tab looks like this:

screenshot of linked libraries

Unless I'm mistaken, it includes the frameworks that AdMob needs. Any suggestions much appreciated.

1
  • 1
    Did you add all_load to the Other Linker Flags?
    – louis.leon
    Sep 10, 2012 at 14:34

1 Answer 1

14

You probably just included the "add-ons" folder wholesale. Unfortunately that folder also includes the Google Analytics example project and binary. If you're not using analytics from there, I would remove the entire "GoogleAnalyticsiOS_2.0beta2" folder.

2
  • 1
    That was exactly it. Thank you very much RajPara. I love stack overflow.
    – Dessie
    Sep 10, 2012 at 21:35
  • in 6.12.0 there is no GA folder :(
    – Jacksonkr
    Sep 23, 2014 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.