Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No valid 'aps-environment' entitlement string found for application on app store

I fix this problem by enabling push notification capability.

Click on .xcodeproj -> Capabilities -> Enable Push Notification


I fixed this issue like this:

  • Go to Xcode "Preferences"
  • Go to "Accounts" tab
  • Select my Apple ID and click "View Details"
  • Click on the arrow on the bottom left corner to refresh
  • Click "Done"

And try again!

Source:

  • https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html#//apple_ref/doc/uid/TP40012582-CH30-SW26

You must have to enable Target—> capabilities—> push notification. I have faced this issue using Xcode 8. enter image description here


Such problems are due to current Provisioning Profile does not contain APNS information, as the Provisioning Profile is created BEFORE creating the APNS certificate.

Therefore, to solve the problem, create a new Provisioning Profile & select the Provisioning Profile in Xcode. Then you are DONE.

Also, when you add push, I believe you have updated the certificates in keychain too.


Navigation for adding push notification capabilities has changed slightly on higher versions of Xcode. Here using 12.2

Xcode 12 add notifications capabilities instructions