Reputation: 561
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?
Upvotes: 10
Views: 13354
Reputation: 970
Upvotes: 0
Reputation: 534893
I solved this by:
Turn off iCloud capabilities.
Change the app's bundle id.
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.
Upvotes: 3
Reputation: 5416
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.
Upvotes: 1
Reputation: 7752
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.
Upvotes: 4
Reputation: 1096
At least in Xcode 9.1, I had to choose the Team in Signing section (Target -> General pane). The team was already chosen but I had to choose it again to make the error disappear. It might have to do with developer certificate renewal.
Upvotes: 1
Reputation: 8548
In my case, under Xcode - General - Signing, the name in the Team field was not correct.
Upvotes: 1
Reputation: 1943
Try - delete all provisioning profiles - go to Xcode->preference->account - add your apple id here (makes you easy to download profiles) - Click download profiles.
Upvotes: 0
Reputation: 2491
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 :]
Upvotes: 2
Reputation: 1259
I was having the same problem couple of days ago. Fixed it by doing these steps:
Worked for me.
Upvotes: 12