No valid 'aps-environment' entitlement string found for application on app store
Solution 1:
I fix this problem by enabling push notification capability.
Click on .xcodeproj -> Capabilities -> Enable Push Notification
Solution 2:
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
Solution 3:
You must have to enable Target—> capabilities—> push notification. I have faced this issue using Xcode 8.