在Xcode 11.1中启动屏幕后抖动iOS应用程序崩溃

在Xcode 11.1中启动屏幕后抖动iOS应用程序崩溃,xcode,flutter,Xcode,Flutter,我刚刚将Xcode升级到11.1,现在我的应用程序崩溃了 这是我在Xcode中看到的错误 你能告诉我如何修复这个错误吗 2019-10-09 20:52:16.569622-0400 Runner[11435:99091] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UI

我刚刚将Xcode升级到11.1,现在我的应用程序崩溃了

这是我在Xcode中看到的错误

你能告诉我如何修复这个错误吗

2019-10-09 20:52:16.569622-0400 Runner[11435:99091] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23baa1ee __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff50864b20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23ba9f68 +[NSException raise:format:arguments:] + 88
    3   Foundation                          0x00007fff25614de9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
    4   UIKitCore                           0x00007fff4757a29f -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 255
    5   UIKitCore                           0x00007fff4757a742 -[UIApplication statusBar] + 24
    6   Foundation                          0x00007fff2563de07 -[NSObject(NSKeyValueCoding) valueForKey:] + 317
    7   Runner                              0x000000010880238b -[FlutterStatusbarcolorPlugin handleMethodCall:result:] + 955
    8   Flutter                             0x00000001091284fd Flutter + 550141
    9   Flutter                             0x00000001090c1ec0 Flutter + 130752
    10  Flutter                             0x00000001090c5780 Flutter + 145280
    11  Flutter                             0x0000000109122db3 Flutter + 527795
    12  Flutter                             0x00000001090d43f1 Flutter + 205809
    13  Flutter                             0x00000001090d9742 Flutter + 227138
    14  CoreFoundation                      0x00007fff23b0d994 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    15  CoreFoundation                      0x00007fff23b0d682 __CFRunLoopDoTimer + 1026
    16  CoreFoundation                      0x00007fff23b0ccda __CFRunLoopDoTimers + 266
    17  CoreFoundation                      0x00007fff23b07a4e __CFRunLoopRun + 2238
    18  CoreFoundation                      0x00007fff23b06e66 CFRunLoopRunSpecific + 438
    19  GraphicsServices                    0x00007fff38346bb0 GSEventRunModal + 65
    20  UIKitCore                           0x00007fff47578dd0 UIApplicationMain + 1621
    21  Runner                              0x000000010859a640 main + 112
    22  libdyld.dylib                       0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

查看您所依赖的插件。在statusBar上运行的插件需要更新到statusBarManager才能在iOS13上运行

相关问题:


谢谢。。问题是iOS 13Oh的状态插件需要升级。。。我改进了答案。很抱歉,这是第一个版本。非常感谢您接受它。您好@Kevin哪个插件以及在哪里可以找到它。请添加状态栏上运行的依赖项或代码,这导致了此问题。