cloudkit-environments

How can CloudKit environment be determined at runtime?

大城市里の小女人 提交于 2020-07-05 03:54:10
问题 Is there a programmatic way to discover whether my app is talking to the CloudKit Development or Production environment? (I know I can look at the com.apple.developer.icloud-container-environment key in Entitlements.plist to make an intelligent guess, but that doesn't really -prove- which environment I'm using.) 回答1: As of now you can use an extension on CKContainer . This can be very helpful for debugging and development purposes. extension CKContainer { public var isProductionEnvironment

Move record from development to production in CloudKit?

自作多情 提交于 2020-01-03 16:42:51
问题 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? 回答1: 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

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