iOS10 推送证书问题

昨天提交了优化的项目之后,苹果官方给我发了一封邮件:


Dear developer,

We have discovered one or more issues with your recent delivery for "****". 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



百度一下,大致说了修改推送证书,但还是一头的雾水啊,经过了一天的尝试之后,解决了,现在跟同猿们分享经验:
1.打开开发者网站 https://developer.apple.com/account,点击APP IDS





2.选择你的项目id,点击edit



3.进入之后红色部分为测试通知证书,蓝色部分为开发通知证书,这时候你需要的是开发通知证书,点击蓝色框里面的创建证书





4.点击continue




5.需要先生成证书文件


6.打开钥匙串,屏幕左上角的钥匙串访问-证书助理-从证书颁发机构请求证书...



7.红色部分填写你的开发帐号,名称随便填,记得选择存储到磁盘,继续之后就生成了一个证书文件了




8.选择你刚生成的文件,continue



9.这时候证书就配置完成了,删除钥匙串里的旧证书,重新下载,双击安装


10.最后一步,点击项目文件-capabilities-打开push notification




好了,这时候就可以重新提交项目了


选择你的项目id,点击edit
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值