CloudKit iOS 我如何设置世界写入权限

CloudKit iOS how could I set World Write Permission

如何在 iCloud 仪表盘上设置世界写入权限 因为现在它被禁用了,而且真的需要它

简答:你不能。

For a running CloudKit app, a container’s public database is always readable, even when the user is not signed in to their iCloud account on the device. Saving records to the public database and accessing the private database requires that the user be signed in. If your app does more than read data from the public database, check to see whether the user is signed in before saving records.

参考:Designing for CloudKit

CloudKit 要求用户登录 iCloud 帐户才能写入 public 数据库。

如果您需要为没有 iCloud 帐户或不想登录的用户提供此类功能,您可能需要研究不同的云解决方案。

如果只需要从自己的服务器写入public数据库,可以使用CloudKit Web Services with a server-to-server key.