应用上架苹果商店被拒(ITMS-90078)

作者:aeui 更新时间:2020-06-18 12:47

苹果原文:

Dear Developer,


We identified one or more issues with a recent delivery for your app, XXXXX. Please correct the following issues, then upload again.


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 前往查看


Best regards,

The App Store Team


原文翻译:

缺少推送通知授权-您的应用似乎已向Apple推送通知服务注册,但应用签名的授权不包括“aps环境”授权。如果您的应用程序使用Apple推送通知服务,请确保您的应用程序ID已在设置门户中启用推送通知,并在使用包含“aps环境”权限的分发设置配置文件对应用程序进行签名后重新提交。Xcode不会在生成时自动从配置配置文件复制aps环境权利。这种行为是故意的。若要使用此权利,请在项目编辑器的“功能”窗格中启用推送通知,或手动将权利添加到您的权利文件中。


解决方法:

你的APP使用推送功能,但并未做推送弹窗授权提醒功能,你需要在APP启动时制作一个弹窗通知授权或未使用通知功能,直接移除通知相关功能、权限。