Search code examples
ioscloudkitdev-to-productionckrecordzone

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


I am creating a CKRecordZone on the fly in code, which of course works in development on CloudKit.

But will it work in production? Can I create CKRecordZones in production on the fly? Or do I need to rethink the design?


Solution

  • Yes, you can create zones in a user's private database on the fly in production.

    Just make sure you deploy the scheme to production when ready. Please see the Deploying the Schema chapter in the CloudKit Quick Start

    Also be sure you test your app using Test Flight using the production database before submitting your app to the App Store.