Is there any option to export all cloud kit data?

孤街醉人 提交于 2019-12-08 09:40:21

问题


I am working on a application and I setup a development environment. Now I want to move to production environment. is There any option for moving all the data from development to production in cloud kit? or Can I export all the data in Json format?


回答1:


When you deploy to production only the schema is copied, not the data.

You will either have to write code to copy the data (E.g. JSON as you mentioned or persist the data locally in CoreData, synchronise with the development environment, then switch to the production environment, re-run the code and resync) or re-enter it manually.

If you do use code, switch between the development and production environments using an entitlements file, mine is shown below for reference (change Production to Development as necessary and rebuild your code):



来源:https://stackoverflow.com/questions/38279009/is-there-any-option-to-export-all-cloud-kit-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!