首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子ios应用程序卡在飞溅屏幕上-在模拟器中工作,而不是在iphone 5s设备上。

离子ios应用程序卡在飞溅屏幕上-在模拟器中工作,而不是在iphone 5s设备上。
EN

Stack Overflow用户
提问于 2014-11-11 02:29:49
回答 2查看 8.2K关注 0票数 8

目前,当我推到我的iOS设备上时,我正卡在启动屏幕上。我已经确保安装ngCordova通过保龄球安装和我所有的离子模拟器是正常工作的。只有当我部署到一个iOS设备时,它才会卡在启动屏幕上。我在config.xml文件中包含了启动屏幕的正确语法

代码语言:javascript
复制
<preference name="AutoHideSplashScreen" value="false" />
  <feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen" onload="true"/>
  </feature>

在我的主app.js文件中有以下内容

代码语言:javascript
复制
.run(function($ionicPlatform, $cordovaSplashscreen, $timeout) {
  $ionicPlatform.ready(function() {
    $cordovaSplashscreen.hide();

(不包括.run中的其余内容)

离子版本- 1.2.8

科多瓦版本- 4.0.0

下面是用于工作iOS仿真的xcode中的输出:

代码语言:javascript
复制
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

然后,当我构建一个实际的iPhone 5S时,我得到以下信息:

代码语言:javascript
复制
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

从每个输出的最后一行来看,用户界面路由器的#/app/浏览似乎没有被iPhone 5S击中,我不知道为什么。当我运行ionic serveionic emulate ios时,一切都很好,但是一旦我把它推到实际的手机上,它就挂在屏幕上了。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-11-23 22:34:35

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

ionic platform rm ios ionic platform add ios ionic build ios

...and,它能够走出飞溅的屏幕。希望这能有所帮助。

票数 11
EN

Stack Overflow用户

发布于 2016-03-16 04:24:33

我把这个设置设置错了:

代码语言:javascript
复制
  <preference name="AutoHideSplashScreen" value="true"/>

我把它设为假的。转到真我治好了。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26856497

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档