GoogleMobileAds 8.1 crash on iOS 13 sumulator and Apple Silicon M1

527 views
Skip to first unread message

Alexey Mezhevikin

unread,
Mar 6, 2021, 1:43:37 AM3/6/21
to Google Mobile Ads SDK Developers
Hi. I have Macbook M1 with XCode 14.4 .
I just created empty xcode project and added GoogleMobileAds 8.1 manually.
It works perfectly on iOS 14, but I'm getting crash on  iOS 13 simulator.

Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)





Снимок экрана 2021-03-06 в 09.43.18.png

Alexey Mezhevikin

unread,
Mar 6, 2021, 1:56:29 AM3/6/21
to Google Mobile Ads SDK Developers
The crash points to the AppDelegate class but the problem is in GADMobileAds.sharedInstance().start(). If you remove this method, the crash disappears.

суббота, 6 марта 2021 г. в 09:43:37 UTC+3, Alexey Mezhevikin:

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 8, 2021, 12:17:57 AM3/8/21
to mezhe...@gmail.com, google-adm...@googlegroups.com

Hi Alexey,

Thank you for bringing this to our attention. Could you please share with us the sample project file that you are using? This will help our team to check and to confirm if the crash is pointing to the GADMobileAds.sharedInstance().start() method. Also, kindly share the complete stack trace of the crash for our reference.

Kindly share the above information privately to our testing alias: mobileads...@gmail.com


Regards,




Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2DLhbQ:ref

Alexey Mezhevikin

unread,
Mar 8, 2021, 5:59:22 AM3/8/21
to Google Mobile Ads SDK Developers
Hi. I upload test project to https://github.com/mezhevikin/admob-bug-ios13
You need run project on ios 13 sumulator and m1 processor.

I don't know how to get crash stacktrace.
But I attached log file

понедельник, 8 марта 2021 г. в 08:17:57 UTC+3, mobileadssdkforumadvisor:
log.txt

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 8, 2021, 10:23:30 AM3/8/21
to mezhe...@gmail.com, google-adm...@googlegroups.com
Hi Alexey,

Thank you for sending this over to us. I just wanted you to know we received it and that due to the fact that you see this on an M1 processor. We will need this to be brought to our team. As we do not have access to these systems. Once we are able to get feedback regarding this we will be certain to pass it along.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DLhbQ:ref

THARY SAY

unread,
Mar 8, 2021, 10:29:54 AM3/8/21
to Mobile Ads SDK Forum Advisor Prod, mezhe...@gmail.com, google-adm...@googlegroups.com
--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/fAEp4000000000000000000000000000000000000000000000QPNPEI008TwsbT2jSCKI05J8O1ebOA%40sfdc.net.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 8, 2021, 9:19:20 PM3/8/21
to thary...@gmail.com, mezhe...@gmail.com, google-adm...@googlegroups.com

Hi Alexy,

In SDK version 8.0.0, we removed support for i386 simulators (see https://developers.google.com/admob/ios/rel-notes). Since i386 is in your error code, I'm guessing your iOS 13 simulator is somehow running i386. Any chance you can try SDK version 7.69 and see if you still get the issue? If you don't have a test app, you can try one from https://github.com/googleads/googleads-mobile-ios-examples/releases/tag/7.22 which is built against 7.x.

In the meantime, I'll check with our SDK team to better understand if there's an actual use case here to bring that back, or if there's a more appropriate workaround. My understanding is 32-bit simulators are a thing of the past (and certainly your M1 Mac is 64-bit as it's running arm64). So I'm not sure why your iOS 13 simulator wants i386 instructions.

Thanks,
Eric, Mobile Ads SDK Team



ref:_00D1U1174p._5004Q2DLhbQ:ref

Alexey Mezhevikin

unread,
Mar 9, 2021, 1:24:54 AM3/9/21
to Google Mobile Ads SDK Developers
Hi Eric.
I will try use 7.69 sdk and let you know.
But I have an additional information.
Maybe it will be helpful.

Thanks

вторник, 9 марта 2021 г. в 05:19:20 UTC+3, mobileadssdkforumadvisor:

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 9, 2021, 12:00:53 PM3/9/21
to mezhe...@gmail.com, google-adm...@googlegroups.com
Hi Alexey,

Thanks for sharing that thread. Since yesterday, we also found https://stackoverflow.com/questions/65224739/swiftui-ios-13-uiviewrepresentable-of-wkwebview-gets-thread-1-exc-breakpoint which indicates WKWebView has the problem. The Google Mobile Ads SDK does initialize WKWebView when the SDK is initialized, which would explain the crash. You can try the same by removing the SDK and trying to initialize WKWebView directly. Based on this new knowledge, I'm guessing version 7.69.0 of Google Mobile Ads SDK will still experience the same issue as that version still uses WKWebView.

Hopefully the workaround suggested in https://github.com/Koze/GoogleMobileAds-SPM/issues/3#issuecomment-793204291 works for you!

Thanks,
Eric
 

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