Ionic Cordova 应用程序在 ipad 启动时崩溃
Ionic Cordova app crashes at launch in ipad
我在许多设备上检查过它,几乎所有设备都可以正常工作。但是当使用 OS 版本 9.3.5 签入 iPad 时,第一次启动会导致崩溃。我不知道它为什么会崩溃。我已经检查了很多解决方案,但找不到任何解决方案。当 运行 为
时来自 XCode 的日志
2017-07-03 11:58:12.334 [10543:4215404] DiskCookieStorage changing
policy from 2 to 0, cookie file:
file:///private/var/mobile/Containers/Data/Application/C264816D-2744-4D26-BC6A-46B3BEF8DA46/Library/Cookies/Cookies.binarycookies
2017-07-03 11:58:12.498[10543:4215404] Apache Cordova native platform
version 4.0.0 is starting.
2017-07-03 11:58:12.501[10543:4215404] Multi-tasking -> Device: YES,
App: YES
2017-07-03 11:58:12.676[10543:4215404] Using UIWebView
2017-07-03 11:58:12.684[10543:4215404] [CDVTimer][handleopenurl]
0.398993ms
2017-07-03 11:58:12.692[10543:4215404]
[CDVTimer][intentandnavigationfilter] 8.102000ms
2017-07-03 11:58:12.693[10543:4215404] [CDVTimer][gesturehandler]
0.422001ms
2017-07-03 11:58:12.736[10543:4215404] [CDVTimer][splashscreen]
42.403996ms
2017-07-03 11:58:12.764[10543:4215404] [CDVTimer][statusbar]
27.370989ms
2017-07-03 11:58:12.769[10543:4215404] [CDVTimer][keyboard] 3.852963ms
2017-07-03 11:58:12.772[10543:4215404] [CDVTimer][localnotification]
2.893984ms
2017-07-03 11:58:12.773[10543:4215404] [CDVTimer][localnotification]
0.070989ms
2017-07-03 11:58:12.773[10543:4215404] [CDVTimer][TotalPluginStartup]
89.882970ms
2017-07-03 11:58:13.556[10543:4215404] Resetting plugins due to page
load.
2017-07-03 11:58:15.216[10543:4215404] Finished load of:
file:///var/containers/Bundle/Application/D2B7D0DC-8697-4605-B0FC-B72CA832E4F3/appName.app/www/index.html
2017-07-03 11:58:16.653[10543:4215404] THREAD WARNING: ['Device'] took
'15.490967' ms. Plugin should use a background thread.
我知道它显示线程警告,但他们说可以忽略它here
我尝试 堆栈溢出答案也删除了警告。但这也不能解决问题。我的 Cordova 版本是 6.5.0.
感谢thispost,终于解决了。删除了旧的 ios 平台并使用新平台对其进行了更新。现在它的工作没有任何问题
我在许多设备上检查过它,几乎所有设备都可以正常工作。但是当使用 OS 版本 9.3.5 签入 iPad 时,第一次启动会导致崩溃。我不知道它为什么会崩溃。我已经检查了很多解决方案,但找不到任何解决方案。当 运行 为
时来自 XCode 的日志2017-07-03 11:58:12.334 [10543:4215404] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/C264816D-2744-4D26-BC6A-46B3BEF8DA46/Library/Cookies/Cookies.binarycookies
2017-07-03 11:58:12.498[10543:4215404] Apache Cordova native platform version 4.0.0 is starting.
2017-07-03 11:58:12.501[10543:4215404] Multi-tasking -> Device: YES, App: YES
2017-07-03 11:58:12.676[10543:4215404] Using UIWebView
2017-07-03 11:58:12.684[10543:4215404] [CDVTimer][handleopenurl] 0.398993ms
2017-07-03 11:58:12.692[10543:4215404] [CDVTimer][intentandnavigationfilter] 8.102000ms
2017-07-03 11:58:12.693[10543:4215404] [CDVTimer][gesturehandler] 0.422001ms
2017-07-03 11:58:12.736[10543:4215404] [CDVTimer][splashscreen] 42.403996ms
2017-07-03 11:58:12.764[10543:4215404] [CDVTimer][statusbar] 27.370989ms
2017-07-03 11:58:12.769[10543:4215404] [CDVTimer][keyboard] 3.852963ms
2017-07-03 11:58:12.772[10543:4215404] [CDVTimer][localnotification] 2.893984ms
2017-07-03 11:58:12.773[10543:4215404] [CDVTimer][localnotification] 0.070989ms
2017-07-03 11:58:12.773[10543:4215404] [CDVTimer][TotalPluginStartup] 89.882970ms
2017-07-03 11:58:13.556[10543:4215404] Resetting plugins due to page load.
2017-07-03 11:58:15.216[10543:4215404] Finished load of: file:///var/containers/Bundle/Application/D2B7D0DC-8697-4605-B0FC-B72CA832E4F3/appName.app/www/index.html
2017-07-03 11:58:16.653[10543:4215404] THREAD WARNING: ['Device'] took '15.490967' ms. Plugin should use a background thread.
我知道它显示线程警告,但他们说可以忽略它here
我尝试
感谢thispost,终于解决了。删除了旧的 ios 平台并使用新平台对其进行了更新。现在它的工作没有任何问题