Missing Push Notification Entitlement解決方法


原委

最近提交APP到Apple Store審核,結果很快就收到Apple很"貼心"的郵件.原文如下:

Dear developer,

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

大意就是你的APP包含APS推送而打包文件中卻沒有正確配置.可能原因Apple也提供了:
1.Provisioning Portal開發者證書中心的配置文件可能有問題
2.工程配置文件未啟用APS服務

解決方法

對應Apple提供的解決方案,首先檢查證書中心.你的正式Profile和App ID應當設置正確,如下圖所示:

App ID
Profile

如果證書配置正確,再查看項目中的設置選項,是否激活遠程推送:

設置為On

激活后項目中會多一個Entitlement文件,如下所示:

Entitlement

檢查一切無誤后就可以再次打包到App Store了.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM