uni-app 在 ios 9.0-10.0 系统上运行报错,bug收集到的问题如下:[PDRCoreApp handleCmds:]

uni-app 在 ios 9.0-10.0 系统上运行报错,bug收集到的问题如下:[PDRCoreApp handleCmds:]

请教一下如下闪退的解决办法或者解决思路,感激不尽
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x181535b88 objc_msgSend + 8
1 TaPinCaiXiaoAPP 0x1003170ac -[PDRCoreApp handleCmds:] (PDRCoreApp.m:1471)
2 TaPinCaiXiaoAPP 0x1003304b0 26-[H5WEUIWebview regPlusGo]block_invoke (H5WEUIWebview.m:178)
3 CoreFoundation 0x181ec4a60 invoking
+ 144
4 CoreFoundation 0x181dbc488 -[NSInvocation invoke] + 284
5 JavaScriptCore 0x1859dde1c JSC::ObjCCallbackFunctionImpl::call(JSContext*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)+ 404
6 JavaScriptCore 0x1859dd9c0 JSC::objCCallbackFunctionCallAsFunction(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)+ 260
7 JavaScriptCore 0x1859debb8 long long JSC::APICallbackFunction::callJSC::ObjCCallbackFunction(JSC::ExecState*)+ 420
8 JavaScriptCore 0x1855861ec JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*)+ 476
9 JavaScriptCore 0x1859c58c8 llint_entry + 23624
10 JavaScriptCore 0x1859c58d4 llint_entry + 23636
11 JavaScriptCore 0x1859c58d4 llint_entry + 23636
12 JavaScriptCore 0x1859c58d4 llint_entry + 23636
13 JavaScriptCore 0x1859c58d4 llint_entry + 23636
14 JavaScriptCore 0x1859c58d4 llint_entry + 23636
15 JavaScriptCore 0x1859c58d4 llint_entry + 23636
16 JavaScriptCore 0x1859c58d4 llint_entry + 23636
17 JavaScriptCore 0x1859c58d4 llint_entry + 23636
18 JavaScriptCore 0x1859bfa68 vmEntryToJavaScript + 312
19 JavaScriptCore 0x1858eb4b4 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)+ 180
20 JavaScriptCore 0x185589f4c JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)+ 400
21 JavaScriptCore 0x1856999f4 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtrJSC::Exception&)+ 80
22 WebCore 0x185e91ad0 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*)+ 828
23 WebCore 0x18617c180 WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData&, WTF::Vector<WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow, 16ul>&)+ 696
24 WebCore 0x185d9d418 WebCore::EventTarget::fireEventListeners(WebCore::Event*)+ 328
25 WebCore 0x186170d88 WebCore::EventContext::handleLocalEvents(WebCore::Event&) const+ 112
26 WebCore 0x186171a80 WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtrWebCore::Event)+ 1008
27 WebCore 0x185d9d184 WebCore::Node::dispatchEvent(WTF::PassRefPtrWebCore::Event)+ 36
28 WebCore 0x185e91738 WebCore::EventTarget::dispatchEvent(WTF::PassRefPtrWebCore::Event, int&)+ 156
29 WebCore 0x1861771b4 WebCore::EventHandler::dispatchTouchEvent(WebCore::PlatformTouchEvent const&, WTF::AtomicString const&, WTF::HashMap<WebCore::EventTarget*, WTF::Vector<WTF::RefPtrWebCore::Touch, 0ul, WTF::CrashOnOverflow, 16ul>, WTF::PtrHashWebCore::EventTarget*, WTF::HashTraitsWebCore::EventTarget*, WTF::HashTraits<WTF::Vector<WTF::RefPtrWebCore::Touch, 0ul, WTF::CrashOnOverflow, 16ul>> const&, float, float)+ 1008
30 WebCore 0x185e8f880 WebCore::EventHandler::handleTouchEvent(WebCore::PlatformTouchEvent const&)+ 6348
31 WebCore 0x185e8d97c WebCore::EventHandler::touchEvent(WebEvent*)+ 168
32 WebKitLegacy 0x186d3def0 -[WebHTMLView touch:]+ 68
33 WebCore 0x185e8d89c -[WAKView _selfHandleEvent:]+ 160
34 WebCore 0x185e8d7d4 -[WAKView handleEvent:]+ 60
35 WebCore 0x185e8d598 -[WAKWindow sendEventSynchronously:]+ 300
36 UIKit 0x1876ddf94 -[UIWebBrowserView _dispatchWebEvent:]+ 84
37 UIKit 0x1876de460 -[UIWebBrowserView _webTouchEventsRecognized:]+ 568
38 UIKit 0x1874a4678 -[UIWebTouchEventsGestureRecognizer _processTouches:withEvent:type:]+ 432
39 UIKit 0x1874a4998 -[UIWebTouchEventsGestureRecognizer touchesEnded:withEvent:]+ 100
40 UIKit 0x1875ae6f0 -[UIGestureRecognizer _touchesEnded:withEvent:]+ 168
41 UIKit 0x18705145c -[UIWindow _sendGesturesForEvent:]+ 696
42 UIKit 0x187050c0c -[UIWindow sendEvent:]+ 764
43 UIKit 0x18702104c -[UIApplication sendEvent:]+ 248
44 UIKit 0x18701f628 _UIApplicationHandleEventQueue+ 6568
45 CoreFoundation 0x181e7509c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION+ 24
46 CoreFoundation 0x181e74b30 CFRunLoopDoSources0+ 540
47 CoreFoundation 0x181e72830 __CFRunLoopRun+ 724
48 CoreFoundation 0x181d9cc50 CFRunLoopRunSpecific+ 384
49 GraphicsServices 0x183684088 GSEventRunModal+ 180
50 UIKit 0x18708a088 UIApplicationMain+ 204
51 TaPinCaiXiaoAPP 0x1000ad7fc main (main.m:14)
52 (Missing) 0x18193a8b8 (Missing)


更多关于uni-app 在 ios 9.0-10.0 系统上运行报错,bug收集到的问题如下:[PDRCoreApp handleCmds:]的实战教程也可以访问 https://www.itying.com/category-93-b0.html

7 回复

请问解决了嘛?碰到了同样的问题

更多关于uni-app 在 ios 9.0-10.0 系统上运行报错,bug收集到的问题如下:[PDRCoreApp handleCmds:]的实战教程也可以访问 https://www.itying.com/category-93-b0.html


请把你的ipa发过来,并把使用环境,操作步骤等描述下,能有录像最好。 描述越详细,问题更好定位

怎么发给你?可以微信或者QQ远程一下吗?急着上线

回复 挡不住的君文: 你qq多少

回复 CLP: 236819598

这是一个典型的iOS 9-10系统上的UIWebView兼容性问题。从堆栈信息看,崩溃发生在PDRCoreApp的handleCmds方法中,与H5WEUIWebview的交互相关。

建议解决方案:

  1. 检查项目中是否使用了UIWebView相关API,建议替换为WKWebView
  2. 升级HBuilderX到最新版本,确保使用最新的基础库
  3. 在manifest.json中配置"usingComponents"为true
  4. 尝试在App.vue中添加以下代码:
onLaunch() {
    // #ifdef APP-PLUS
    if(uni.getSystemInfoSync().platform == 'ios') {
        const version = uni.getSystemInfoSync().system.split(' ')[1]
        if(parseFloat(version) < 11.0) {
            plus.navigator.setFullscreen(false)
        }
    }
    // #endif
}

如果问题仍然存在,可以尝试:

  1. 在manifest.json的"app-plus"节点下添加:
"kernel" : {
    "ios" : "WKWebview"
}
回到顶部