帮助我的应用程序崩溃的原因? [英] Help with why my app crashed?
问题描述
我正在写一个iPad应用程序,它是一个自助服务终端应用程序。 iPad应该挂在墙上,应用程序应该运行。我做了一个测试,昨晚(12月31日星期五)启动应用程序并让它运行。今天早上,当我醒来时,它没有运行。我刚检查了iPad的控制台,我无法弄清楚它为什么会崩溃。
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.
iPad已插上电源,因此电池未发出。我在我的应用程序委托中禁用了idleTimer。该应用程序被视为昨晚深夜运行。
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.
当我打开iPad时,应用程序暂停,并且系统警报提示我检查即将到期的配置文件。我轻拍解雇,警报消失了。在我解除系统警报后,应用程序崩溃了大约一秒钟。
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?
这是我的iPad的控制台日志,是从Xcode的组织者复制的。
Here is my iPad's Console log, as copied from Xcode's organizer.
编辑:
一些谷歌搜索引导我到此网站,表示警报视图会导致应用失去焦点。可以参与吗?我该怎么做才能解决问题?
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 未能及时恢复
经过的总CPU时间(秒):10.010(用户8.070,系统1.940),100%CPU
Elapsed total CPU time (seconds): 10.010 (user 8.070, system 1.940), 100% CPU
经过的应用程序CPU时间(秒):9.470,95%CPU
Elapsed application CPU time (seconds): 9.470, 95% CPU
推荐答案
好吧,过期的配置文件会阻止应用程序运行,但是日志错误听起来好像你在应用程序委托中的applicationDidBecomeActive:或applicationWillResignActive:方法中花了太长时间。
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.
这篇关于帮助我的应用程序崩溃的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!