AdMobを実装するためにhttps://i-app-tec.com/ios/admob.htmlこちらのサイトを参考に実装しています。
1、GoogleService-Info.plistの追加
2、Pod init
3、Podfileにpod 'Firebase/AdMob'追加
4、Pod install
5、AppDelegateにFirebaseApp.configure()追加
という流れでやっているのですがうまくいきません。
今までに同じ流れ(のはず)でうまくできた経験があるのですが今回うまくいかない理由がわからず困っています。
シミュレータでアプリを起動すると起動したタイミングで下記のエラーが出て終了してしまいます。
何がいけないのでしょうか?
よろしくお願いします。
2019-06-26 16:29:55.036935+0900 MyApp[1588:18832] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/name/Library/Developer/CoreSimulator/Devices/235F9FD0-BFB1-4BD6-9491-455829EC279B/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-06-26 16:29:55.037475+0900 MyApp[1588:18832] [MC] Reading from private effective user settings.
2019-06-26 16:29:55.063805+0900 MyApp[1588:18771] *** 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'
*** First throw call stack:
(
0 CoreFoundation 0x00000001133b16fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000112955ac5 objc_exception_throw + 48
2 CoreFoundation 0x00000001133b1269 -[NSException raise] + 9
3 MyApp 0x000000010d339449 GADVerifyApplicationID + 148
4 MyApp 0x000000010d339f8f GADVerifyApplicationID + 3034
5 libdispatch.dylib 0x00000001145bdd7f _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00000001145bedb5 _dispatch_client_callout + 8
7 libdispatch.dylib 0x00000001145cc080 _dispatch_main_queue_callback_4CF + 1540
8 CoreFoundation 0x00000001133188a9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
9 CoreFoundation 0x0000000113312f56 __CFRunLoopRun + 2310
10 CoreFoundation 0x0000000113312302 CFRunLoopRunSpecific + 626
11 GraphicsServices 0x00000001160df2fe GSEventRunModal + 65
12 UIKitCore 0x000000011ddeeba2 UIApplicationMain + 140
13 MyApp 0x000000010d2263ab main + 75
14 libdyld.dylib 0x0000000114633541 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
回答1件
あなたの回答
tips
プレビュー