CloudKit 中的私人存储数据是否存储在用户的 iCloud 帐户中?

Is privately-stored data in CloudKit stored on the user's iCloud account?

我的应用程序需要用户创建数据并将其保存到他们的私人数据库中。数据会在他们的 iCloud 帐户中占用 space,还是会成为我 CloudKit 存储配额的一部分?谢谢!

Designing for CloudKit 文档中对此进行了介绍:

Each container is divided into public and private databases, each of which is represented by a CKDatabase object. Any data written to the private database is visible only to the current user and is stored in that user’s iCloud account. Data written to the public database is visible to all users of the app and is stored in the app’s iCloud storage.

因此私有数据库违背了用户的 iCloud 帐户及其配额。

public 数据库与您应用的 iCloud 帐户不符。您可以在 https://developer.apple.com/icloud/

的 iCloud 中查看您的应用如何分配 space