I am getting error:
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).
on DISTRIBUTION CERTIFICATE & PROVISIONING
Profile. Earlier, I was able to install the build using distribution profile, But, now I am not able to do so. It gives above error.
Below is my entielement contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.myapp.xyz</string>
</array>
</dict>
</plist>
I have enabled PushNotification
in my appid.
From past 2-3 days, I have gone through many such post on stackoverflow and tried various solutions. But none of them has worked. Things I have done to resolve,
Xcode->Preferences->account->view Details-> download all
)Restareted XCode
many times after removing certs adding new ones According to error, I have matched my provision profile Application services (as per my appID in developer portal) with build capabilites in XCode
. But its not working.
Does that .entitlements
file has to do anything with "Build capabilites"? I tried removing .entitlement
once but no luck.
UPDATE: I created a new project, New appID (The default ones are enabled. In-app and game center) and new distribution provisioning profile. Still gives same error. :(
Look into the test target, the team should be the same in both the test target and the main target.