views:

486

answers:

3

I'm creating a Core Data model for my application. I would like to be able to look inside it to see what I have stored in there.

Is there an easier way than searching for the backing store (mine should be SQLite) and reading it from there? Doesn't seem very Apple-esque.

+4  A: 

Once your app has run in the simulator and created the persistant store file, you can find the file in your app's Documents directory.

Your app will be folder inside (~ is your home directory):
~/Library/Application Support/iPhone Simulator/User/Applications/

I sort by "Date Modified" to find the app that I just built.

For viewing a SQLite file, check out Base and/or Core Data Editor.

gerry3
In particular, Core Data Editor presents your database in a reasonably accessible manner.
Brad Larson
Is there a free way to do this?
barfoon
+1  A: 

You can also use FireFox's Add-on tool SQLite Manager (FREE). I use it and it works well.

RoLYroLLs