CloudKit:区域已被用户清除

CloudKit: Zone was purged by the user

我的一个用户删除了他们的云数据,现在他们收到一条 "Zone was purged by the user" 消息。我相信它在获取区域时返回错误 CKErrorUserDeletedZone。

文档说明如下:

  • The user deleted this zone through the settings UI. Your client should either remove its local data or prompt the user before attempting to re-upload any data to this zone. */

不清楚是否应该删除区域并重新创建。 有人遇到过这种情况吗?

该区域已被删除,您应该询问用户是否要重新创建数据库(如果可能)或停止使用 CloudKit。 如果您的应用需要 CK,那么您应该要求用户不要再这样做。