I build with Admob and when I start the game, I get this error and the game does not open.
I try to build with different admob sdks and try different unity versions. (2020-2022)
I made the necessary admob additions in info.plist.
_ <key>SKAdNetworkIdentifier</key>_
_ <string>cstr6suwn9.skadnetwork</string>_
_<key>GADApplicationIdentifier</key> _
_<string>ca-app-pub-1231231231231234~123123123</string> _
_<key>GADDelayAppMeasurementInit</key> _
_<true /> _
_<key>NSUserTrackingUsageDescription</key> _
_<string>This identifier will be used to deliver personalized ads to you.</string> _
Also, I have been building with Admob for 2-3 years without any problems. But as I said in this new game, the game does not open. If I delete admob it works fine. Thank you <3
-------------
My Flags:
-F"C:/Users/kandi/Desktop/SDK_ios/Google-Mobile-Ads-SDK_10_3/GoogleMobileAds.xcframework/ios-arm64_armv7"
-F"C:/Users/kandi/Desktop/SDK_ios/Google-Mobile-Ads-SDK_10_3/UserMessagingPlatform.xcframework/ios-arm64_armv7"
Extra Linkers;
-F"C:/Users/kandi/Desktop/SDK_ios/Google-Mobile-Ads-SDK_10_3"
-framework GoogleMobileAds
-framework JavaScriptCore
-framework MediaPlayer
-framework MessageUI
-framework MobileCoreServices
-framework SafariServices
-framework WebKit
-lsqlite3
-lz
-framework UserMessagingPlatform
-ObjC
-------------
Podfile
source 'https://github.com/CocoaPods/Specs'
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
target 'UnityFramework' do
pod 'Google-Mobile-Ads-SDK', '~> 10.3'
end
target 'Unity-iPhone' do
end
-------------
Error Log
*Oct 10 07:55:55.961 RemoteConsole <stderr>: 2023-10-10 07:55:56.574 GameRace[11281:37351665] UnityIAP UnityEarlyTransactionObserver: Added to the payment queue
Oct 10 07:55:55.966 RemoteConsole <stdout>: CrashReporter: initialized
Oct 10 07:55:55.966 RemoteConsole <stdout>: CrashReporter: saved pending crash report.
Oct 10 07:55:55.966 RemoteConsole <stdout>: CrashReporter: saved copy of pending crash report.
Oct 10 07:55:55.966 RemoteConsole <stdout>: -> applicationDidFinishLaunching()
Oct 10 07:55:55.966 RemoteConsole <stdout>:
Oct 10 07:55:55.966 RemoteConsole <stdout>: Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported.
Oct 10 07:55:55.966 RemoteConsole <stdout>: Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated
Oct 10 07:55:55.966 RemoteConsole <stdout>:
Oct 10 07:55:55.966 RemoteConsole <stderr>: 2023-10-10 07:55:56.579 GameRace[11281:37351701] Uncaught exception: GADInvalidInitializationException: The Google Mobile Ads SDK was initialized without AppMeasurement. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to include the AppMeasurement framework and set the -ObjC linker flag. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist
Oct 10 07:55:55.966 RemoteConsole <stderr>: (
Oct 10 07:55:55.966 RemoteConsole <stderr>: 0 CoreFoundation 0x0000000181519d8c D2716F2F-688B-3D51-BA8B-17E6553B209E + 630156
Oct 10 07:55:55.966 RemoteConsole <stderr>: 1 libobjc.A.dylib 0x000000019a17e734 objc_exception_throw + 60
Oct 10 07:55:55.966 RemoteConsole <stderr>: 2 CoreFoundation 0x00000001815f0fcc D2716F2F-688B-3D51-BA8B-17E6553B209E + 1511372
Oct 10 07:55:55.966 RemoteConsole <stderr>: 3 UnityFramework 0x000000010ba0dc60 GADApplicationVerifyPublisherInitializedCorrectly + 296
Oct 10 07:55:55.966 RemoteConsole <stderr>: 4 UnityFramework 0x000000010ba0de1c GADApplicationVerifyPublisherInitializedCorrectly + 740*