Add the “iCloud containers” entitlement to your App ID

12,013

Solution 1

I was having the same problem couple of days ago. Fixed it by doing these steps:

  1. Go to your developer account
  2. Find the App ID you are working on
  3. Click edit.
  4. On the iCloud section select the radio button that says "Include CloudKit support (requires Xcode 6)" enter image description here

Worked for me.

Solution 2

For me everything was just fine. I had to close and reopen xcode. Then go to 'Capabilities' and Toggle the 'iCloud' i.e OFF and Then ON it again.

Solution 3

I solved this by:

  1. Turn off iCloud capabilities.

  2. Change the app's bundle id.

  3. Turn on iCloud capabilities.

Now everything is regenerated afresh, and the error goes away. Of course, now the bundle id is wrong. But now you can go to the member center, delete the old (faulty) app id and any associated provisioning profiles, and change the bundle id back again.

Solution 4

I was trying to add an App ID matching my project's bundle ID, but it still doesn't update the warnings in iCloud.

Then I found that in "General" -> "Signing" it says Target is ad hoc signed, and I tapped the Enable Development Signing button, then Xcode started to auto manage the App ID etc and everything turned green :]

Solution 5

I tried all of the above, in the end all I did was quit Xcode, open it up again, and toggle the iCloud capability off and on again.

Share:
12,013
Danboz
Author by

Danboz

Updated on June 04, 2022

Comments

  • Danboz
    Danboz almost 2 years

    I am trying to fix this issue for hours now. I have checked the App ID and confirmed the iCloud containers. Also i have entered the same in the app entitlements.

    But there is a always a red mark before "Add the “iCloud containers” entitlement to your App ID". I created the new provisioning profile and removed the expired provision files also. This is the first time i am facing this issue.

    Is this issue related with the developer certificate signing or something?

    enter image description here

  • Jerry Krinock
    Jerry Krinock almost 7 years
    Worked for me too, except in Xcode 9 the checkmarks are gray, not green, and originally it said Target is unsigned, because I've been signing by scripting the codesign command-line tool since before Xcode had this feature.
  • TomSawyer
    TomSawyer over 6 years
    I already set it, still got red flag on xcode 9 without reason
  • oferei
    oferei over 5 years
    I've found out why this works. It sets PRODUCT_BUNDLE_IDENTIFIER in the project.pbxproj file.
  • matt
    matt over 5 years
    @oferei Fascinating and helpful if true! Thank you very much for your work on this.
  • Yohst
    Yohst almost 3 years
    Not a solution, this is a shotgun approach.