我可以在 CloudKit 的生产环境中即时创建 CKRecordZone 吗?

Can I create a CKRecordZone on the fly in the production environment of CloudKit

我正在用代码动态创建一个 CKRecordZone,它当然可以在 CloudKit 上进行开发。

但是它会在生产环境中工作吗?我可以在生产中即时创建 CKRecordZones 吗?还是我需要重新考虑设计?

是的,您可以在生产环境中即时在用户的私有数据库中创建区域。

只要确保在准备就绪后将方案部署到生产环境即可。请参阅 Deploying the Schema chapter in the CloudKit Quick Start

另外,在将您的应用程序提交到 App Store 之前,请务必使用生产数据库使用 Test Flight 测试您的应用程序。