真机调试Error launching remote program: failed to get the task for process xxx.
来源:互联网 发布:艺术字设计软件下载 编辑:程序博客网 时间:2024/04/30 10:07
1 错误
真机调试运行已有项目的时候:Error launching remote program: failed to get the task for process xxx.
2 错误分析
这是因为证书和签名的问题。
3 解决方案
3.1 添加自定义的生成后脚本
在Build Phases中添加一个Phase,右下角的Add Build Phase,然后单击Add Run Script,输入以下脚本
(对于Xcode 4.1/4.2)
export
CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then
/Developer/iphoneentitlements401/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi
(对于Xcode 4.3/4.3.2)
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ] || [ "${PLATFORM_NAME}" == "ipados" ]; then
/Applications/Xcode.app/Contents/Developer/iphoneentitlements/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone Developer" --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi
如图所示:
添加Script:
添加脚本代码:
3.2 禁用Xcode自动的签名操作
将工程配置中所有的Code Signing选项全部设为Don't Code Sign,如图。可能需要先点击“All”让这个选项显示出来:
最后重新运行项目即可,如果不行Clean之后再Run。
4 结语
以上就是对于该问题的解决方案,希望对大家有所帮助
- 真机调试Error launching remote program: failed to get the task for process xxx.
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX解决方法
- Xcode4.2真机调试时出现: error launching remote program failed to get the task for process
- 在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"的解决方法
- IOS真机调试error launching remote program failed to get the task 解决方案
- [xcode]Error launching remote program: failed to get the task for process xxx 本人解决办法
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- Error launching remote program: failed to get the task for process 10722.The解决方法
- 解决error launching remote program failed to get the task for process
- Error launching remote program: failed to get the task for process
- Error launching remote program: failed to get the task for process
- Error launching ... failed to get the task for process ...
- XCode4.5免证书真机调试解决 failed to get the task for process xxx
- 真机测试不能启动 --could not launch “xxx” process launch failed:failed to get the task for process 3306
- 真机调试出现Could not launch "FeedMeWorms" failed to get the task for process 3118
- failed to get the task for process XXX(解决方案)
- Oracle如何修改编码格式
- AIX 命令vmstat、topas
- DES对称加密算法Java编程
- 两个大牛的研究方向(2)
- Oracle 10g数据库迁移的经验 Windows环境
- 真机调试Error launching remote program: failed to get the task for process xxx.
- 利用VTS与bacnet协议栈进行通信---ReadProperty
- windows-IOCP模型总结
- hdu 1059 优先级队列
- IBM实习生笔试题目(6)
- fiddler替换服务器上文件进行本地调试
- 透彻理解异常并合理使用异常
- liux文件的每行末尾^M$ 和$
- H264 video RTP payload and SDP