Xcode with iPhone 4 Development: The executable was signed with invalid entitlements.

AlienMonkeyCoder picture AlienMonkeyCoder · Jan 24, 2011 · Viewed 14.5k times · Source

The complete error message is:

The executable was signed with invalid entitlements.

The executable was signed with invalid entitlements. The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).

I have already spent a couple of hours resolving this error message but haven't resolved it yet. Basically, I have made my iPhone-4.0 for development and installed the valid provisioning profile from my account on developer.apple.com.

We have our main application, which is signed with the same provisioning profile, and it works fine, but when I try running application given in the http://teachyourselfiphone.com/ book for learning and testing purposes, it just doesn't work.

I have tried all of the following things, but nothing works.

  1. The executable was signed with invalid entitlements
  2. http://jomnius.blogspot.com/2010/11/executable-was-signed-with-invalid.html

Could anyone please help me to get rid of this?

Answer

Eamonn Fallon picture Eamonn Fallon · Mar 14, 2011

I was getting this error today. The issue was that the provisioning profile on the project was different to the provisioning profile on the target.

Go to the project settings and make sure the provisioning profile is one that matches your current application identifier

Then go to the target settings and make sure that it is the same setup.