ios中的cordova'admob free' - 应用程序运行时出现异常

use*_*595 1 admob ios cordova

https://ratson.github.io/cordova-plugin-admob-free

运行结果异常:

Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers should follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework, set the -ObjC linker flag, and set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers should follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'
Run Code Online (Sandbox Code Playgroud)

我在 *.plist 文件中设置了“GADApplicationIdentifier”值,但仍然出现相同的错误。它可以是什么?

Mo *_*ani 6

我遇到了同样的问题,并通过将GADIsAdManagerApp带有布尔值的键添加YES到我的应用程序的Info.plist.

在此处输入图片说明

正如你在sdk 文档中看到的,

从 Google 移动广告 SDK 7.42.0 版开始,此步骤是必需的。未能添加添加此 Info.plist 条目会导致崩溃并显示消息:“Google 移动广告 SDK 初始化不正确。”