2010-07-19 134 views
0

我的应用程序在模拟器中运行良好,并且一直在设备上运行良好。今天我试图在设备上安装并且应用程序崩溃。它仍然在模拟器中工作。我没有收到调试错误:应用程序在设备上运行时突然崩溃

[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. 

我该如何诊断?

回答

1

确保关闭模拟器,并做一个干净,然后构建并运行。也可能有助于彻底删除设备上的应用程序。

1

您需要使用开发证书/供应配置文件(这应该是生成设置中的默认值)以及使用<key>get-task-allow</key><true/>(这也应该是默认值)的权利对其进行签名。

它是否在主屏幕上运行?

+0

不从主屏幕运行。我已经用我的证书签了字,并且已经过去了一个月。当我切换到我的开发证书时,出现错误:无法在引导程序服务器上注册com.myApp.debug。错误:未知的错误代码。这通常意味着此过程的另一个实例已在运行或挂在调试器中。程序接收到信号:“SIGABRT”。 – 2010-07-19 17:48:06

+0

重新启动设备。 – 2010-07-20 11:53:20

+0

请参阅http://stackoverflow.com/questions/788277/iphone-strange-error-when-testing-on-simulator“无法在引导程序服务器上注册com.myApp.debug”错误。 – smparkes 2012-02-09 16:23:42

相关问题