Error when loading banner Ads (libc++abi.dylib: terminating with uncaught exception of type NSExcept

187 views
Skip to first unread message

Heidi

unread,
Jul 11, 2019, 10:36:43 AM7/11/19
to Google Mobile Ads SDK Developers
Hello:

I am unable to resolve an error when attempting to include a banner ad. I added the 4 Google frameworks to my project, the class assigned to the banner is "GADBannerView", I added the GADApplicationIdentifer to the plist, included GoogleMobile Ads to app delegate and view controller.  This project is a tabbed view and right now, I am only including the banner on the first page

 Here is my log:
-----

2019-07-11 10:35:48.103406-0400 Med_SLP_1[53617:3052650] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.

2019-07-11 10:35:48.191268-0400 Med_SLP_1[53617:3052945] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/michelle/Library/Developer/CoreSimulator/Devices/149D34A0-2810-47CF-9864-08E59EE98DCA/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2019-07-11 10:35:48.191939-0400 Med_SLP_1[53617:3052945] [MC] Reading from private effective user settings.

2019-07-11 10:35:48.215224-0400 Med_SLP_1[53617:3052650] Unknown class _TtC9Med_SLP_113GADBannerView in Interface Builder file.

2019-07-11 10:35:48.242568-0400 Med_SLP_1[53617:3052952] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.242568-0400 Med_SLP_1[53617:3052965] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.242724-0400 Med_SLP_1[53617:3052965] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.242728-0400 Med_SLP_1[53617:3052952] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.242809-0400 Med_SLP_1[53617:3052969] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.244154-0400 Med_SLP_1[53617:3052965] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.244202-0400 Med_SLP_1[53617:3052968] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.244397-0400 Med_SLP_1[53617:3052965] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.244555-0400 Med_SLP_1[53617:3052969] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.245100-0400 Med_SLP_1[53617:3052969] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.245963-0400 Med_SLP_1[53617:3052965] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.246153-0400 Med_SLP_1[53617:3052952] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.246255-0400 Med_SLP_1[53617:3052965] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.246405-0400 Med_SLP_1[53617:3052968] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-07-11 10:35:48.305957-0400 Med_SLP_1[53617:3052650] Failed to set (adUnitID) user defined inspected property on (UIView): [<UIView 0x7fd4eac18e50> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key adUnitID.

2019-07-11 10:35:48.309465-0400 Med_SLP_1[53617:3052650] <Google> To get test ads on this device, set: request.testDevices = @[ kGADSimulatorID ];

2019-07-11 10:35:48.321715-0400 Med_SLP_1[53617:3052650] *** 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                      0x0000000105ffe6fb __exceptionPreprocess + 331

1   libobjc.A.dylib                     0x0000000104a11ac5 objc_exception_throw + 48

2   CoreFoundation                      0x0000000105ffe269 -[NSException raise] + 9

3   Med_SLP_1                           0x0000000103e55d49 GADVerifyApplicationID + 148

4   Med_SLP_1                           0x0000000103e5688f GADVerifyApplicationID + 3034

5   Med_SLP_1                           0x0000000103e56c27 GADVerifyApplicationID + 3954

6   Med_SLP_1                           0x0000000103e5e03c GADDispatchAsyncSafeMainQueue + 45

7   Med_SLP_1                           0x0000000103e56bfd GADVerifyApplicationID + 3912

8   Med_SLP_1                           0x0000000103eb1fd1 GAD_GADAdSource_x86_64_7_46_0 + 2096

9   Med_SLP_1                           0x0000000103e750c1 GAD_GADInternalBannerView_x86_64_7_46_0 + 8013

10  Med_SLP_1                           0x0000000103e74537 GAD_GADInternalBannerView_x86_64_7_46_0 + 5059

11  Med_SLP_1                           0x0000000103e5e03c GADDispatchAsyncSafeMainQueue + 45

12  Med_SLP_1                           0x0000000103e742c0 GAD_GADInternalBannerView_x86_64_7_46_0 + 4428

13  Med_SLP_1                           0x0000000103e74706 GAD_GADInternalBannerView_x86_64_7_46_0 + 5522

14  Med_SLP_1                           0x0000000103e2215f GAD_GADBannerView_x86_64_7_46_0 + 4444

15  Med_SLP_1                           0x0000000103dba8f0 $s9Med_SLP_119FirstViewControllerC11viewDidLoadyyF + 1136

16  Med_SLP_1                           0x0000000103dbab94 $s9Med_SLP_119FirstViewControllerC11viewDidLoadyyFTo + 36

17  UIKitCore                           0x0000000116cc243b -[UIViewController loadViewIfRequired] + 1183

18  UIKitCore                           0x0000000116cc2868 -[UIViewController view] + 27

19  UIKitCore                           0x0000000116bf8b70 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 472

20  UIKitCore                           0x0000000116bf7ff9 -[UITabBarController transitionFromViewController:toViewController:] + 59

21  UIKitCore                           0x0000000116bf42c1 -[UITabBarController _setSelectedViewController:] + 410

22  UIKitCore                           0x0000000116bf4095 -[UITabBarController setSelectedViewController:] + 109

23  UIKitCore                           0x0000000117784a19 +[UIView(Animation) performWithoutAnimation:] + 90

24  UIKitCore                           0x0000000116bee305 -[UITabBarController _selectDefaultViewControllerIfNecessaryWithAppearanceTransitions:] + 506

25  UIKitCore                           0x0000000116bef2ae -[UITabBarController viewWillAppear:] + 213

26  UIKitCore                           0x0000000116cc8437 -[UIViewController _setViewAppearState:isAnimating:] + 687

27  UIKitCore                           0x0000000116cc8ba2 -[UIViewController __viewWillAppear:] + 131

28  UIKitCore                           0x0000000116cca38d -[UIViewController viewWillMoveToWindow:] + 696

29  UIKitCore                           0x000000011777b195 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 656

30  UIKitCore                           0x000000011778c069 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 456

31  UIKitCore                           0x00000001172fafbc -[UIWindow addRootViewControllerViewIfPossible] + 1027

32  UIKitCore                           0x00000001172fb327 -[UIWindow _setHidden:forced:] + 289

33  UIKitCore                           0x000000011730df86 -[UIWindow makeKeyAndVisible] + 42

34  UIKitCore                           0x00000001172bdf1c -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4555

35  UIKitCore                           0x00000001172c30c6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1617

36  UIKitCore                           0x0000000116b086d6 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 904

37  UIKitCore                           0x0000000116b10fce +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153

38  UIKitCore                           0x0000000116b082ec -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236

39  UIKitCore                           0x0000000116b08c48 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1091

40  UIKitCore                           0x0000000116b06fba __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 782

41  UIKitCore                           0x0000000116b06c71 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433

42  UIKitCore                           0x0000000116b0b9b6 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 576

43  UIKitCore                           0x0000000116b0c610 _performActionsWithDelayForTransitionContext + 100

44  UIKitCore                           0x0000000116b0b71d -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223

45  UIKitCore                           0x0000000116b106d0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392

46  UIKitCore                           0x00000001172c19a8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 514

47  UIKitCore                           0x0000000116e78dfa -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361

48  FrontBoardServices                  0x000000010fd00125 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448

49  FrontBoardServices                  0x000000010fd09ed6 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 283

50  FrontBoardServices                  0x000000010fd09700 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53

51  libdispatch.dylib                   0x000000010afb0db5 _dispatch_client_callout + 8

52  libdispatch.dylib                   0x000000010afb42ba _dispatch_block_invoke_direct + 300

53  FrontBoardServices                  0x000000010fd3b146 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30

54  FrontBoardServices                  0x000000010fd3adfe -[FBSSerialQueue _performNext] + 451

55  FrontBoardServices                  0x000000010fd3b393 -[FBSSerialQueue _performNextFromRunLoopSource] + 42

56  CoreFoundation                      0x0000000105f65be1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

57  CoreFoundation                      0x0000000105f65463 __CFRunLoopDoSources0 + 243

58  CoreFoundation                      0x0000000105f5fb1f __CFRunLoopRun + 1231

59  CoreFoundation                      0x0000000105f5f302 CFRunLoopRunSpecific + 626

60  GraphicsServices                    0x000000010d5ba2fe GSEventRunModal + 65

61  UIKitCore                           0x00000001172c4ba2 UIApplicationMain + 140

62  Med_SLP_1                           0x0000000103db367b main + 75

63  libdyld.dylib                       0x000000010b025541 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb) 


----



Any help would be GREATLY appreciated!! 

Mobile Ads SDK Forum Advisor Prod

unread,
Jul 11, 2019, 3:44:54 PM7/11/19
to mvad...@gmail.com, google-adm...@googlegroups.com
Hello there,
 

Thanks for reaching out to us. The error is this one: 



2019-07-11 10:35:48.305957-0400 Med_SLP_1[53617:3052650] Failed to set (adUnitID) user defined inspected property on (UIView): [<UIView 0x7fd4eac18e50> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key adUnitID.

You must be trying to link the AdUnitID via IB, which is not possible with the version of the SDK. You will have set it up programmatically only and you can go through our sample apps to learn more.

Regards,
Deepika Uragayala
Mobile Ads SDK Team


 

ref:_00D1U1174p._5001U8KnDH:ref
Reply all
Reply to author
Forward
0 new messages