Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.1 "Provisioning profile doesn't include the aps-environment entitlement"

Is anyone experiencing this problem?

After persistence problemas and information retrieval on the KeyChain I had enable the KeyChain Sharing feature in Capabilities. This was to create a file called .entitlements

So, when I gonna run the Archive this error occurs:

Check Dependencies:   Provisioning profile doesn't include the aps-environment entitlement.   Code signing is required for product type 'Application' in SDK 'iOS 10.1' 

I'm using OS El Capitan 10.11.6, Xcode 8.1

If anyone can help.

Pleaseeee....

like image 381
Anderson Katao Avatar asked Nov 14 '16 11:11

Anderson Katao


People also ask

How do I add entitlement to provisioning profile?

To use this special entitlement you must create a new provisioning profile in the Certificates, Identifiers & Profiles section of your developer account and select the entitlement after the “Do you need additional entitlements?” page.

What are Xcode entitlements?

An entitlements. plist file is created per each provisioning profile (app executable) produced by Xcode during the application build step. If your secured app contains any Extensions or Frameworks, multiple entitlements files will be created by Xcode's build process and are required for the app signature.


1 Answers

Check the Capabilities tab on your target and make sure the Add the Push Notifications entitlement to your entitlements file shows a check mark (under Push Notifications). If it shows an error, fix and you should be good to go.

like image 84
lostInTransit Avatar answered Sep 24 '22 12:09

lostInTransit