I have an application, that uses Core Data. I have two devices A and B. I need to provide a possibility to copy my database from device A to device B (device B can use these database if it wish).
1) Right now I created an application with Core Data at the very beginning. And Xcode automatically inserted app.xcdatamodeld file to my application bundle and added code to AppDelegate file to connect it
The question: how can I use app.xcdatamodeld from Documents folder? (if I copied file from other device, the file will be in Documents folder.) What settings and code should I change to make this possible?
2) What is the best way to transfer app.xcdatamodeld file from Documents folder of A device to the Documents folder of B device.