Firebase 5.18.0にアップデートしたらadMobでエラーになる件
何気に pod updateしたら Firebaseもアプデ来まして、ビルドしたらエラーを吐いて止まるようになってしまいました。あいたたた。
2019-03-19 15:53:31.672796+0900 hogehogehoge[6653:6945823] *** 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'
ところが運の良い私は、つい先日別件の調べものでadMobでtweeterサーチをかけてまして、以下のようなtweetがあったっけなーというのが頭の隅にあったわけです。
AdMobを5.18.0に上げたらエラーが出て、Info.plistにGADIsAdManagerApp: YESを追加したら解消した( ´・‿・`)https://t.co/FuZQs9x8Fm pic.twitter.com/4I5tsHEQY7
— 🐶 mono - Flutter と iOS/Swift とラブラドールの雑種( ´・‿・`) (@_mono) March 18, 2019
見事infoplistにitem追加したら直りました。意味は後で。