Xcode 8“应用程序签名中缺少 aps-environment 权利"提交时 [英] Xcode 8 "the aps-environment entitlement is missing from the app's signature" on submit

查看:26
本文介绍了Xcode 8“应用程序签名中缺少 aps-environment 权利"提交时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用,我们在过去 6 个月内向该应用提交了数十个版本,而且我们确实使用了 APNS.升级到 Xcode 8 后,我收到了来自 Apple 的以下电子邮件

I've got an app that we've submitted dozends of versions to in the last 6 months and we do use APNS. I got the following email from Apple after upgrading to Xcode 8

亲爱的开发者:

我们发现您最近的交货有一个或多个问题APP_NAME.您的交货是成功,但您可能希望更正以下问题下次交货:

We have discovered one or more issues with your recent delivery for APP_NAME. Your delivery was successful, but you may wish to correct the following issues in your next delivery:

缺少推送通知权利 - 您的应用包含用于Apple 的 Push Notification 服务,但 aps-environment 权利应用程序的签名中缺少.要解决此问题,请确保您的为 Provisioning Portal 中的推送通知启用了 App ID.然后,使用分发配置文件签署您的应用程序包括 aps-environment 权利.这将创建正确的签名,然后您可以重新提交您的应用程序.请参阅供应和开发"在本地和推送通知编程指南中更多信息.如果您的应用程序不使用 Apple 推送通知服务,无需任何操作.您可以从未来删除 API提交以停止此警告.如果使用第三方框架,您可能需要联系开发人员以获取有关删除API.

Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

纠正问题后,您可以使用 Xcode 或 Application加载程序将新的二进制文件上传到 iTunes Connect.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

问候,

App Store 团队

The App Store team

奇怪的是我去了 developer.apple.com -> Certificates, Identifiers &Profiles 和我的 AppId 仍然启用了推送通知.我没有做任何与我做过的事情不同的事情,所以很好奇 Xcode 8 更新是否破坏了某些东西.有任何想法吗?

What is weird is I went to developer.apple.com -> Certificates, Identifiers & Profiles and my AppId does have Push Notifications enabled still. I'm not doing anything different then I've ever done on it so am curious if the Xcode 8 update broke something. Any ideas?

顺便说一句:他们为推送通知编程指南提供的链接在电子邮件中已损坏,因此这不是一个好兆头.

BTW: The link they put for the Push Notification Programming Guide was broken in the email, so that's not a good sign.

推荐答案

其实很容易.出于某种原因,它在 Xcode 8 上被禁用,但转到 Targets -> Capabilities 并验证 Push Notifications 在该视图上是否全部正确.对我来说,它有一个修复我",我必须点击,瞧.

Very easy actually. For some reason it got disabled on Xcode 8 but go to Targets -> Capabilities and verify Push Notifications is all correct on that view. For me it had a "Fix Me" I had to click, and voila.

这篇关于Xcode 8“应用程序签名中缺少 aps-environment 权利"提交时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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