Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/476.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ionic ios应用程序卡在启动屏幕上-在emulator中工作,而不是在iphone 5s设备上_Javascript_Ios_Angularjs_Cordova - Fatal编程技术网

Javascript ionic ios应用程序卡在启动屏幕上-在emulator中工作,而不是在iphone 5s设备上

Javascript ionic ios应用程序卡在启动屏幕上-在emulator中工作,而不是在iphone 5s设备上,javascript,ios,angularjs,cordova,Javascript,Ios,Angularjs,Cordova,当我推到我的iOS设备时,我现在被困在启动屏幕上。我已经确保通过bower安装安装ngCordova,并且我所有的ionic仿真都按预期工作。只有当我部署到iOS设备时,它才会卡在启动屏幕上。我已经在config.xml文件中包含了启动屏幕的正确语法 <preference name="AutoHideSplashScreen" value="false" /> <feature name="SplashScreen"> <param name="ios

当我推到我的iOS设备时,我现在被困在启动屏幕上。我已经确保通过bower安装安装ngCordova,并且我所有的ionic仿真都按预期工作。只有当我部署到iOS设备时,它才会卡在启动屏幕上。我已经在config.xml文件中包含了启动屏幕的正确语法

<preference name="AutoHideSplashScreen" value="false" />
  <feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen" onload="true"/>
  </feature>
(不包括.run中的其余内容)

离子版-1.2.8
cordova版本-4.0.0

以下是工作iOS仿真的xcode输出:

2014-11-10 17:09:15.150 endevr[94986:627339] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Data/Application/027864C5-CC64-4859-BCEA-48D8DD4B90A2/Library/Cookies/Cookies.binarycookies
2014-11-10 17:09:15.291 endevr[94986:627339] Apache Cordova native platform version 3.6.3 is starting.
2014-11-10 17:09:15.292 endevr[94986:627339] Multi-tasking -> Device: YES, App: YES
2014-11-10 17:09:15.304 endevr[94986:627339] Unlimited access to network resources
2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][splashscreen] 48.977017ms
2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][TotalPluginStartup] 49.114048ms
2014-11-10 17:09:15.691 endevr[94986:627339] Resetting plugins due to page load.
2014-11-10 17:09:15.886 endevr[94986:627339] Finished load of: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Bundle/Application/6EE8A114-222C-4903-88EC-9EEF8853B76C/endevr.app/www/index.html#/app/browse
然后,当我构建一个真正的iphone5s时,我会得到以下结果:

2014-11-10 17:09:43.691 endevr[973:264078] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/8512E3E3-FF06-4BDF-94DD-B999AD55ADCC/Library/Cookies/Cookies.binarycookies
2014-11-10 17:09:43.857 endevr[973:264078] Apache Cordova native platform version 3.6.3 is starting.
2014-11-10 17:09:43.859 endevr[973:264078] Multi-tasking -> Device: YES, App: YES
2014-11-10 17:09:43.868 endevr[973:264078] Unlimited access to network resources
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][splashscreen] 92.771947ms
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][TotalPluginStartup] 93.294024ms
2014-11-10 17:09:44.342 endevr[973:264078] Resetting plugins due to page load.
2014-11-10 17:09:44.696 endevr[973:264078] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2BD18E5C-94C7-467D-83D5-617E3BD15434/endevr.app/www/index.html

查看每个输出的最后一行,ui router的#/app/browse似乎并没有在iPhone 5S上受到影响,我不知道为什么。当我运行
ionic-serve
ionic-simulate-ios
时,一切都会变得很好,但一旦我把它推到我的实际手机上,它挂在启动屏幕上。

不确定发生了什么,但我最终做的是创建远程回购的新克隆,并将启动屏幕相关的更改应用到本地计算机上的新实例。然后我执行了以下命令:

2014-11-10 17:09:43.691 endevr[973:264078] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/8512E3E3-FF06-4BDF-94DD-B999AD55ADCC/Library/Cookies/Cookies.binarycookies
2014-11-10 17:09:43.857 endevr[973:264078] Apache Cordova native platform version 3.6.3 is starting.
2014-11-10 17:09:43.859 endevr[973:264078] Multi-tasking -> Device: YES, App: YES
2014-11-10 17:09:43.868 endevr[973:264078] Unlimited access to network resources
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][splashscreen] 92.771947ms
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][TotalPluginStartup] 93.294024ms
2014-11-10 17:09:44.342 endevr[973:264078] Resetting plugins due to page load.
2014-11-10 17:09:44.696 endevr[973:264078] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2BD18E5C-94C7-467D-83D5-617E3BD15434/endevr.app/www/index.html

离子平台rm-ios
离子平台添加ios
离子构建ios


…而且它能够从闪屏上消失。希望这能有所帮助。

我将此设置设置错误:

  <preference name="AutoHideSplashScreen" value="true"/>


我把它设置为false。切换到“真实”解决了这个问题。

我甚至没有进入闪屏。当我在CLI中获得
*******运行成功******
时,我卡在了黑色屏幕上。