When I made a pod update of Firebase’s AdMob, the app started falling when the app was launched. The contents of the error are as follows.
*** 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’
It worked fine after adding the GADApplicationIdentifier setting to “Info.plist”, NOT “GoogleService-Info.plist”.
Add the GADApplicationIdentifier setting to “Info.plist”, NOT “GoogleService-Info.plist”.
コメント