How do I get a Core Data SQLite datastore off of a test device?

This was a question asked at the last NSCoder night. I didn’t realize the answer was so easy so I thought I would share it here in case others might not know. Just so appropriate credit is given, Ashley Clark was the one who pointed this out to us.

Go to the XCode Organizer while your device is attached and select your device in the left column. The bottom right panel will display a list of applications installed on the device. Scroll to your app. Because the app is installed using a testing profile it should have an arrow to the left than can be expanded. After expanding it, you should see the Application Data directory with an arrow pointing down to the right of the name. Selecting that arrow will give you a prompt to specify a location for that Application Data directory to be saved to your development machine.

The Application Data directory will contain your SQLite store under the Documents folder in addition to preferences, temp data, and anything else stored in the Application Data directory for the app.

Comments

One Response to “How do I get a Core Data SQLite datastore off of a test device?”

  1. Jack on January 22nd, 2014 10:32 am

    Thanks for posting this. Was looking all over for different ways to export or convert the data and this is such a simple solution. Thanks again for saving me unnecessary coding and time.

    -Jack