CloudKit 使用的云帐户
Account of the cloud used by CloudKit
抱歉问了一个愚蠢的问题。我希望我的应用程序使用 iCloud 来备份和同步用户数据,假设 CloudKit 适用于用户的云。然而,情况可能并非如此。
我有两个云帐户:个人帐户和开发人员帐户。我的 macOS 登录到个人 iCloud 帐户,所以我希望我的 macOS 应用程序可以使用它。但是 CloudKit 仪表板显示的是开发者帐户的云容器。
另外 iCloud design guide 说“CloudKit 提供了一种将数据作为记录存储在数据库中的方法,您的应用程序的用户可以共享 ”,这意味着云数据代表所有用户的单个实例。
那么,CloudKit 使用了哪种云:用户的、开发人员的或单独的云(专为应用程序容器设计)?如果它使用了一个单独的云,它算作开发人员的存储吗?
您应用的 CloudKit 容器包含两个数据库;一个 public 您应用的所有用户都可以访问的数据库和一个只能由当前用户访问的私有数据库。
私人数据库中的个人记录可以通过 CKShare
.
与其他用户共享
存储在 public 数据库中的数据来自您应用的存储分配;您免费获得的存储空间量取决于应用安装的数量。
存储在私人数据库中的数据存储在用户的 iCloud 存储中,并计入他们的存储分配。
来自 CloudKit Quick Start 文档
An app has access to both a public and private database in each container. The public database is for storing user and app data that is shared between all instances of the app. By default, all users can read the public database, but they need to enter iCloud credentials to write to the public database. There’s a private database for each user of your app, but the app only has access to the private database of the current user. The user has to enter iCloud credentials for the app to read and write to the private database.
信息也可在 CloudKit Overview 页面上找到 - 检查底部的脚注;私人存储来自用户的免费 5GB 配额(他们可能会购买更多)。 Public 存储空间来自您应用的限额。
抱歉问了一个愚蠢的问题。我希望我的应用程序使用 iCloud 来备份和同步用户数据,假设 CloudKit 适用于用户的云。然而,情况可能并非如此。
我有两个云帐户:个人帐户和开发人员帐户。我的 macOS 登录到个人 iCloud 帐户,所以我希望我的 macOS 应用程序可以使用它。但是 CloudKit 仪表板显示的是开发者帐户的云容器。
另外 iCloud design guide 说“CloudKit 提供了一种将数据作为记录存储在数据库中的方法,您的应用程序的用户可以共享 ”,这意味着云数据代表所有用户的单个实例。
那么,CloudKit 使用了哪种云:用户的、开发人员的或单独的云(专为应用程序容器设计)?如果它使用了一个单独的云,它算作开发人员的存储吗?
您应用的 CloudKit 容器包含两个数据库;一个 public 您应用的所有用户都可以访问的数据库和一个只能由当前用户访问的私有数据库。
私人数据库中的个人记录可以通过 CKShare
.
存储在 public 数据库中的数据来自您应用的存储分配;您免费获得的存储空间量取决于应用安装的数量。
存储在私人数据库中的数据存储在用户的 iCloud 存储中,并计入他们的存储分配。
来自 CloudKit Quick Start 文档
An app has access to both a public and private database in each container. The public database is for storing user and app data that is shared between all instances of the app. By default, all users can read the public database, but they need to enter iCloud credentials to write to the public database. There’s a private database for each user of your app, but the app only has access to the private database of the current user. The user has to enter iCloud credentials for the app to read and write to the private database.
信息也可在 CloudKit Overview 页面上找到 - 检查底部的脚注;私人存储来自用户的免费 5GB 配额(他们可能会购买更多)。 Public 存储空间来自您应用的限额。