“failed to resume in time” on resumption from background crash

℡╲_俬逩灬. 提交于 2019-12-01 10:43:18

Use Instruments (specifically Shark) to find out what is going on.

The reason Springboard is killing your app is because you are coming close to exceeding the allowed 10 seconds (Apple never seems to publish what the exact number is, but general wisdom seems to have it pegged at 10).

Elapsed total CPU time (seconds): 9.880 (user 7.320, system 2.560), 97% CPU 

When the program crashes, it may be doing some drawing - how do you know that it's not doing some other task for 8 seconds and then doing drawing for 1.5? That's where I'd use Shark to find out what's taking the most percentage of CPU time.

Then, analyze that to see what can be done about it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!