Ios – Xcode 6 invalid entitlements in the project

entitlementsiosiphonexcode

I want to distribute my app, but when I run it it shows me message:

The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).

I already watch my distribution account and Capabilities in Xcode and
entitlements in them are the same. In what can be problem?

Best Answer

I also get this exception few times when I did something with provisioning profiles or capabilities, In my case its always in iCloudkit (xcode 6) issue, for some reason in app id (if you check in developer center) it assigned invalid or unwanted icloud containers to the app id. So i remove them and only added one correct container to fix this issue.

enter image description here