按照官方在plist上添加
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
錯誤提示
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
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上添加
<key>GADIsAdManagerApp</key>
<true/>
再次運行即可,大概是屏蔽掉GoogleAppMeasurement.framework的檢查
本身只使用admob的話用不到它