Xcode 5: Code signing entitlement errors

If you are like me and you think you tried EVERYTHING, archived your project over ten times, banged your head on the keyboard and still get this error. Please do yourself a favor and simply Restart XCode, it worked for me. Sometime Apple... I hate you.


The solution lies in the new option in Xcode 5 which says provisioning profile. Just set the project target's provisioning profile to the right one and it'll work.

enter image description here


I went through many of the steps above but what finally worked for me was refreshing my profiles in Xcode. Not sure why it was necessary since my app's distribution profile was showing up in the list already. Here are the steps:

  1. Xcode Preferences
  2. Accounts tab
  3. Select your Apple ID
  4. Hit the View Details button in the Apple ID detail panel
  5. Hit the Refresh button in the lower left corner