HBuilder-Integrate-Swift[10571:306358] Terminating app due to uncaught exception 'NSRangeException', reason: ' -[NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(
0 CoreFoundation 0x000000010dcca6fb exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001124abac5 objc_exception_throw + 48
2 CoreFoundation 0x000000010dc1a1cf -[NSSingleObjectArrayI objectAtIndex:] + 111
3 HBuilder-Integrate-Swift 0x000000010c919970 +[PGMethod commandFromJson:] + 171
4 HBuilder-Integrate-Swift 0x000000010c96b9e8 -[PDRCoreApp handleCmds:] + 111
5 HBuilder-Integrate-Swift 0x000000010c98e53b 26-[H5WEUIWebview regPlusGo]_blockinvoke + 249
6 CoreFoundation 0x000000010dcd14cc invoking + 140
7 CoreFoundation 0x000000010dccea45 -[NSInvocation invoke] + 325
8 JavaScriptCore 0x0000000111010af8 _ZN3JSC24ObjCCallbackFunctionImpl4callEP9JSContextP13OpaqueJSValuemPKPKS3PS6 + 440
9 JavaScriptCore 0x000000011101052c _ZN3JSCL34objCCallbackFunctionCallAsFunctionEPK15OpaqueJSContextP13OpaqueJSValueS4_mPKPKS3PS6 + 236
10 JavaScriptCore 0x000000011100fddc _ZN3JSC19APICallbackFunction4callINS_20ObjCCallbackFunctionEEExPNS_9ExecStateE + 492
11 ??? 0x0000218a4f40102d 0x0 + 36877918801965
这是调用栈,PGMethod commandFromJson越界了,我就是把官方的swift版修改了一些问题跑了下,用的是webview方式
dcrty90
请问一下,问题解决了吗?
2019-11-15 10:40