crash: xx.xx.xx failed to scene-create after 19.50s (launch took 0.50s of total time limit 20.00s)

我们来看下crash log:



所有的这种类型的Exception都有共同的特性:

1. Exception Type都是:   00000020
2. Exception Codes都是: 0x000000008badf00d
3. Exception Note:  SIMULATED (this is NOT a crash)。 这里明确指明 "this is NOT a crash",不是程序本身的崩溃,而是iOS系统强制关闭App产生的。

4. 崩溃堆栈都是定位在 View上面的

5. 在Xcode调试模式不会出错,真机运行才会crash

根据堆栈位置,发现是 sleep()函数的地方crash了


App rejection - Crash report says: failed to scene-create in time (badf00d) What is wrong?

这里有一段文字解释,比较清楚

The issue is very simple. You just spend too much time loading your app on the splash screen and the iOS device stops your app. The reason it only happens in the review and not when you test it is because you always run it from Xcode, and when running from Xcode it won't have this behavior. If you will run your app directly from the device (by tapping its icon) you will see it will happen there as well. Assuming you spent too much time loading on that specific run.

Edit: Also I am seeing that you are stuck on a semaphore and don't use too much CPU, which might mean you have a deadlock which stalls the app on the reviewer's device and that is why it spends too much time loading and the device stops your app. Not sure...


解决办法:

在App里,sleep()有关的调用不能太多

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值