钛 – 在iTunes Store建立后发布iOS10 / Xcode 8.0“缺少推送通知授权”错误

前端之家收集整理的这篇文章主要介绍了钛 – 在iTunes Store建立后发布iOS10 / Xcode 8.0“缺少推送通知授权”错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当建立iTunes存储并提交存档时,我从苹果收到此错误

Dear developer,

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

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.

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

Regards,

The App Store team

我们尝试根据论坛中的建议重新创建配置文件,但是我们仍然会收到相同的电子邮件.

在“功能”选项卡下打开内置的.xcodeproj时,推送通知设置似乎已关闭.

解决方法

尝试在项目的根目录中创建一个Entitlements.plist文件.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/
DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>aps-environment</key>
    <string>production</string> <!-- Either development or production -->
  </dict>
</plist>

在Xcode 8之前,Xcode会读取您的配置配置文件,如果配置文件中设置了推送权限,则会自动将您的权利添加到该版本.自Xcode 8以来,不再是这样,您必须具体指定您使用的权利.

原文链接:https://www.f2er.com/iOS/329823.html

猜你在找的iOS相关文章