Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Google Mobile Ads SDK was initialized without AppMeasurement

I'm not very experienced in the IOS development. This is my first try to implement Google AdMob to my application, and I get this error when I try to run the simulator: Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without AppMeasurement. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework and set the -ObjC linker flag.

I'm using Xcode 12 beta on macOS Big Sur. I tried to reinstall Google pod a couple of times, but still get the same error. Please help

like image 704
Rut Avatar asked Feb 28 '21 17:02

Rut


2 Answers

Manually add the -ObjC linker flag to Other Linker Flags in your target's build settings even if you're using CocoaPods.

Manually adding the -Obj` linker flag to Other Linker Flags

like image 157
Daniel Storm Avatar answered Nov 16 '22 07:11

Daniel Storm


Try to add this property in your Info.plist file enter image description here

It works for me

like image 33
Zim Avatar answered Nov 16 '22 07:11

Zim