尝试启用推送通知时,没有为应用程序找到有效的“aps-environment”权利字符串 [英] no valid 'aps-environment' entitlement string found for application when trying to enable push notifications

查看:137
本文介绍了尝试启用推送通知时,没有为应用程序找到有效的“aps-environment”权利字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读所有其他问题,询问这个错误,似乎我已经按照他们的解决方案,但我仍然有这个问题。我删除了所有现有的配置文件和应用程序标识。我创建了一个已启用推送的新应用ID。我创建了一个开发配置文件,启用推送。在Apple开发者站点上,该配置文件旁边有一个绿色的活动指示器。在xcode5中,在首选项>帐户下,列出供应配置文件。在窗口>组织器下,设置配置文件显示在我的设备下,状态为有效配置文件。但错误仍在发生。我在这里缺少什么?

I've been reading all the other questions asking about this error and it seems like I've followed their solutions but I'm still having this problem. I removed all the existing provisioning profiles and app ids. I created a new app id that has push enabled. I created a development provisioning profile with push enabled. On the Apple dev site, that provisioning profile has a green "active" indicator next to it. In xcode5, under preferences>accounts, the provisioning profile is listed. Under window>organizer, the provisioning profile appears under my device with the status "valid profile". But the error is still occurring. What am I missing here?

编辑:我想清楚地表明,在创建APNS证书之后,我创建了配置文件,因为这似乎是最常见的解决方案。

I want to make it clear that I created my provisioning profile AFTER creating the APNS certificate since that seems to be the most common solution to this.

推荐答案

当然,我知道在输入一个问题后出现什么问题 - xcode中的bundle标识符与我的appid不匹配,我在重新启动配置过程后忘记更新我上传到城市飞艇的证书。

Of course I figure out what's wrong right after typing a question - the bundle identifier in xcode did not match my appid, and I forgot to update the certificate I uploaded to urban airship after restarting the configuration process.

这篇关于尝试启用推送通知时,没有为应用程序找到有效的“aps-environment”权利字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆