1
votes

I have added entitlements file and set correct path in code signin entitlements

enter image description here

but still I'm getting

Failed to get token, error: 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}

1
Are you using push notifications?shallowThought
you dont have valid provisioning profile , do one thing , just set no code signing to Target and Project section and then once run in simulator and then Refresh and then close xcode and then generate provisioning profile and download it and set code signing again and run it should fix your issue .Shobhakar Tiwari
FYI: i'm using push notification and my certificates are validAbhishek Thapliyal

1 Answers

2
votes

Thanks to all and in this case it is solved by : http://www.jianshu.com/p/62f631012853

enter image description here

in my case : Any SDK is present and after removing i got token :)