Syncing Core Data across devices with iCloud

I have an existing app that uses Core Data to store many things, and I would like to make it so that the Core Data data will be uploaded to iCloud and will be able to be synced between devices with the same app. I've looked into this a little bit but havent found a case the same as mine. I've found this stackoverflow[dot]com/questions/27669173/swift-replace-core-data-with-icloud-core-data stackOverflow psot about something similar but not the same.


For reference I have a storage model with three entities with tons of attributes (but nothing else) that I want to be synced.


How can I do this?

Accepted Reply

This functionality was introduced at WWDC a few days ago, but I haven't been able to get it to work successfully yet.


For reference, see this article:


https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/syncing_a_core_data_store_with_cloudkit


Andrew

Replies

This functionality was introduced at WWDC a few days ago, but I haven't been able to get it to work successfully yet.


For reference, see this article:


https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/syncing_a_core_data_store_with_cloudkit


Andrew