Google 移动广告 SDK 在没有 AppMeasurement 的情况下进行了初始化

The Google Mobile Ads SDK was initialized without AppMeasurement(Google 移动广告 SDK 在没有 AppMeasurement 的情况下进行了初始化)
本文介绍了Google 移动广告 SDK 在没有 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

解决方案

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

这篇关于Google 移动广告 SDK 在没有 AppMeasurement 的情况下进行了初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

No JNI_OnLoad found in ... skipping init(在 ... 中未找到 JNI_OnLoad 正在跳过初始化)
No JNI_OnLoad found skipping init gt; Application shutdown(没有找到跳过初始化的 JNI_OnLoad 应用程序关闭)
Fatal error: use of unimplemented initializer #39;init(coder:)#39; for class(致命错误:对类使用未实现的初始化程序“init(coder:))
Error in Swift class: Property not initialized at super.init call(Swift 类中的错误:在 super.init 调用时未初始化属性)
Conditional Binding: if let error – Initializer for conditional binding must have Optional type(条件绑定:if let error - 条件绑定的初始化程序必须具有可选类型)
Safe to signal semaphore before deinitialization just in case?(在取消初始化之前发出信号量信号安全吗?以防万一?)