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

Anderson Katao picture Anderson Katao · Nov 14, 2016 · Viewed 40.4k times · Source

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....

Answer

lostInTransit picture lostInTransit · Nov 14, 2016

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.