Transitioning Data from Development to Production Environment in CloudKit

In order to load your data into the production environment in Apple CloudKit, follow the steps below:

Deploy Your Schema: Initially, deploy your schema to the production environment using the recommended approach provided by Apple. Prepare for TestFlight: Retain all the codes and views utilized previously for uploading data to the development environment. Deploy your app to TestFlight. TestFlight Approval and Data Transition: Upon receiving approval and ensuring the functionality on TestFlight, the same codes and views that were used to upload data to the CloudKit records in the development environment will now point to the production environment. Consequently, all the data will be uploaded to the production environment, facilitating a smooth transition. Post this process, your app on TestFlight will interact with the data in the production environment of CloudKit, ensuring consistency and enabling effective testing.

This method ensures a seamless transition of data from the development environment to the production environment, aligning with the operational flow of CloudKit and TestFlight.

I deployed my app to TestFlight and used an old phone to load and test the app. It could not access the CloudKit records. When I use the phone as a development device and load it directly from Xcode, it works fine. I can see that the records are in the development database and that the production database is empty. Should the app, when loaded from TestFlight, be able to access the development database?

Transitioning Data from Development to Production Environment in CloudKit
 
 
Q