Ionic:App在Splash Screen(iOS)上崩溃

时间:2016-05-19 23:39:30

标签: ios iphone ionic-framework splash-screen

我正在开发一个关于IONIC框架的应用程序。 该应用程序曾经在操作系统(Android和iOS)上正常运行, 但是自从过去几天以来,该应用程序无法在iPhone上运行。 应用程序在启动画面(iOS)上崩溃。 我记得在config.xml中没有改变任何东西。

  

confix.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="a.b.c" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Project Name</name>
<description>
    An Ionic Framework and Cordova project.
</description>
<author email="you@example.com" href="http://example.com.com/">
    Your Name Here
</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="*" />
<preference name="orientation" value="portrait" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="splashscreen" />
<preference name="SplashScreenDelay" value="5000" />
<preference name="ShowSplashScreenSpinner" value="false" />
<feature name="StatusBar">
    <param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<platform name="android">
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
</platform>
<platform name="ios">
    <icon height="57" src="resources/ios/icon/icon.png" width="57" />
    <icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
    <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
    <icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
    <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
    <icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
    <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
    <icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
    <icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
    <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
    <icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
    <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
    <icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
    <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
    <icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
    <icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
    <icon height="167" src="resources/ios/icon/icon-ipad.png" width="167" />
</platform>
<!-- <icon src="resources/splash.png" /> -->
<plugin name="cordova-plugin-dialogs" spec="~1.2.0" />
<plugin name="cordova-plugin-network-information" spec="~1.2.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" />
<plugin name="cordova-plugin-x-toast" spec="https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git" />
<plugin name="cordova-plugin-splashscreen" spec="https://github.com/apache/cordova-plugin-splashscreen.git" />

  

我正在使用的插件列表:

  1. 科尔多瓦-插件装置
  2. 科尔多瓦-插件的对话框
  3. 科尔多瓦-插件-地理位置
  4. 科尔多瓦-插件-inappbrowser
  5. 科尔多瓦-插件-网络的信息
  6. 科尔多瓦-插件-溅射屏幕
  7. 科尔多瓦-插件-状态栏
  8. 科尔多瓦-插件白名单
  9. 科尔多瓦-插件-X-socialsharing
  10. 科尔多瓦-插件-X-吐司
  11. 科尔多瓦-源码存储
  12. 离子-插件键盘
  13. mx.ferreyra.callnumber
  14. 的PhoneGap-Facebook的插件
  15. uk.co.workingedge.phonegap.plugin.launchnavigator
  16. 我已经尝试删除并重新安装iOS平台, 删除并重新安装cordova-plugin-splashscreen

    在我的app.js中,我隐藏了启动画面。

    $ionicPlatform.ready(function() {
    $timeout(function() {
                $cordovaSplashscreen.hide();
            }, 3000);
    });
    

    任何帮助都将非常感激。

1 个答案:

答案 0 :(得分:0)

尝试删除平台 ionic cordova platform rm ios

然后重新添加

ionic cordova platform add ios

您还可以检查Xcode控制台以获取有关崩溃的更多信息。