[英]The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy' in 7.5.0 and 7.5.1 SDK
使用鈦 SDK 7.5.0 時出現錯誤。 應用程序適用於 7.4.x。 在此之前我正在進行升級,我想解決應用程序無法在最新版本和 > 7.5.X 中運行的根本原因
這是在登錄應用程序崩潰然后停止工作后啟動 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
可以通過在tiapp.xml
中添加以下配置來解決。 這個遺留問題使 javascript 能夠在主線程上運行。 在以后的版本中,它已經以不同的方式處理。
<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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.