Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode : failed to get the task for process

This is for an existing app that compiled and distributed multiple times. Since updating to Xcode 5 I have this error popping.

  1. I have my developers profile selected in the Code Signing for debug.
  2. Deleted the Derived Data a few times.
  3. Quit a few times
  4. Downloaded and tried to re-add my Developers certificates.
  5. Reset my computer! And checked updates
  6. Tried using black magic!
  7. The Scheme > Build Configuration is set to Debug

The odd circumstances I am compiling to compile to iOS 6.1 so I can run on my iPhone 3GS - the base is SDK iOS 7? Could this be an issue? I just need to test it before finding a newer phone to before change it to iOS 7.

like image 983
elliotrock Avatar asked Sep 20 '13 09:09

elliotrock


3 Answers

This error tends to appear when you pick an ad-hoc provisioning profile. Make sure that your code signing is for development.

like image 56
hasan Avatar answered Oct 11 '22 04:10

hasan


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.

like image 28
David Douglas Avatar answered Oct 11 '22 05:10

David Douglas


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.

  1. If you build + run with a Development Profile + Development Signing Code, everything will be OK

  2. 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

  3. 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 :)

like image 36
Alex Christodoulou Avatar answered Oct 11 '22 04:10

Alex Christodoulou