I registered the application in iTunes connect. When I run the application on the device, I get the following APNS error.
Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x19e890 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
I used the same AppID and bundle in the xCode project as well as iTunes connect.
In addition, I forgot to mention that the application is registered in the Enterprise developer profile, and I run it under my personal developer profile.
source
share