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: