iOS Question Error building old App

ilan

Expert
Licensed User
Longtime User
hi,

i am trying to build an old app that i did few month ago and i am getting an error using the lates b4i version (6.50)


Application_Start
<Google> To get test ads on this device, set: GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = @[ kGADSimulatorID ];
Error occurred on line: 158 (Main)
The Google Mobile Ads SDK was initialized incorrectly. Google AdMob publishers, 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, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist
Stack Trace: (
CoreFoundation __exceptionPreprocess + 350
libobjc.A.dylib objc_exception_throw + 48
CoreFoundation -[NSException raise] + 9
Rapid Cube GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 263
Rapid Cube GADApplicationInterfaceOrientation + 3379
Rapid Cube GADApplicationInterfaceOrientation + 4304
Rapid Cube GADDispatchAsyncSafeMainQueue + 45
Rapid Cube GADApplicationInterfaceOrientation + 4262
Rapid Cube GAD_GADAdSource_x86_64_7_52_0 + 2093
Rapid Cube GAD_GADInterstitial_x86_64_7_52_0 + 3660
Rapid Cube GAD_GADInterstitial_x86_64_7_52_0 + 2819
Rapid Cube GADDispatchAsyncSafeMainQueue + 45
Rapid Cube GAD_GADInterstitial_x86_64_7_52_0 + 2391
Rapid Cube GAD_GADInterstitial_x86_64_7_52_0 + 1917
Rapid Cube -[B4IAdInterstitial RequestAd] + 180
Rapid Cube -[b4i_main _application_start:] + 5408
CoreFoundation __invoking___ + 140
CoreFoundation -[NSInvocation invoke] + 287
Rapid Cube +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1669
Rapid Cube -[B4IShell runMethod:] + 401
Rapid Cube -[B4IShell raiseEventImpl:method:args::] + 1775
Rapid Cube -[B4IShellBI raiseEvent:event:params:] + 1357
Rapid Cube __33-[B4I raiseUIEvent:event:params:]_block_invoke + 51
libdispatch.dylib _dispatch_call_block_and_release + 12
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1212
CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
CoreFoundation __CFRunLoopRun + 2329
CoreFoundation CFRunLoopRunSpecific + 438
GraphicsServices GSEventRunModal + 65
UIKitCore UIApplicationMain + 1621
Rapid Cube main + 112
libdyld.dylib start + 1
??? 0x0 + 1
)
Application_Active

so i went to the page: https://developers.google.com/admob/ios/quick-start#update_your_infoplist

and tried to add this to my app:

B4X:
#PlistExtra: <key>GADApplicationIdentifier</key><string>ca-App-pub-8081096265852200~8319240660</string>

but still its not working, what do i need to do?

thanks, ilan
 

ilan

Expert
Licensed User
Longtime User
ok found the answer:

Starting from Google Maps Ads SDK v7.42.0 it is required to add these lines:

#PlistExtra: <key>GADIsAdManagerApp</key><true/>
#AdditionalLib: libsqlite3.dylib
#AdditionalLib: libz.dylib
#AdditionalLib: WebKit.framework
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
Thanks for the hint, ilan.

What is the reason for the 3 last AdditionalLib lines?

It seems to work fine with only the key.
 
Upvote 0
Top