Invalid Code Signing Entitlements, error while submitting app to apple

∥☆過路亽.° 提交于 2019-12-11 13:43:40

问题


I am developing an app with iCloud enabled. While uploading the app to apple I got following error:

        Invalid Code Signing Entitlements. Your application bundle's 
signature contains code signing entitlements that are not supported by iOS. 

Specifically, key 
    `'com.apple.developer.icloud-container-identifiers' in Payload ------- not supported`

While surfing i also got some answer that disable iCloud,but I want to use iCloud feature for my app, so is there any other way to overcome this problem, please let me know. Thanks in advance


回答1:


It seems like your provisioning profile is not configured to allow iCloud entitlements. To do this, log into your dev account at http://developer.apple.com, go to the iOS Dev center, and Click the link on the right for "Certificates, Identifiers, & Profiles" under the iOS Developer Program on the right. Find your app id in the Identifiers section, and click the edit button. From there, make sure iCloud is enabled for both development and distribution.

Also, make sure your app id prefix is not using wildcards. You will not be able to use a wildcard prefix (com.example.*) when using any of the special entitlements, like iCloud, Push Notifications, etc. Once you are sure that is set up with iCloud enabled, you will need to regenerate your provisioning profile.

Click the Provisioning Profiles on the left, and find you app store provisioning profile. Click the Edit button on the profile, select the app ID that now has iCloud enabled, and click the "Generate" button to generate a new provisioning profile. Then download the provisioning profile and install it over top of the old profile. Then re-build and sign the app and try re-submitting.




回答2:


Another solution relevant to people re-signing their app:

If you have iCloud features enabled the provisioning profile will contain keys like com.apple.developer.icloud-container-identifiers. If you don't filter these keys out before you pass them to codesign they will end up inside the binary, which causes this error.



来源:https://stackoverflow.com/questions/25131570/invalid-code-signing-entitlements-error-while-submitting-app-to-apple

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!