1. 程式人生 > >如何解決 App 釋出的 Invalid Code Signing Entitlements 問題

如何解決 App 釋出的 Invalid Code Signing Entitlements 問題

近向 App store 提交了一個應用,應用的狀態顯示: Invalid Binary, 同時收到一封來自 apple 的郵件,大致內容是說,簽名有誤。 因為之前釋出都沒有遇到這種情況,看到這封郵件,一時茫然。 內容如下:

Invalid Code Signing Entitlements - The signature for your app bundle contains entitlement values that are not supported. For the com.apple.developer.ubiquity-container-identifiers entitlement, the first value in the array must consist of the prefix provided by Apple in the provisioning profile followed by a bundle identifier suffix. The bundle identifier must match the bundle identifier for one of your apps or another app that you are permitted to use as the iCloud container identifier.

Specifically, value "CVYZ4EC6W9.*" for key "com.apple.developer.ubiquity-container-identifiers" in XX is not supported.

仔細分析,問題出在 iCloud 的使用上, 解決方法:

1. 進入 IDP portal, 選中 該app所用的  Provisioning Profile ;

2.  編輯 Provisioning Profile, 去掉 iCloud support 的勾選。

3,重新生成 Provisioning Profile,將該檔案載入到 XCode 中

4, Build XCode ,生成 app ,

5, 再次通過 iTunes Connect 提交。