[Session started at 2011-10-15 16:02:41 +0800.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1516) (Fri Feb 11 06:19:43 UTC 2011)
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.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys002
sharedlibrary apply-load-rules all
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-258-59
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 919.
Error launching remote program: failed to get the task for process 919.
The program being debugged is not being run.
The program being debugged is not being run.
大概你也会遇到这样的问题,证书伪造了,直接安装app到touch上也能运行了,但是真机调试就是会报错,如上的log类似。
网上的的确有文章解释怎么解决的,翻了下,蛋疼的很,吵来吵去,解决要注意的也没说清楚,没办法,自己摸索把,特此记录。
顺带说一下,我的XCode 是 3.2.6 版本的
在xcode的file菜单上,new file -> iphone os -> code signing -> entitlements,新建了一个“entitlements.plist”点finish,然后打开此文件,设置一个“get-task-allow”属性为false,保存。
可惜实际测试中,上面这个网上抄来抄去的经典传说完美解决的方法就是没效果。下面截图是我的测试结果,反正我解决了。