问题描述
我在Crashlytics中遇到了这个问题,我真的不知道是什么原因引起的。它向我显示错误出在我的AppDelegate的15行中,但是有类开始的地方:
I'm getting this issue in Crashlytics and, I really don't know what is causing it. It show me that the error is in my AppDelegate, 15 line, but there is where the class beginning:
class AppDelegate: UIResponder, UIApplicationDelegate {
这是问题:
致命异常:NSInvalidArgumentException应用程序试图将
模态地显示为活动控制器RN.ViewController:0x1509e200。
崩溃:com.twitter.crashlytics.ios.exception
SIGABRT ABORT 0x00000000206e6c5c
Crashed: com.twitter.crashlytics.ios.exceptionSIGABRT ABORT 0x00000000206e6c5c
1 RN CLSProcessRecordAllThreads + 986
1 RN CLSProcessRecordAllThreads + 986
2 RN CLSProcessRecordAllThreads + 722
2 RN CLSProcessRecordAllThreads + 722
3 RN CLSHandler + 30
3 RN CLSHandler + 30
4 RN __CLSExceptionRecord_block_invoke + 66
4 RN __CLSExceptionRecord_block_invoke + 66
5 libdispatch.dylib_dispatch_client_callout + 22
5 libdispatch.dylib_dispatch_client_callout + 22
6 libdispatch.dylib_dispatch_barrier_sync_f_invoke + 56
6 libdispatch.dylib_dispatch_barrier_sync_f_invoke + 56
7 RN CLSExceptionRecord + 250
7 RN CLSExceptionRecord + 250
8 RN CLSExceptionRecordNSException + 614
8 RN CLSExceptionRecordNSException + 614
9 RN CLSTerminateHandler( )+ 544
9 RN CLSTerminateHandler() + 544
10 libc ++ abi.dylib std :: __ terminate(void(*)())+ 78
10 libc++abi.dylib std::__terminate(void (*)()) + 78
11
libc ++ abi.dylib__cxxabiv1 :: exception_cleanup_func(_Unwind_Reason_Code,
_Unwind_Exception *)+ 110
11 libc++abi.dylib__cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 110
12 libobjc.A。 dylib objc_exception_throw + 250
12 libobjc.A.dylib objc_exception_throw + 250
13 UIKit- [UIViewController _presentViewController:withAnimationController:completion:] + 4640
13 UIKit-[UIViewController _presentViewController:withAnimationController:completion:] + 4640
14 UIKit__62 -[UIViewController presentViewController:animated:completion:] _ block_invoke + 336
14 UIKit__62-[UIViewController presentViewController:animated:completion:]_block_invoke + 336
15 UIKit-[_ UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 204
15 UIKit-[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 204
16 UIKit-[_ UIViewControllerTransitionContext _runAlongsideCompletions] + 128
16 UIKit-[_UIViewControllerTransitionContext _runAlongsideCompletions] + 128
17 UIKit-[_ UIViewControllerTransitionContext completeTransition:] + 108
17 UIKit-[_UIViewControllerTransitionContext completeTransition:] + 108
18 UIKit- [UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
18 UIKit-[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
19 UIKit- [UIViewAnimationState sendDelegateAnimationDidStop:Finished:] + 204
19 UIKit-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
20 UIKit- [UIViewAnimationState animationDidStop:finished:] + 78
20 UIKit-[UIViewAnimationState animationDidStop:finished:] + 78
21 QuartzCore CA :: Layer :: run_animation_callbacks(void *)+ 252
21 QuartzCore CA::Layer::run_animation_callbacks(void*) + 252
22 libdispatch.dylib_dispatch_client_callout + 22
22 libdispatch.dylib_dispatch_client_callout + 22
23 libdispatch.dylib_dispatch_main_queue_callback_4CF $ VARIANT $ mp + 1524
23 libdispatch.dylib_dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
24 CoreFoundation CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
24 CoreFoundation CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
25 CoreFoundation __CFRunLoopRun + 1574
25 CoreFoundation __CFRunLoopRun + 1574
26 CoreFoundation CFRunLoopRunSpecific + 520
26 CoreFoundation CFRunLoopRunSpecific + 520
27 CoreFoundation CFRunLoopRunInMode + 108
27 CoreFoundation CFRunLoopRunInMode + 108
28 GraphicsServices GSEventRunModal + 160
28 GraphicsServices GSEventRunModal + 160
29 UIKit UIApplicationMain + 144
29 UIKit UIApplicationMain + 144
30 RN AppDelegate.swift第15行
30 RN AppDelegate.swift line 15
感谢您的帮助。
推荐答案
我在iOS 13上也遇到了类似的问题。由于Crashlytics团队。
I had a similar issue with iOS 13. I ended up upgrading the Crashlytics library, since the Crashlytics team fixed a few crashes for iOS 13.
在iOS 13设备上发生这些崩溃的任何人都应将Crashlytics升级到至少3.14.0版本。
Anyone who has these crashes on iOS 13 devices should upgrade Crashlytics to at least version 3.14.0.
这篇关于崩溃:com.twitter.crashlytics.ios.exception IOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!