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

[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<wbr>launching<wbr>remote<wbr>program<wbr>failed<wbr>to<wbr>get<wbr>the<wbr>task<wbr>解决方案




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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值