Sync Core Data database

I'll ask this in one of the WWDC sessions as well, but I'm wondering if there is already any docs (I haven't seen any) for apps that use a Core Data database - complex - one on the iPhone? I don't want to copy the file back and forth between the watch and iPhone. Some people have up to a 200MB database (though usually its 5-10MB).


I'm thinking I'll have to use CloudKit for this purpose, or some kind of iCloud sync, but before I go that route I want to see what others think. And yes, my thought was to only put in a subset of the data necessary for the watch app.

I would love to know if Apple is planning to support CloudKit with offline syncing.

There is no direct CloudKit support in watchOS 2. You will need to copy the data you need via the WatchConnectivity framework or via a web service, using NSURLSession.


I would urge you to only use a subset of what you need on Apple Watch. That's what we ended up doing in the WWDC app for Apple Watch.

I understand the concept of subsets, but that's not an implementation help.

Sync Core Data database
 
 
Q