1
votes

i'm trying to implement push notifications in my app, but it tells me “no valid aps-environment entitlement found for application”

I set the identifier correctly and even added an "aps-environment" entry in my Info.plist, but still it gives me this error message.

The bundle identifier is set correctly and i installed the certificates from the provisioning portal.

Thanks for your help

1
Are you using a com.yourcompany.* provisioning profile by chance?jonathanpeppers
de.mycompany.appname yesVolker Mauel
If you are using a wildcard it would cause problems, does not sound like you are though. Can you try running codesign -dvvvv --entitlements - /path/to/App.app? You should see aps-environment=production.jonathanpeppers

1 Answers

1
votes

In "normal" environment ( macosx + xcode) I am selecting the Project, and at Targets I need to enable the Entitlements, like this: screenshot and need to be the provisioning profile with my device UDID added