【发布时间】:2015-11-21 22:32:15
【问题描述】:
我在提交二进制构建后收到了来自 Apple 的警告邮件。
Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.
If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement.
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.
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.
我没有使用推送通知或任何第三方框架,如 Coredova,但我不确定为什么我会一次又一次地收到此警告。我浏览了以下链接,但到处都是第三方框架问题。
我不想启用推送通知服务,因为我不会在我的应用程序中使用它。任何帮助将不胜感激以解决此警告。提前致谢。
注意:我已经多次尝试删除并重新创建我的个人资料和证书。
Missing Push Notification Entitlement warning
【问题讨论】:
-
我也刚收到这封警告邮件,就像下面 Sten 的回答一样,我根本没有任何通知代码,而且我最近的几次修订从未收到此警告。所以我希望 Sten 是对的,这只是苹果方面的一个错误。对我来说唯一的不同是我最近在 bitbucket 上合并了一些代码,然后在本地下载了它,所以我想我可能在其中丢失了一些东西,但这些答案让我觉得情况并非如此。
-
@Sasi M:我也收到了来自 Apple 的警告邮件。我已经尝试了从创建新的配置文件和其他东西的所有方法,但仍然收到这样的警告。如果您能够解决问题,请更新。
-
我从昨天开始遇到同样的问题。我的应用程序没有也从未配置为使用推送通知,我的代码中没有推送通知,我什至没有使用第三方库。我正在向 Apple 提交错误报告,建议您也这样做。
-
同上,我在不使用推送通知的新应用程序上收到了相同的电子邮件警告。
-
我刚收到同样的电子邮件。我的开发分支上的工作有点停滞,所以我只重新提交了一个月前提交的完全相同的构建。一个月前提交时我没有收到这封电子邮件。我正在使用本地通知,但我认为这些不需要推送通知权利。我想我们或许应该将其记录为苹果的错误?
标签: ios notifications apple-push-notifications