googleads/swift-package-manager-google-mobile-ads

[BUG] Crashes in iPad - Only Production

Polenoso opened this issue · 2 comments

Here you are the crashlog from Crashlytics.

Window container should not be nil

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x99d78 __exceptionPreprocess
1  libobjc.A.dylib                0x16734 objc_exception_throw
2  Foundation                     0x1311f0 _userInfoForFileAndLine
3  twoCandles                     0x3d9840 -[GADOMIDStateWatcher adSessionDidBecomeActive:]
4  twoCandles                     0x3d7060 -[GADOMIDSDK adSessionDidBecomeActive:]
5  twoCandles                     0x3cbfe4 -[GADOMIDAdSessionRegistry adSessionDidStart:]
6  twoCandles                     0x3c90e8 -[GADOMIDAdSession onStart]
7  twoCandles                     0x3d5cc8 +[GADOMIDMethodInvoker performSelectorAsync:target:]
8  twoCandles                     0x3c9098 -[GADOMIDAdSession start]
9  twoCandles                     0x38a6c8 -[GADAdVerificationReporter beginAdSession] + 145 (GADAdVerificationReporter.m:145)
10 twoCandles                     0x36d7ec -[GADAdVerificationMonitor beginAdSession] + 88 (GADAdVerificationMonitor.m:88)
11 twoCandles                     0x36d890 -[GADAdVerificationMonitor adDidMakeImpression] + 99 (GADAdVerificationMonitor.m:99)
12 twoCandles                     0x36d6a0 __113-[GADAdVerificationMonitor initWithAd:adView:friendlyObstructionView:mediaType:contentURL:impressionType:adType:]_block_invoke.13 + 58 (GADAdVerificationMonitor.m:58)
13 Foundation                     0x50a9c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
14 Foundation                     0x62e14 -[NSBlockOperation main]
15 Foundation                     0x3b1c4 __NSOPERATION_IS_INVOKING_MAIN__
16 Foundation                     0x4c4e0 -[NSOperation start]
17 Foundation                     0x4fae8 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__
18 Foundation                     0x5dc90 __NSOQSchedule_f
19 libdispatch.dylib              0x12830 _dispatch_block_async_invoke2
20 libdispatch.dylib              0x3a2c _dispatch_client_callout
21 libdispatch.dylib              0x11f48 _dispatch_main_queue_drain
22 libdispatch.dylib              0x11b98 _dispatch_main_queue_callback_4CF
23 CoreFoundation                 0x522f0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
24 CoreFoundation                 0xc1f4 __CFRunLoopRun
25 CoreFoundation                 0x1f6b8 CFRunLoopRunSpecific
26 GraphicsServices               0x1374 GSEventRunModal
27 UIKitCore                      0x513e88 -[UIApplication _run]
28 UIKitCore                      0x2955ec UIApplicationMain
29 SwiftUI                        0x240640 closure #1 in KitRendererCommon(_:)
30 SwiftUI                        0x16e524 runApp<A>(_:)
31 SwiftUI                        0x14f810 static App.main()

It crashes when trying to present a GADInterstitialAd.

It's happening after updating GAD SDK to use Swift Package Manager.

I've updated to the last version (9.4.0) and still happening.

While running code in DEBUG, it doesn't happen. It just happen with production ipa.

I'm struggling with the same problem.