No valid 'aps-environment' entitlement string found for application on app store
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
I fix this problem by enabling push notification capability.
Click on .xcodeproj -> Capabilities -> Enable Push Notification