Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Use default container" doesn't show in iCloud Capabilities

I want set up iCloud sync for CoreData using CloudKit.

But when I add iCloud in Capabilities and enable CloudKit checkbox, Use default container don't appear as described in the Doc: Capabilities tab

Instead, I got this:

have no “Use default container” Maybe I'm missing something?

like image 537
nomnom Avatar asked Aug 27 '19 22:08

nomnom


People also ask

How do I add iCloud capability to Xcode?

Add the iCloud Capability to Your Xcode ProjectIn the Xcode Project navigator, select your project and your project target. Click the “Signing and Capabilities” tab and select “Automatically manage signing.” Specify your development team. Make sure that your bundle identifier is one you want to use for your app.


1 Answers

This changed in Xcode 11, there no longer is a default container checkbox.

Instead you have to create your own container. Just press the + and enter your bundle-id. Xcode will automatically prefix it with iCloud.

So the result will be iCloud.<your app’s bundle ID>, the same as the default Xcode used previously.

This seems to be a useful tutorial, updated with changes in Xcode 11: https://www.raywenderlich.com/4878052-cloudkit-tutorial-getting-started

like image 194
simonnickel Avatar answered Oct 19 '22 07:10

simonnickel