“使用默认容器”没有显示在iCloud功能中 [英] "Use default container" doesn't show in iCloud Capabilities

查看:81
本文介绍了“使用默认容器”没有显示在iCloud功能中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 CloudKit CoreData 设置 iCloud 同步c>。

I want set up iCloud sync for CoreData using CloudKit.

但是当我在 Capabilities iCloud 时>并启用 CloudKit 复选框,使用默认容器不会如文档中所述:
< img src = https://docs-assets.developer.apple.com/published/1bdbaa589a/8b7ffc9c-e293-4030-a214-17f63cc74a47.png alt =功能标签>

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

相反,我得到了:


也许我丢失了

Maybe I'm missing something?

推荐答案

这在Xcode 11中有所更改,不再有默认的容器复选框。

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

相反,您必须创建自己的容器。只需按+,然后输入您的bundle-id。 Xcode会自动为它加上 iCloud前缀。

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

因此,结果将是 iCloud。 ;您的应用程序的捆绑包ID> ,与以前使用的默认Xcode相同。

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-入门

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

这篇关于“使用默认容器”没有显示在iCloud功能中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆