[xcode]Error launching remote program: failed to get the task for process xxx 本人解决办法
2013-09-14 21:50
1811 查看
参考贴:http://kqwd.blog.163.com/blog/static/4122344820117191351263/
真机测试的时候,出现以上的错误,翻了很多贴,发现了一个贴说是,制作证书没做好,我只好重新看一遍,我的做法是两步。
第一步:TARGETS -> Build Phases -> Add Build Phase -> Add Run Script
如下图
接着在这里
添加以下脚本:
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
第二步: TARGETS -> Build Setting -> Code Signing -> Code Signing Identity 改成 Don't Code Sign
这两步完成就真机测试一下,问题都解决了,而且可以实现真机单步运行。
如果另外一个工程真机测试有出现以上错误,就重复做该两步。
真机测试的时候,出现以上的错误,翻了很多贴,发现了一个贴说是,制作证书没做好,我只好重新看一遍,我的做法是两步。
第一步:TARGETS -> Build Phases -> Add Build Phase -> Add Run Script
如下图
接着在这里
添加以下脚本:
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
第二步: TARGETS -> Build Setting -> Code Signing -> Code Signing Identity 改成 Don't Code Sign
这两步完成就真机测试一下,问题都解决了,而且可以实现真机单步运行。
如果另外一个工程真机测试有出现以上错误,就重复做该两步。
相关文章推荐
- ios在真机上调试时出现“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"解决办法(转)
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法
- 在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"的解决方法
- 添加脚本真机调试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 xxx"的解决方案
- 解决error launching remote program failed to get the task for process
- 真机调试Error launching remote program: failed to get the task for process xxx.
- Error launching remote program: failed to get the task for process
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- error launching remote program failed to get the task for process
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- Error launching remote program: failed to get the task for process
- xcode 真机调试 failed to get the task for process xxx
- IOS:XCode failed to get the task for process解决方法
- xcode提示: failed to get the task for process 解决方法
- XCode :failed to get the task for process XXX
- IOS:XCode 4.6 failed to get the task for process解决方法
- Xcode运行错误:failed to get the task for process XXX