2011-03-30 27 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

相關問題