[英]Apple Push Notification Error (aps-environment)
I have registered the app on iTunes connect. 我在iTunes connect上注册了该应用程序。 When I run the app on the device I get the following APNS error.
当我在设备上运行应用程序时,我收到以下APNS错误。
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 have used the same AppID and bundle identifier in the xCode project as well as the iTunes connect. 我在xCode项目中使用了相同的AppID和包标识符以及iTunes连接。
Also, I forgot to mention that the App is registered under a Enterprise developer profile and I am running it under my personal developer profile. 此外,我忘了提到该应用程序是在Enterprise开发人员配置文件下注册的,我在我的个人开发者配置文件下运行它。
您尚未在配置门户中启用推送通知,或者您没有使用在启用推送通知时创建的正确证书对您的应用进行签名。
Having the same problem, I ended up removing my Provisioning Profiles, on the provisioning portal clicked Edit and then Generate to have them freshly generated, then downloaded the needed Provisioning profiles and double-checked Code Signing Identity (in Build Settings). 遇到同样的问题,我最终删除了我的供应配置文件,在供应门户上单击了编辑,然后生成以便新生成它们,然后下载所需的供应配置文件并仔细检查代码签名标识(在构建设置中)。
Code Signing Identity looks like this: http://i.stack.imgur.com/2l2hd.png 代码签名标识如下所示: http : //i.stack.imgur.com/2l2hd.png
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.