首页 \ 问答 \ 离子ios应用程序卡在启动画面 - 在模拟器不工作在iphone 5s设备(ionic ios app stuck on splash screen - works in emulator not on iphone 5s device)

离子ios应用程序卡在启动画面 - 在模拟器不工作在iphone 5s设备(ionic ios app stuck on splash screen - works in emulator not on iphone 5s device)

推送到我的iOS设备时,我目前在启动画面上卡住了。 我已经确定通过bower安装安装ngCordova,并且所有离子仿真都按预期工作。 只有当我部署到iOS设备时,它才会卡在启动画面上。 我已经在config.xml文件中包含了启动画面的正确语法

<preference name="AutoHideSplashScreen" value="false" />
  <feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen" onload="true"/>
  </feature>

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

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

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

离子版 - 1.2.8
科尔多瓦版本 - 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

然后,当我建立一个真正的iPhone 5S时,我得到以下内容:

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 serveionic emulate ios一切都呈现良好,但是一旦我将它推到我的实际手机上,它就会挂在闪屏上。


I'm currently getting stuck on the splash screen when pushing to my iOS device. I've made sure to install ngCordova via bower install and all my ionic emulations are working as expected. Only when I deploy to an iOS device, does it get stuck on the splash screen. I've included the proper syntax for the splash screen in the config.xml file

<preference name="AutoHideSplashScreen" value="false" />
  <feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen" onload="true"/>
  </feature>

and I have the following in my main app.js file

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

(not including the rest of the content in the .run)

ionic version - 1.2.8
cordova version - 4.0.0

Here is the output in xcode for the working iOS emulation:

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

Then, when I build to a an actual iPhone 5S I get the following:

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

looking at the last line of each output, it doesn't seem like ui-router's #/app/browse is getting hit on the iPhone 5S and I can't figure out why. When I run ionic serve and ionic emulate ios everything renders fine, but once I push it to my actual phone, it hangs on the splash screen.


原文:https://stackoverflow.com/questions/26856497
更新时间:2023-12-02 14:12

最满意答案

当你select * from some_table;select * from some_table; 在SQL * Plus中, SQL*Plus充当客户端程序,并根据从数据库返回的数据,格式化和显示数据等方面为您做了大量工作。

只要你输入DECLARE ,你就开始一个PL / SQL块。 现在,您正在调用PL / SQL,而PL / SQL正在调用SQL。 因此,您需要决定如何在PL / SQL中处理从SQL返回的数据。 做这件事的方法是通过一个INTO子句和一个变量来接收输出。 考虑到,如果你不提供INTO子句,那么SELECT的输出数据在哪里去呢? 它必须去某个地方,对吧?

希望这是明确的。


When you write select * from some_table; in SQL*Plus, SQL*Plus is acting as the client program, and does a lot of work for you, under the covers, in terms of the data being returned from the database, formatting it and displaying it.

As soon as you type DECLARE, you begin a PL/SQL block. Now, You're calling PL/SQL, and PL/SQL is calling SQL. As a result, you need to decide how to handle the data being returned from the SQL, in PL/SQL. The way to do that, is via an INTO clause and a variable to receive the output. Considering that, where would the output data from the SELECT go, if you don't provide an INTO clause? It has to go somewhere, right?

Hope that's clear.

相关问答

更多
  • 当你select * from some_table;写select * from some_table; 在SQL * Plus中, SQL*Plus充当客户端程序,并根据从数据库返回的数据,格式化和显示数据等方面为您做了大量工作。 只要你输入DECLARE ,你就开始一个PL / SQL块。 现在,您正在调用PL / SQL,而PL / SQL正在调用SQL。 因此,您需要决定如何在PL / SQL中处理从SQL返回的数据。 做这件事的方法是通过一个INTO子句和一个变量来接收输出。 考虑到,如果你不提 ...
  • 幸运的是我通过使用命中和试用获得了解决方案。 而不是在CONCAT函数中使用totalRegister作为变量,而是将其替换为@totalRegister,这导致存储过程正常工作。 DECLARE totalRegister INTEGER; SET @sqlstmt = CONCAT('SELECT COUNT(DISTINCT(msisdn)) INTO @totalRegister FROM sm_history.svc_mgmt_',@yesterdayMonth ,' WHERE action_t ...
  • 在Oracle中它看起来像这样。 DECLARE v_Init_Cnt number(10) :=1; v_Tot_cnt number(10); BEGIN select count(distinct column_name) INTO v_Tot_cnt from mytable; WHILE (v_Init_Cnt <= v_Tot_cnt) LOOP --Insert statemen ...
  • 我们quote/quo然后评估!! x <- quo(mpg:am) out1 <- mtcars %>% gather(type, value, !! x) 检查输出 out2 <- mtcars %>% gather(type, value, mpg:am) identical(out1, out2) #[1] TRUE We can quote/quo it and then evaluate with !! x <- quo(mpg:am) out1 ...
  • var curency = "eur"; var myprice = json.x.price[curency]; json.x.price[curency] === json.x.price.eur; // true 您可以通过点或[] -notation来访问对象的属性。 另一个例子: var o = { 'my property': 100 }; // "my property" can not be accessed by dot-notation o['my property'] === 1 ...
  • 使用连接到子选择。 在子选择中计算每个orderid的总计。 SELECT orders.orderid, orders.quantity, totals.total_in_order FROM orders JOIN ( SELECT orderid, SUM(quantity) AS total_in_order FROM orders GROUP BY orderid ) AS totals ON orders.orderid = totals.orde ...
  • 不。 如果底层SELECT返回零行(当使用> max值时会发生),则不会进行赋值,并保留该变量的初始值。 你可以使用@@rowcount来检查这个。 如果多于一行匹配在top之前,您需要通过order by获取确定性结果。 DECLARE @tname AS VARCHAR(100) = 'F99Special_DMT'; SELECT TOP(1) @tname = form_name FROM [dbo].[forms] WHERE form_name > @tname ORDER BY fo ...
  • 试试这样: select @desc_out:=desc01,@flag_out:=flag from A01 where id=@id_in 即,要在MYSQL中将变量设置为select ,您需要使用:=而不是= 如果你可以在select使用它们之前declare你的变量会更好。 Try like this: select @desc_out:=desc01,@flag_out:=flag from A01 where id=@id_in ie for setting the variable i ...
  • 看起来你的WHERE子句可能会阻止该行返回。 你提到你已经测试了相同的SELECT而没有设置变量,但你列出的代码不包括这个WHERE - 所以它不一样。 使用WHERE测试您的SELECT ,使用虚拟值(可能为NULL )并查看。 它听起来好像没有返回结果。 Looks like your WHERE clause could be stopping the row from returning. You mentioned you've tested the same SELECT without set ...
  • 如果您没有传递显式连接参数, mysql_函数将隐式使用使用mysql_connect打开的最后一个连接。 所以,是的,在这种情况下,无论您是否传递参数,结果都是相同的。 如果碰巧使用mysql_connect打开多个连接,您将得到不同的结果。 请注意,隐含地依赖于开放连接是不好的做法,正是因为如果您需要稍后打开更多连接,您的应用程序将会搞砸。 另请注意,mysql_ API已死,切换到mysqli或PDO。 The mysql_ functions will implicitly use the last ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)