Help with why my app crashed?

情到浓时终转凉″ 提交于 2019-12-23 17:37:58

问题


I'm writing an iPad app that is a "kiosk" app. The iPad should be hanging on the wall and the app should just run. I did a test, starting the app last night (Friday, December 31) and letting it run. This morning, when I woke up, it was not running. I just checked the iPad's console and I can't figure out why it crashed.

The iPad was plugged in and so the battery is not the issued. I did disable the idleTimer in my application delegate. The app was seen running as late as midnight last night.

I would like to note that my app acts as a Bluetooth server through Game Kit and large portion of the console output is occupied by bluetooth status messages.

When I opened the iPad, the app was paused and there was a system alert which prompted me to check an "Expiring Provisioning Profile". I tapped "dismiss" and the alert went away. The app crashed about a second after I dismissed the system alert.

Any ideas how I can diagnose this problem? Why would my app crash?

Here is my iPad's Console log, as copied from Xcode's organizer.

Edit:

A bit of Googling lead me to this site which says that alert views cause the app to lose focus. Could that be involved? What can I do to fix the problem?

EDIT2:

My Crash log describes the situation as:

Application Specific Information:

appname failed to resume in time

Elapsed total CPU time (seconds): 10.010 (user 8.070, system 1.940), 100% CPU

Elapsed application CPU time (seconds): 9.470, 95% CPU


回答1:


Well, an expired provisioning profile would prevent the app from running, but the log error sounds like you are taking too long in either the applicationDidBecomeActive: or applicationWillResignActive: methods in your application delegate.



来源:https://stackoverflow.com/questions/4576204/help-with-why-my-app-crashed

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