我有一个Ionic 3项目,它在Ionic DevApp和Xcode上正常运行。但是,当我添加AdMob插件时,它可以正常运行Ionic DevApp,但不能在Xcode上运行。我尝试了Simulator和Real Device,但是我两个都犯了一些错误。
有我的错误代码;
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)