[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.<wbr>Type "show warranty" for details.</wbr>

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,保存。


可惜实际测试中,上面这个网上抄来抄去的经典传说完美解决的方法就是没效果。下面截图是我的测试结果,反正我解决了。


IOS真机调试error launching remote program failed to get the task 解决方案




IOS真机调试error launching remote program failed to get the task 解决方案

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-07-10
  • 2021-07-02
  • 2022-12-23
  • 2021-12-13
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案