gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 17:46:32 24 4
gpt4 key购买 nike

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'

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

最佳答案

我遇到了同样的问题并通过添加 GADIsAdManagerApp 解决了它带有 bool 值的键 YES到我的应用程序的Info.plist .

enter image description here

正如您在 sdk documents 中看到的那样,

This step is required as of Google Mobile Ads SDK version 7.42.0. Failure to add add this Info.plist entry results in a crash with the message: "The Google Mobile Ads SDK was initialized incorrectly."

关于ios - ios中的cordova 'admob free'-应用程序运行时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55781439/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com