I'm working on an app that uses Core Data, and in the course of development have created a great set of test fixtures on the actual test device.
I'd like to pull that sqlite file off of the phone and be able to use it in the simulator.
My app delegate specifies the sqlite file's location as:
NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"Quadriped.sqlite"]];
What is the easiest way to do this?
You can go into the Organizer window in Xcode and spelunk into the file system of your device. Here is a blog post I just did not too long ago that describes this:
http://www.dosomethinghere.com/2010/12/13/moving-a-sqlite-database-from-device-to-simulator/
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