Closed mezhevikin closed 3 years ago
@mezhevikin I found a simple workaround. Setting any of the following diagnostic options in the scheme settings will prevent the crash.
I verified this with Xcode 12.4 (12D4e), iOS 13.7 Simulator, macOS Big Sur 11.2.3οΌ20D91οΌ and M1 Apple Silicon Mac.
@mezhevikin According to my investigation, it has nothing to do with AdMob, xcframework, or SPM. The crash seems to be caused by a combination of Xcode 12, iOS 13 Simulator, Big Sur, and M1, even when using only system frameworks.
Please try my workaround. Thanks,
Hi @Koze . I tried your workaround and it works perfectly. Thank you. I sent this information to Admob Team. I think it will be helpful in any case.
Additional information: This workaround works for iOS13 simulator, but does'n work for iOS 12.4 simulator.
does'n work for iOS 12.4 simulator
I hope this will be fixed in a future version of Xcode.
Hi, I tried your solution but it doesn't work for me
Hi @Koze . I found the new problem π€ This issue is not spm related, but I would like to get confirmation from other developers.
GoogleMobileAds 8.1 crash on iOS 13 sumulator if you use Apple Silicon M1 processor.
Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
The crash points to the AppDelegate class but the problem is in GADMobileAds.sharedInstance().start(). If you remove this method, the crash disappears.
Can you confirm or deny the problem?
I have created topic on google developer forum: https://groups.google.com/g/google-admob-ads-sdk/c/ulno5g6X9IA