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.
Could anyone please help me to get rid of this?
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.