我正在从设备调试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)
您是否正在尝试调试临时或应用商店版本?在那些情况下我看到了这个错误。切换到调试配置,我认为它会工作。