“使用默认容器”未显示在 iCloud 功能中

nom*_*nom 11 icloud swift cloudkit

我想设置iCloud同步以CoreData使用CloudKit.

但是,当我加iCloudCapabilities并启用CloudKit复选框,Use default container如文档描述不会出现: 功能选项卡

相反,我得到了这个:

没有“使用默认容器” 也许我错过了什么?

小智 11

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.

这似乎是一个有用的教程,更新了 Xcode 11 中的更改:https : //www.raywenderlich.com/4878052-cloudkit-tutorial-getting-started