Google Mobile Ads SDK初始化时未进行AppMeasurement [英] The Google Mobile Ads SDK was initialized without AppMeasurement
问题描述
我对IOS开发的经验不是很丰富.这是我第一次尝试在应用程序中实现Google AdMob,并且在尝试运行模拟器时遇到此错误:由于未捕获的异常"GADInvalidInitializationException"而终止了应用程序,原因:未使用AppMeasurement初始化了Google Mobile Ads SDK.Google AdMob发布者,请按照以下说明进行操作:
对我有用
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
Try to add this property in your Info.plist file
It works for me
这篇关于Google Mobile Ads SDK初始化时未进行AppMeasurement的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!