“未找到适用于应用程序的有效 aps-environment 权利" [英] "no valid aps-environment entitlement found for application"

查看:31
本文介绍了“未找到适用于应用程序的有效 aps-environment 权利"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将支持推送通知的 iPhone 应用程序的 Ad Hoc 版本加载到我的设备时遇到此错误:

I am encountering this error when I am loading an Ad Hoc build of my Push Notification enabled iPhone app onto my device:

未找到适用于应用程序的有效 aps-environment 权利

no valid aps-environment entitlement found for application

这是什么意思,我该如何修复?

What does it mean, and how do I repair it?

推荐答案

我找到了解决方案.在 Build > Code Signing Identity 下的我的项目信息中,我将其设置为自动,并且它选择了一个没有启用推送通知的 AdHoc 分发配置文件.(这是错误的.)我选择了正确的配置文件,错误消失了.

I found the solution. In my project info under Build > Code Signing Identity I had it set to automatic, and it was selecting an AdHoc distribution profile which did not have push notifications enabled. (It was the wrong one.) I have selected the correct profile and the error is gone.

这篇关于“未找到适用于应用程序的有效 aps-environment 权利"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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