首页 > 解决方案 > 切换到 Cordova iOS 6.1.0 后出现白屏死机

问题描述

我的应用在带有 UIWebView 的 Cordova iOS 5 上运行良好。但是我在 Cordova iOS 6.1.0 上切换到 WKWebView,现在我得到的只是飞溅后的白屏死机。如何开始调试导致此错误的原因?这是我的 config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Test</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <preference name="scheme" value="app" />
    <preference name="hostname" value="localhost" />
    <access origin="*" />
    <allow-navigation href="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
</widget>

标签: cordova

解决方案


确保您没有安装启动画面插件cordova plugin rm cordova-plugin-splashscreen


推荐阅读