1. 程式人生 > >報錯:failed to get the task for process XXX(解決方案)

報錯:failed to get the task for process XXX(解決方案)

引人:

    iOS真機除錯程式,報如下錯誤資訊:

failed to get the task for process XXX

原因:

證書問題,projecttargets的證書都必須是開發證書,ADHOC的證書會出現此問題。

解決方案:

    projecttargets的證書使用開發證書

其他:

This error happens when you have set Distribution Provisioning profile in code signing. Change it to Developer Provisioning Profile, then it will work. Worked for me for Xcode SDK 4.5.

把你的code sign由Distribution改成Developer.就這麼簡單.

補充:

iphone5s的時候會出現:process launch failed: security

這時候,應該app其實已經安裝成功了,你只需要在iphone上啟動app,然後點選信任就可以了。