在Device上运行时,应用程序突然崩溃

时间:2010-07-19 17:39:21

标签: iphone objective-c cocoa-touch

我的应用程序在模拟器中运行良好,并且在设备上也运行良好。今天我正在尝试在设备上安装并且应用程序崩溃。它仍然可以在模拟器中使用。我没有收到调试错误:

[Session started at 2010-07-19 10:35:01 -0700.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1470) (Thu May 27 05:54:06 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys002
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-228-34
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
Error launching remote program: failed to get the task for process 856.
Error launching remote program: failed to get the task for process 856.
The program being debugged is not being run.
The program being debugged is not being run.

我该如何诊断?

3 个答案:

答案 0 :(得分:1)

这是来自设备的崩溃日志吗?如果没有,设备将存储所有崩溃的日志,你可以从中获取它。

http://www.anoshkin.net/blog/2008/09/09/iphone-crash-logs/

答案 1 :(得分:1)

确保关闭模拟器,然后进行清理,然后构建并运行。也可能有助于完全从设备上删除应用程序。

答案 2 :(得分:1)

您需要使用开发证书/配置文件(这应该是构建设置中的默认设置)和带有<key>get-task-allow</key><true/>的权利(这也应该是默认设置)进行签名。

它是否在主屏幕上运行?