我在Crashlytics中遇到了这个问题,我真的不知道是什么原因引起的。它向我显示错误出在我的AppDelegate的15行中,但是有类开始的地方:
class AppDelegate: UIResponder, UIApplicationDelegate {
这是问题所在
致命异常:NSInvalidArgumentException应用程序试图 当前以活动控制器RN.ViewController的形式出现:0x1509e200。
崩溃:com.twitter.crashlytics.ios.exception SIGABRT ABORT 0x00000000206e6c5c
0 RN CLSProcessRecordAllThreads + 986
1个RN CLSProcessRecordAllThreads + 986
2个RN CLSProcessRecordAllThreads + 722
3 RN CLSHandler + 30
4 RN __CLSExceptionRecord_block_invoke + 66
5 libdispatch.dylib_dispatch_client_callout + 22
6 libdispatch.dylib_dispatch_barrier_sync_f_invoke + 56
7 RN CLSExceptionRecord + 250
8 RN CLSExceptionRecordNSException + 614
9 RN CLSTerminateHandler()+ 544
10 libc ++ abi.dylib std :: __ terminate(void(*)())+ 78
11 libc ++ abi.dylib__cxxabiv1 :: exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception *)+ 110
12 libobjc.A.dylib objc_exception_throw + 250
13 UIKit- [UIViewController _presentViewController:withAnimationController:completion:] + 4640
14 UIKit__62- [UIViewController presentViewController:animated:completion:] _ block_invoke + 336
15 UIKit-[_ UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 204
16 UIKit-[_ UIViewControllerTransitionContext _runAlongsideCompletions] + 128
17 UIKit-[_ UIViewControllerTransitionContext completeTransition:] + 108
18 UIKit- [UIViewAnimationBlockDelegate _didEndBlockAnimation:完成:上下文:] + 540
19 UIKit- [UIViewAnimationState sendDelegateAnimationDidStop:完成:] + 204
20 UIKit- [UIViewAnimationState animationDidStop:finished:] + 78
21 QuartzCore CA :: Layer :: run_animation_callbacks(void *)+ 252
22 libdispatch.dylib_dispatch_client_callout + 22
23 libdispatch.dylib_dispatch_main_queue_callback_4CF $ VARIANT $ mp + 1524
24 CoreFoundation CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
25 CoreFoundation __CFRunLoopRun + 1574
26 CoreFoundation CFRunLoopRunSpecific + 520
27 CoreFoundation CFRunLoopRunInMode + 108
28 GraphicsServices GSEventRunModal + 160
29 UIKit UIApplicationMain + 144
30 RN AppDelegate.swift第15行
谢谢您的帮助。
答案 0 :(得分:5)
我在iOS 13上遇到了类似的问题。由于Crashlytics团队fixed a few crashes for iOS 13,我最终升级了Crashlytics库。
在iOS 13设备上发生这些崩溃的任何人都应将Crashlytics升级到至少3.14.0版本。