在应用商店中找不到适用于应用程序的有效“aps-environment"权利字符串 [英] No valid 'aps-environment' entitlement string found for application on app store

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

问题描述

所以我有一个名为 Dripper 的应用程序,我大约在一个月前发布了它,然后在几天前进行了更新.该更新添加了推送通知和一些小调整.我使用开发配置文件使用沙箱 apn 对其进行了测试,并且效果很好.然后我将事情切换到 production-apn 并将其推送到试飞,再次一切正常.一旦我在市场上发布更新并运行它,我注意到我没有在服务器上获得任何新的推送注册.我查看了设备的控制台日志,发现了这个:

So I have this app called Dripper that I put out about a month ago and then an update a couple days ago. The update added push notifications and a few little tweaks. I tested it with the sandbox-apn using the development profile and things worked great. Then I switched things to the production-apn and pushed it to test-flight, again things worked perfectly. Once I put update on the market and ran it I noticed I wasn’t getting any new push registrations on the server. I looked at the console logs for the device and found this:

Dec 4 17:55:15 Ina-touch-it coffco[1210]:注册远程通知
12 月 4 日 17:55:15 Ina-touch-it SpringBoard[52]:找不到应用程序Dripper"的有效aps-environment"权利字符串:(空).将不会发送通知.
12 月 4 日 17:55:15 Ina-touch-it coffco[1210] <Warning>:注册失败,错误:Error Domain=NSCocoaErrorDomain Code=3000"找不到有效的 'aps-environment' 权利字符串应用程序"UserInfo=0x174270900 {NSLocalizedDescription=没有为应用程序找到有效的aps-environment"权利字符串}

Dec 4 17:55:15 Ina-touch-it coffco[1210] : Registering for remote notifications
Dec 4 17:55:15 Ina-touch-it SpringBoard[52] : No valid 'aps-environment' entitlement string found for application 'Dripper': (null). Notifications will not be delivered.
Dec 4 17:55:15 Ina-touch-it coffco[1210] <Warning>: Failed to register with error : Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x174270900 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}

我有点困惑,因为我认为生产 apn 在临时构建和应用商店构建之间的功能相同.

I am a bit confused because I thought that the production-apn would function the same between ad-hoc and app store builds.

这是我的应用 ID 及其权利:

Here is my app id and its entitlements:

这是应用商店的配置文件:

Here is the provisioning profile for the apps store:

推荐答案

我通过启用推送通知功能解决了这个问题.

I fix this problem by enabling push notification capability.

点击 .xcodeproj -> Capabilities -> 启用推送通知

Click on .xcodeproj -> Capabilities -> Enable Push Notification

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

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