应用程序在 7.5.0 和 7.5.1 SDK 中因未捕获的异常 'org.applicationame.TiUIWebViewProxy' 而崩溃
The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy' in 7.5.0 and 7.5.1 SDK
我在使用 titanium SDK 7.5.0 时出现以下错误。 Apps 适用于 7.4.x。我之前正在进行升级,我想解决应用程序无法在最新版本和 > 7 中运行的根本原因。5.X
这是为了 iOS 模拟器在登录应用程序后启动时崩溃然后停止工作。
没有找到here
[ERROR] The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy'.
[ERROR] Reason:
[ERROR] Invalid type passed to function
[ERROR] Stack trace:
[ERROR] 0 CoreFoundation 0x000000010ee5b8db __exceptionPreprocess + 331
[ERROR] 1 libobjc.A.dylib 0x000000010dc68ac5 objc_exception_throw + 48
[ERROR] 2 Connect 0x000000010831c35d TiExceptionThrowWithNameAndReason + 141
[ERROR] 3 Connect 0x00000001082dc44b -[TiProxy throwException:subreason:location:] + 107
[ERROR] 4 Connect 0x00000001082581b2 -[TiUIWebViewProxy evalJS:] + 562
[ERROR] 5 Foundation 0x000000010a7047bc __NSThreadPerformPerform + 331
[ERROR] 6 CoreFoundation 0x000000010edc2db1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
[ERROR] 7 CoreFoundation 0x000000010edc2633 __CFRunLoopDoSources0 + 243
[ERROR] 8 CoreFoundation 0x000000010edbccef __CFRunLoopRun + 1231
[ERROR] 9 CoreFoundation 0x000000010edbc4d2 CFRunLoopRunSpecific + 626
[ERROR] 10 GraphicsServices 0x00000001124b82fe GSEventRunModal + 65
[ERROR] 11 UIKitCore 0x0000000119dbafc2 UIApplicationMain + 140
[ERROR] 12 Connect 0x00000001081facc8 main + 104
[ERROR] 13 libdyld.dylib 0x0000000110350541 start + 1
[ERROR] 14 ??? 0x0000000000000001 0x0 + 1
在tiapp.xml
中添加以下配置即可解决。这个遗留问题在主线程上启用 javascript 到 运行。在以后的版本中,它已经以不同的方式处理了。
<ios>
<run-on-main-thread>true</run-on-main-thread>
<!-- more iOS stuff here... -->
</ios>
参考:https://jira.appcelerator.org/browse/TIMOB-19682
https://github.com/appcelerator/titanium_mobile/pull/7053
https://github.com/appcelerator/titanium_mobile/pull/6891
我在使用 titanium SDK 7.5.0 时出现以下错误。 Apps 适用于 7.4.x。我之前正在进行升级,我想解决应用程序无法在最新版本和 > 7 中运行的根本原因。5.X
这是为了 iOS 模拟器在登录应用程序后启动时崩溃然后停止工作。
没有找到here
[ERROR] The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy'.
[ERROR] Reason:
[ERROR] Invalid type passed to function
[ERROR] Stack trace:
[ERROR] 0 CoreFoundation 0x000000010ee5b8db __exceptionPreprocess + 331
[ERROR] 1 libobjc.A.dylib 0x000000010dc68ac5 objc_exception_throw + 48
[ERROR] 2 Connect 0x000000010831c35d TiExceptionThrowWithNameAndReason + 141
[ERROR] 3 Connect 0x00000001082dc44b -[TiProxy throwException:subreason:location:] + 107
[ERROR] 4 Connect 0x00000001082581b2 -[TiUIWebViewProxy evalJS:] + 562
[ERROR] 5 Foundation 0x000000010a7047bc __NSThreadPerformPerform + 331
[ERROR] 6 CoreFoundation 0x000000010edc2db1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
[ERROR] 7 CoreFoundation 0x000000010edc2633 __CFRunLoopDoSources0 + 243
[ERROR] 8 CoreFoundation 0x000000010edbccef __CFRunLoopRun + 1231
[ERROR] 9 CoreFoundation 0x000000010edbc4d2 CFRunLoopRunSpecific + 626
[ERROR] 10 GraphicsServices 0x00000001124b82fe GSEventRunModal + 65
[ERROR] 11 UIKitCore 0x0000000119dbafc2 UIApplicationMain + 140
[ERROR] 12 Connect 0x00000001081facc8 main + 104
[ERROR] 13 libdyld.dylib 0x0000000110350541 start + 1
[ERROR] 14 ??? 0x0000000000000001 0x0 + 1
在tiapp.xml
中添加以下配置即可解决。这个遗留问题在主线程上启用 javascript 到 运行。在以后的版本中,它已经以不同的方式处理了。
<ios>
<run-on-main-thread>true</run-on-main-thread>
<!-- more iOS stuff here... -->
</ios>
参考:https://jira.appcelerator.org/browse/TIMOB-19682 https://github.com/appcelerator/titanium_mobile/pull/7053 https://github.com/appcelerator/titanium_mobile/pull/6891