Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 549
iamjustaprogrammer Avatar asked May 04 '14 22:05

iamjustaprogrammer


People also ask

What is build and version in Xcode?

These are the actual software version numbers, as opposed to the values used for marketing. If you go to Xcode menu > About Xcode, you'll see the Version and Build numbers. If you hit the More Info... button you'll see a bunch of different versions. Since the More Info...

What is build for testing Xcode?

Description. The Step runs Xcode's xcodebuild command with the build-for-testing option. This builds your app and associated tests so that you can, for example, upload it to a third-party testing service to run your tests on a real device.

What is Xcode build target?

A Target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.


Video Answer


2 Answers

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'

like image 98
okysabeni Avatar answered Oct 04 '22 08:10

okysabeni


Figured it out. My Developer Certificate was marked as "Expired" in Keychain (search Spotlight for "Keychain", then click on the "user" tab on the left). I deleted it, then went to Xcode > Preferences > Accounts, selected my ID and clicked on "View Details", then clicked the Update icon at the bottom left. Xcode re-installed the renewed certificate. Then I went to Build Settings and manually set the Debug configuration to use the Developer certificate Xcode just reinstalled for me.

like image 40
iamjustaprogrammer Avatar answered Oct 04 '22 08:10

iamjustaprogrammer