LoginSignup
0
1

More than 1 year has passed since last update.

ios admobで、GADInvalidInitializationExceptionが消えなくて泣きそうだった話

Posted at

admobに登録してあるアプリのメンテナンスしようとして、

を参考に作業してみようかなと思って
pod update
の後、buildしてみると、
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
という例外でアプリがクラッシュしまくる。

言われた通りにInfo.plistを編集してるだけなのだが。。。
ググりまくったら、以下の解決法を発見。
これで良いのかわからないけど、とりあえず動くようになった。

解決法

Info.plistに
<key>GADIsAdManagerApp</key>
<true/>

を追加。

参考リンク

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1