0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have 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に

    <true/>```
を追加。

#参考リンク
https://stackoverflow.com/questions/66411662/the-google-mobile-ads-sdk-was-initialized-without-appmeasurement

https://qiita.com/ko2ic/items/407f2e2841b355ebd126
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?