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/>
を追加。