No valid aps-environment entitlement string found

Hello everyone,

I'm facing an issue when I ask user the permission for notification (to get device token) in Release mode.


1. I've correctly set the Capabilities of my project to push-notifications

2. My mobileprovision file containts an aps-environment key :


security cms -D -i xxx.mobileprovision
# ...
<key>Entitlements</key>
<dict>
  # ...
  <key>aps-environment</key>
  <string>development</string>
</dict>


3. I've updated our account certificate in Xcode.


But I still have an error in my AppDelete : `didFailToRegisterForRemoteNotificationsWithError`: No valid aps-environment entitlement string found


How can I get ride of this error ?


Regards,

Emmanuel

@grimouille im also currently facing this issue, by any chance did you resolve this. if yes, could you let me know the solution .

No valid aps-environment entitlement string found
 
 
Q