Home > Enterprise >  Xcode not automatically adding CloudKit containers
Xcode not automatically adding CloudKit containers

Time:01-31

I have added cloudkit to an existing app and I'm having a little trouble with xcode not automatically creating Containers when adding iCloud capability to Signing & Capabilites. It looks like this:

enter image description here

What can be the problem here? I have followed the guide on Apples page: enter image description here

CodePudding user response:

It seems you have to enable iCloud for your provision profile. It can be done by going to the Identifiers section at developer.apple.com. Then find your bundle identifier and make sure iCloud is checked.

enter image description here

CodePudding user response:

It was solved by creating a new container in xcode, quite simple. And now everything works! Just press the plus as seen below and give it a name, preferably same name as the bundle identifier but starting with icloud: icloud.com.developerName.projectName

enter image description here

  • Related