缺少推送通知权利问题 [英] Missing Push Notification Entitlement issues

查看:35
本文介绍了缺少推送通知权利问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我存档我的应​​用程序时,我收到来自苹果的以下错误.我该如何解决这个问题?

ITMS-90078:缺少推送通知权利 - 您的应用似乎注册了 Apple 推送通知服务,但应用签名的权利不包括aps-environment"权利.如果您的应用程序使用 Apple 推送通知服务,请确保您的应用程序 ID 在配置门户中启用推送通知,并在使用包含aps-environment"权利的分发配置文件对您的应用程序进行签名后重新提交.Xcode 不会在构建时自动从配置文件中复制 aps-environment 权利.这种行为是故意的.要使用此权利,请在项目编辑器的功能"窗格中启用推送通知,或手动将权利添加到您的权利文件中.有关更多信息,请参阅 打开您的项目目标,然后转到 Signing &Capabilities 然后单击 + Capability 并选择 Push Notification 它应该像图像一样呈现给您

I'm getting the following error from apple when I Archive my app. How do I fix this?

ITMS-90078: Missing Push Notification Entitlement - Your app appears 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. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.

After you’ve corrected the issues, you can upload a new binary to App Store Connect.

解决方案

open your project target and then go to Signing & Capabilities then click in the + Capability and select Push Notification it should appear to you like the image

这篇关于缺少推送通知权利问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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