4

I have plenty of record manually preloaded to CloudKit but in the development environment.

When I deployed development environment, records were not moved into production environment. It is really annoying. Any easy way to move records?

János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

7

There is no easy way to migrate your records. You cannot link an app both to production and to development. The only workaround is downloading all records from development and storing those records in a file and then switch to production and upload the contents of that file to production.

Edwin Vermeer
  • 13,017
  • 2
  • 34
  • 58
  • When you sign your app for distribution (Ad hoc or App Store) it will connect to production – Edwin Vermeer Feb 02 '15 at 07:21
  • Select Project -> Build Setting -> Code Signing -> Code Signing Identity - Change to iOS Distribution .. I tried this .. but still the data is getting uploaded to CloudKit Development environment. – raw3d Feb 02 '15 at 09:56
  • you should go to the apple developer portal and create a distribution certificate. Then you should use that certificate like you did above. They you should create an archive and install that on your device (preferably by using testflight to make sure you have the right installation) – Edwin Vermeer Feb 02 '15 at 10:26
  • 2
    thanks a lot . created a dummy app with correct bundle id and distribution certificate, with all assets. submitted to iTunes connect. downloaded the app through test flight beta testing and finally uploaded the assets to production environment – raw3d Feb 03 '15 at 06:07