Application failed with EXC_SOFTWARE / UNCAUGHT_NS_EXCEPTION

I get Firebase Crash reports and I'm not sure what causes the crash. I could not replicate the error by testing it in Xcode, but the crash affects several different users, so I know that this is not a single error of a particular device. Below is all that I know about what happens during the crash. However, obviously, since this is being reported through Firebase crash reports, I only have so much information.

  • All crashes come from some iPad device, which may or may not be a coincidence.

  • I can tell from the event logs that the same crash on different screens for different users, so the crash is probably somewhere in the AppDelegate class, but I'm not sure which problem would occasionally occur this crash.

  • The only point in the crash trace that I recognize as something I encoded is main (AppDelegate.swift:15), however, the fifth line in my AppDelegate file is just a declaration of the AppDelegate class, for example:

    class AppDelegate: UIResponder, UIApplicationDelegate {

Therefore, I am not sure what might be wrong in this section.

Let me know if there is any specific information that you think may be related to the failure, and I will try to provide it where possible.

Failure Trace:

Exception name: EXC_SOFTWARE / UNCAUGHT_NS_EXCEPTION

1
CoreFoundation
__exceptionPreprocess + 1224112
2
libobjc.A.dylib
objc_exception_throw + 32636
3
UIKit
-[UIPopoverPresentationController presentationTransitionWillBegin] + 9835108
4
UIKit
__71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 3628972
5
UIKit
__56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 3621060
6
UIKit
_runAfterCACommitDeferredBlocks + 2912452
7
UIKit
_cleanUpAfterCAFlushAndRunDeferredBlocks + 2968188
8
UIKit
_afterCACommitHandler + 26016
9
CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 919332
10
CoreFoundation
__CFRunLoopDoObservers + 910536
11
CoreFoundation
__CFRunLoopRun + 911608
12
CoreFoundation
CFRunLoopRunSpecific + 35916
13
GraphicsServices
GSEventRunModal + 49284
14
UIKit
UIApplicationMain + 516228
15
Poker
main (AppDelegate.swift:15)
16
libdyld.dylib
start + 10420
+4
source share
1 answer

I have a similar problem and this is just a partial answer.

, AppDelegate , . , _initViewHierarchyForPresentationSuperview.

, , . , - UIKit . , , ( ) , .

, . NSException, Firebase Crash , , :

enter image description here

, : enter image description here

Firebase , dSYMS, ( Bitcode, , iTunes Connect dSYMS " " ), . ( mdfind "com_apple_xcode_dsym_uuids == *" , , UUID .)

, Firebase , : enter image description here

, ( Firebase), : enter image description here

, , : , , , , . , .

do { ... } catch let error { ... }, , - Firebase.

0

Source: https://habr.com/ru/post/1668375/


All Articles