I'm trying to create an app which will store data locally using coredata. Then I want to share/export that data(from coredata) to be used by other devices using same app.
Is it possible to send a coredata from one device to another? Can I just copy the *.sqlite file and overwrite the coredata in the other device?
I saw this post how to export Core Data to CSV that allow core data to be exported as csv, But what I'm trying to achieve is to pass core data itself.
Thank You!
You can use migratePersistentStore:toURL:options:withType:error:
of NSPersistentStoreCoordinator to save the store to a file. Once you have the file you can copy it to the other devices.
Other solutions might include iCloud if you're wanting data synchronisation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With