2011-03-30 29 views
0

我正在从设备上调试iPhone应用程序。当时在控制台上打印了以下消息:从iPhone中的设备调试应用程序?

[Session started at 2011-03-30 11:15:42 +0530.] 
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 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/ttys001 
Loading program into debugger… 
Program loaded. 
target remote-mobile /tmp/.XcodeGDBRemote-182-66 
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 173. 
Error launching remote program: failed to get the task for process 173. 
The program being debugged is not being run. 
The program being debugged is not being run. 

如何解决这个问题?

回答

0

您是否正在尝试调试临时或应用商店构建?在这些情况下我看到了这个错误。切换到调试配置,我认为它会工作。

+0

其中这种类型的错误发生请告诉我。 – ChandreshKanetiya 2011-03-31 05:23:46

+1

我说“切换到调试配置,我认为它会工作”。更重要的是,确保你没有使用分发证书来签署你正在尝试调试的配置。我已经看到它在尝试调试设备上的Ad Hoc构建时执行此操作。我怀疑是一个安全块,但我不确定。 – Dad 2011-03-31 15:34:10

相关问题