Provisioning profile doesn't include the aps-environment entitlement


Every time I try to package my application, the build fails with the following output:

Check dependencies
Provisioning profile “…” doesn’t include the aps-environment entitlement.
Code signing is required for product type ‘Application’ in SDK ‘iOS 10.2’

In XCode I’m able to build the application. Can someone please help me with this?


How are you trying to “package” your application?
What is the exact command you are executing?


is connected to Push. Which plugins have you installed for that?