我一直在为我的应用程序使用cordova iOS。在iOS 11上运行良好。但是,在iOS 12上,当我单击任何表单元素时,应用程序都崩溃了。我忽略了绑定到该元素的所有事件,但应用仍然崩溃。 当我检查日志时:
Incident Identifier: CDEC255D-D438-45A7-B231-57660AA499AF
CrashReporter Key: 1b7e701bf14dc0caab4a2b85289f9c3748472a1e
Hardware Model: iPhone8,2
Process: SC [895]
Path: /private/var/containers/Bundle/Application/6F5ADF9D-614E-4F5A-B4CF-7726F1C07790/SC.app/SC
Identifier: com.my.app
Version: 2.0 (2.5.0)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.my.app [711]
Date/Time: 2018-10-24 10:29:47.3917 +0530
Launch Time: 2018-10-24 10:27:49.0810 +0530
OS Version: iPhone OS 12.0.1 (16A404)
Baseband Version: 5.10.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001aafe9104 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001ab0640e0 pthread_kill$VARIANT$mp + 380
2 libsystem_c.dylib 0x00000001aaf40d78 abort + 140
3 libc++abi.dylib 0x00000001aa608f78 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001aa616340 __cxa_deleted_virtual + 0
5 WebCore 0x00000001b476a438 WebCore::createWrapper+ 10576952 (JSC::ExecState*, WebCore::JSDOMGlobalObject*, WTF::Ref<WebCore::Node, WTF::DumbPtrTraits<WebCore::Node> >&&) + 48
6 WebCore 0x00000001b476731c WebCore::JSLazyEventListener::initializeJSFunction+ 10564380 (WebCore::ScriptExecutionContext&) const + 1412
7 WebCore 0x00000001b4761f90 WebCore::JSEventListener::jsFunction+ 10542992 (WebCore::ScriptExecutionContext&) const + 212
8 WebCore 0x00000001b4761720 WebCore::JSEventListener::handleEvent+ 10540832 (WebCore::ScriptExecutionContext&, WebCore::Event&) + 100
9 WebCore 0x00000001b49c9c28 WebCore::EventTarget::fireEventListeners+ 13065256 (WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::DumbPtrTraits<WebCore::RegisteredEventListener> >, 1ul, WTF::CrashOnOverflow, 16ul>) + 736
10 WebCore 0x00000001b49c7548 WebCore::EventTarget::fireEventListeners+ 13055304 (WebCore::Event&) + 260
11 WebCore 0x00000001b4db52b0 WebCore::DOMWindow::dispatchEvent+ 17175216 (WebCore::Event&, WebCore::EventTarget*) + 284
12 WebCore 0x00000001b4df0c80 WebCore::FrameView::sendResizeEventIfNeeded+ 17419392 () + 472
13 WebCore 0x00000001b4df08c0 WebCore::FrameView::performPostLayoutTasks+ 17418432 () + 512
14 WebCore 0x00000001b4df5ea4 WebCore::FrameViewLayoutContext::runOrScheduleAsynchronousTasks+ 17440420 () + 292
15 WebCore 0x00000001b4de40f0 WebCore::FrameViewLayoutContext::layout+ 17367280 () + 1880
16 WebKitLegacy 0x00000001b55f7e80 -[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:] + 224
17 UIKitCore 0x00000001d877ef20 -[_UIWebViewportHandler update:] + 440
18 UIKitCore 0x00000001d8746220 -[UIWebDocumentView setMinimumSize:updateCurrentViewportConfigurationSize:] + 100
19 UIKitCore 0x00000001d8772498 -[UIWebView _updateViewSettings] + 632
20 CoreFoundation 0x00000001ab45b660 __invoking___ + 144