The Google Mobile Ads SDK was initialized incorrectly

今天在升级google ad 的时候,启动应用就有一个crash,看日志:
The Google Mobile Ads SDK was initialized incorrectly_第1张图片
关键信息如下:
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里面添加一个配置就行了:

GADIsAdManagerApp

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开发)