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. :(
UPADTE 2: Adding image of keychain
Look into the test target, the team should be the same in both the test target and the main target.
Issue is due to distribution provisioning profile try using development or Ad-Hoc provisioning,Hope it's work ,Good luck
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With