Linker errors when integrating admob sdk into an iOS application

I have included the Google AdMob SDK in the working application for iPhone. I get 12 errors that start with "Apple Mach-O (Id) Linker Error". The text of the error messages usually refers to the low-level object of the C object, which is called from the google library. For instance:

Undefined characters for the i386 architecture: "_NSInMemoryStoreType" referenced: anon in libGoogleAnalytics.a (GAIDataStore.o) + [GAIDataStore memoryContextWithModel: withError:] in libGoogleAnalytics_debug.a (GAIDataStoreo)

I thought that I could not connect the necessary structure, but everything seems to be in order. I followed the instructions https://developers.google.com/mobile-ads-sdk/docs/ , and the linked libraries tab looks like this:

screenshot of linked libraries

If I'm wrong, it includes the framework that AdMob needs. Any suggestions that were highly appreciated.

+6
source share
1 answer

You probably just turned on the "advanced" option. Unfortunately, this folder also includes a sample Google Analytics project and a binary file. If you are not using analytics, I will delete the entire GoogleAnalyticsiOS_2.0beta2 folder.

+15
source

Source: https://habr.com/ru/post/925022/


All Articles