Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Code Signing Entitlements, error while submitting app to apple

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

like image 979
Sushant Deshmukh Avatar asked Sep 19 '25 15:09

Sushant Deshmukh


2 Answers

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.

iOS Certificates, Identifiers & Profiles in the iOS Dev Center

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.

like image 156
wottle Avatar answered Sep 22 '25 13:09

wottle


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.

like image 34
Tom K Avatar answered Sep 22 '25 14:09

Tom K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!