Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 455
AlienMonkeyCoder Avatar asked Jan 24 '11 16:01

AlienMonkeyCoder


2 Answers

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.

like image 126
Eamonn Fallon Avatar answered Jan 01 '23 10:01

Eamonn Fallon


Thanks for all the ideas.

As I had a different reason, I want to share it as well:

Bought a new device, which I restored from a backup of my old one. Having the same name, iTunes and XCode also copied all the provisiong profiles.

I forgot, that, even if the device is called the same, (and my provisioning profile was including this name) it is a different device id and it does not work on this device until you include this as well in your provisioning profile, update, download and install in Xcode.

like image 45
Christian Avatar answered Jan 01 '23 10:01

Christian