“Use default container” doesn't show in iCloud Capabilities

守給你的承諾、 提交于 2020-08-02 07:41:45

问题


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:

Maybe I'm missing something?


回答1:


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



来源:https://stackoverflow.com/questions/57683083/use-default-container-doesnt-show-in-icloud-capabilities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!