开发者

Help with why my app crashed?

开发者 https://www.devze.com 2023-02-02 15:13 出处:网络
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

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 no开发者_运维知识库t 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号