googleads-mobile-unity: Release 11.7.0 crashes the iOS game during startup
[REQUIRED] Step 1: Describe your environment
- Unity version: 2022.3.39f1
- Google Mobile Ads Unity plugin version: 9.2.0
- Plugin installation method: .unitypackage (Unity package manager, .unitypackage import)
- Platform: Mac Mini / iOS
- Platform OS version: iOS 17.4
- Any specific devices issue occurs on: None
- Mediation ad networks used, and their versions: UnityAds
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Install Google Admob SDK 9.2.0 from Unitypackage then install UnityAds 3.12.1 mediation adapter. Build XCode project with Pods enabled. Default Pod versions for Google-Mobile-Ads-SDK cause crash during game start-up.
Built the game on Mac Mini M2 Sonomo 14.5. Crashes happen in both Mac Mini and iPhone 12. When built with Google-Mobile-Ads-SDK 11.7.0, it causes the error below. I thought this was caused by InApp integration and disabled the InApps but it didn’t solve the issue. Manually editing version of Google-Mobile-Ads-SDK to 11.1.0 in Podfile fixed though.
UnityIAP UnityEarlyTransactionObserver: Added to the payment queue -> applicationDidBecomeActive() Failed to look up symbolic reference at 0x124552381 - offset 1072551 - symbol symbolic _____Sg 14MarketplaceKit14AppDistributorO in /private/var/folders/18/yccyv73n1lx3r1zf_88t10_c0000gn/X/44E90429-D410-5C1F-AA2B-40C21D8FCE79/d/Wrapper/<REMOVED>.app/Frameworks/UnityFramework.framework/UnityFramework
Relevant Code:
target 'UnityFramework' do
pod 'GoogleMobileAdsMediationUnity', '4.12.1.0'
pod 'Google-Mobile-Ads-SDK', '11.7.0' <- fixing version to 11.1.0 resolves the crash
end
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 23 (3 by maintainers)
If you run objective-c project , just in you oc project create a swift file , It’s ok .
(lldb) image lookup -a 0x104380ecf Address: AppOpenExample[0x00000001001e0ecf] (AppOpenExample.__TEXT.__swift5_typeref + 51) Summary: AppOpenExamplesymbolic _____Sg ScP + 1`From the debugging results of lldb, the symbol symbolic _____Sg ScP points to the Swift type reference part (__swift5_typeref). This problem is usually related to incorrect Swift runtime library or Swift generic type resolution.
Check build.settings for swift settings , miss some rules. So, just add a swift file in you oc project . It’s ok.
This issue will be fixed in the next release.
In the mean time you can update your ios dependency to version
11.9.0.The Google Mobile Ads Unity plugin dependencies are listed in Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml.
@NVentimiglia This issue is still not fixed for me. I am using Google-Mobile-Ads-SDK 11.10.0 and having the same error. Crash on startup on iPhone device. Using xcode 15.4 to build it.
I added an empty swift file into the project and crashes stopped. But then when I tried to upload that app to TestFlight, I got this error.
Asset validation failed (90206) Invalid Bundle. The bundle at 'AppName.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'. (ID: a3b2b44f-df27-4a84-9891-da308e67d582)Then I checked the ipa myself and saw that there is a library called
libswift_Concurrency.dylibunderAppName.app/Frameworks/UnityFramework.framework/Frameworks