提交二进制版本后,我收到了来自苹果的警告邮件.

    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这样的第三方框架,但我不确定为什么我会一次又一次地收到这个警告.我已经通过了以下链接,但到处都是第三方框架问题.

我不想启用推送通知服务,因为我不会在我的应用程序中使用它.如能提供任何帮助来修复此警告,我们将不胜感激.提前谢谢您.

注意:我已经多次try 删除并重新创建我的配置文件和证书.

Missing Push Notification Entitlement warning

Missing Push Notification Entitlement

IOS Missing Push notification entitlement

推荐答案

我相当肯定这是苹果判断系统中的一个错误.我昨天上传了一个应用程序,收到了这条消息.此应用程序已至少更新了30次,没有任何问题.在上一个版本中,我没有添加任何推送通知代码,也没有使用任何可能导致此消息的框架,如PhoneGap或Cordova.它不会出现在设备上的通知下.

我已经在应用程序中搜索推送通知代码,但没有找到任何东西:

grep-r"registerUserNotificationSettings".
grep-r"registerForRemoteNotificationTypes".

我最终try 上传7月份批准的前一个版本(没有生成邮箱).这次我也收到了这个版本的警告邮件.因此,我认为苹果是错的,我会抓住机会,希望它能不顾警告而获得批准.


编辑:在苹果开发者论坛上找到了一位苹果员工的回复:

"那个通知只是一个警告,不是拒绝.

应用程序验证器判断应用程序中UIApplicationDelegate方法application:didRegisterForRemoteNotificationsWithDeviceToken:的实现.如果您的应用程序代理实现了该方法,并且没有APS环境授权,您将收到您所描述的警告.

你正在使用的第三方库可能已经实现了这种方法,即使你的应用程序没有使用推送通知.在这种情况下,你可以忽略警告.它可以让使用推送通知的开发者知道他们是否可能错误地签署了应用程序."


编辑2:我现在有两个不同的应用程序,尽管生成了警告邮箱,但这两个应用程序已经批准,没有任何问题

Ios相关问答推荐

React Native Text组件内部TextInput组件在iOS上的问题:在TextInput组件内部键入文本时失go 焦点

第三方框架的iOS隐私声明

OBJC @selector 在另一个实现中不起作用

当应用程序被杀死时是否还能获取位置?

当虚拟对象附加到其网格时,如何刷新创建 ARView 的 SwiftUI UIViewRepresentable?

Swift - 缺少函数参数在编译期间不会失败,甚至会导致不同的数据类型?

RFID scanner 的蓝牙服务 UUID?

保存和读取登录到 keys 串不工作 IOS swift

Swift/iOS:泛型错误:协议需要嵌套类型V;你想添加它吗?

为什么常量属性可能在 Swift 类中被初始化两次?

SwiftUI 中的描边图像边框

如何在 Mac OS Ventura 中使用 Xcode 13

工具栏底部 iOS 16 - SwiftUI

FileHandle 不会在 iOS 中释放内存

类型任何视图不能符合具有泛型的协议上的视图

clipShape swift的三元

检测 iPhone/iPad/iPod touch 的 colored颜色 ?

Xcode:此时无法安装此应用程序.

判断从 JSON 字符串返回的 Objective-C 中的空值

Xcode 5 和 iOS 7:架构和有效架构