31

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?

mfaani
  • 33,269
  • 19
  • 164
  • 293
iamjustaprogrammer
  • 1,634
  • 2
  • 17
  • 34
  • This Q/A worked for me: http://stackoverflow.com/questions/37806538/code-signing-is-required-for-product-type-application-in-sdk-ios-10-0-stic – Steve W Dec 22 '16 at 18:30

4 Answers4

71

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'

oky_sabeni
  • 7,672
  • 15
  • 65
  • 89
  • This worked for me. obviously we cannot use the distribution profile anymore to test on devices unless it goes through test flight which is a hassle now... – INSITE MOBILE Mar 17 '15 at 18:57
  • 1
    I was getting the same error with different error codes but figured out that the issue was with my 'code signing identity'. I was using iOS distribution profile, changing it to developer profile solved my problem. – Vakas Aug 17 '15 at 04:51
18

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.

iamjustaprogrammer
  • 1,634
  • 2
  • 17
  • 34
  • Thanks. in my case I had the old certificates and the new renewed certificates (with the same name) in the keychain. When I deleted the old certificates, it worked! – Beleg Dec 07 '14 at 16:19
10

I think you use the distribution profile, you can revise like this:

[enter image description here]

pkalinow
  • 1,619
  • 1
  • 17
  • 43
chenguang
  • 101
  • 1
  • 2
  • Though you do not have reuptation to comments on question, it is not a good way to represent. Better wait until you have proper reputation to comment – Nehal Mar 09 '16 at 11:06
0

In my case I had to go to Keychain, lock/unlock or unlock/lock Login, there is something with the signing that looses state.

Juan Boero
  • 6,281
  • 1
  • 44
  • 62