[英]The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy' in 7.5.0 and 7.5.1 SDK
I am getting below error while using titanium SDK 7.5.0.使用钛 SDK 7.5.0 时出现错误。 Apps works well with 7.4.x.应用程序适用于 7.4.x。 I am doing upgrade before that i want to address root cause why app is not working in latest and > 7.5.X在此之前我正在进行升级,我想解决应用程序无法在最新版本和 > 7.5.X 中运行的根本原因
This is am getting for iOS simulator launch after login to app got crash and then stop working.这是在登录应用程序崩溃然后停止工作后启动 iOS 模拟器。
[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
Able to solve by adding below config in tiapp.xml
.可以通过在tiapp.xml
中添加以下配置来解决。 This legacy issue which enable javascript to run on mainthread.这个遗留问题使 javascript 能够在主线程上运行。 In later version its already handled different way.在以后的版本中,它已经以不同的方式处理。
<ios>
<run-on-main-thread>true</run-on-main-thread>
<!-- more iOS stuff here... -->
</ios>
Reference: https://jira.appcelerator.org/browse/TIMOB-19682 https://github.com/appcelerator/titanium_mobile/pull/7053 https://github.com/appcelerator/titanium_mobile/pull/6891 Reference: https://jira.appcelerator.org/browse/TIMOB-19682 https://github.com/appcelerator/titanium_mobile/pull/7053 https://github.com/appcelerator/titanium_mobile/pull/6891
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.