小编kal*_*oji的帖子

将AdMob插件添加到离子项目时出现Xcode错误

我有一个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)

xcode admob ionic3

2
推荐指数
3
解决办法
2873
查看次数

标签 统计

admob ×1

ionic3 ×1

xcode ×1