Xcode build & run error: "Process launch failed: Failed to get the task for process 216"

iamjustaprogrammer picture iamjustaprogrammer · May 5, 2014 · Viewed 42.9k times · Source

After updating to Mavericks and making sure I got the latest updates of Xcode installed as well, Xcode suddenly fails to launch apps on the device.

It installs the app on my iPhone but then before running it, throws this error:

Process launch failed: Failed to get the task for process 216

This is how the Code Signing settings look like since the update:

enter image description here

Also checked Scheme and it runs in Debug configuration.

Is this a known issue with Mavericks? How to fix it?

Answer

okysabeni picture okysabeni · Dec 19, 2014

I got this error when signing it with a distribution profile. In my case, it was an Ad Hoc profile.

It was confusing to me because you can't 'run' and install the app directly to your device if you sign it with a distribution profile. For my case, I use testflightapp and was able to upload the IPA.

The error message is not very descriptive of the problem.

Also, if you are stuck, make sure you check the profiles for both the 'Project' and the 'Target'