Xcode : failed to get the task for process
Solution 1:
This error tends to appear when you pick an ad-hoc provisioning profile. Make sure that your code signing is for development.
Solution 2:
This error happens if you have used a Distribution Provisioning Profile for debugging to device.
Go to Build Settings
> Provisioning Profile
and set to 'None' for Debugging
.
Solution 3:
When your device is connected to your computer with a cable and you Build + Run your app, your device will try to debug. Debugging is only permitted for Development profiles.
If you build + run with a Development Profile + Development Signing Code, everything will be OK
If you build + run with an AppStore Distribution profile + Distribution Signing Code, the app will not even reach your device. This build is only for uploading to AppStore
If you build + run with an AdHoc Distribution profile + Distribution Signing Code, you'll get the "failed to get the task for process..." error, but the app will get installed in your device. Unplug the device and run the app from your device. It's running in distribution environment. Enjoy :)
Solution 4:
I finally solved this by remembering to set code signing and provisioning parameters in BOTH project and target tabs...