mixpanel / mixpanel-swift

Official iOS (Swift) Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
434 stars 234 forks source link

Crash On TakeoverNotificationViewController.swift line 148 #432

Closed auro-ganesh closed 3 years ago

auro-ganesh commented 3 years ago

We are getting too many crashes on TakeoverNotificationViewController.swift line 148

Environment

Xcode version: 11.4.0 Mixpanel SDK version: 2.7.7 Installation method: Cocoapods

Fatal Exception: NSInvalidArgumentException
-[UIApplication connectedScenes]: unrecognized selector sent to instance 0x131d08260
Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x22ca7a98c __exceptionPreprocess
1  libobjc.A.dylib                0x22bc539f8 objc_exception_throw
2  CoreFoundation                 0x22c9971c8 -[NSOrderedSet initWithSet:copyItems:]
3  UIKitCore                      0x2593b1220 -[UIResponder doesNotRecognizeSelector:]
4  CoreFoundation                 0x22ca801d4 ___forwarding___
5  CoreFoundation                 0x22ca81e6c _CF_forwarding_prep_0
6  Mixpanel                       0x105a09f10 TakeoverNotificationViewController.show(animated:) + 148 (TakeoverNotificationViewController.swift:148)
7  Mixpanel                       0x10597d9d8 InAppNotifications.showTakeoverNotification(_:) + 104 (InAppNotifications.swift:104)
8  Mixpanel                       0x10597ce7c closure #1 in InAppNotifications.showNotification(_:) + 57 (InAppNotifications.swift:57)
9  Mixpanel                       0x1059a22b0 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
10 libdispatch.dylib              0x22c4b8a38 _dispatch_call_block_and_release
11 libdispatch.dylib              0x22c4b97d4 _dispatch_client_callout
12 libdispatch.dylib              0x22c467008 _dispatch_main_queue_callback_4CF$VARIANT$mp
13 CoreFoundation                 0x22ca0c32c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14 CoreFoundation                 0x22ca07264 __CFRunLoopRun
15 CoreFoundation                 0x22ca067c0 CFRunLoopRunSpecific
16 GraphicsServices               0x22ec0779c GSEventRunModal
17 UIKitCore                      0x259385c38 UIApplicationMain
18 My Flexifit                    0x1042e9914 main + 30 (WorkoutTopicClass.swift:30)
19 libdyld.dylib                  0x22c4ca8e0 start
zihejia commented 3 years ago

Mixpanel is deprecating Messaging and Mobile A/B testing features(more info), please contact our support if you need to continue the conversation for any critical issues. Sorry for the inconvenience.