After updating Xcode version to 8.0 I'm getting this error. When trying to register for remote notifications I can see in my logs like this
Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}, no valid 'aps-environment' entitlement string found for application
I tried after found some Stack Overflow answers related to my question but not able to solve this.
1.Created new Provisional Profile
2.Deleted and re-installed app
3.Tried to set provisional profile manually.
Any of the above not helped me to solve.
Please give me suggestions. Thanks in advance.