11
Jun
09

How to find that sqlite file behind your CoreData

This is a quick thing. Hard to find unless you know where to look. When running a CoreData driven app, there are times when you’d like to just rest your data store and start again. Doing a schema change is one such case. Of course if you’re doing something really silly and mess up the data, again.. reset!

So, to do that, simply delete the .sqlite file for your app. Running in the simulator, that is stored in your home directory under ~/Library/Application Support/iPhone Simulator/User/Applications/<special app id>/Documents/<appname>.sqlite

Easy, huh? Deleting this is sure nicer than clearing all apps and data from the simulator.

Advertisement

3 Responses to “How to find that sqlite file behind your CoreData”


  1. February 25, 2010 at 4:15 pm

    Thanks a lot! I’d seen this elsewhere but couldn’t figure out where. Rock on.

  2. 2 Suicidal
    April 21, 2010 at 11:46 pm

    Thanks mate… sure saved me a whole lot of time… :D

  3. 3 aikhan
    October 23, 2010 at 2:21 pm

    thanks man ;)


Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


SocialVibe


More frequent updates from me

Blog Stats

  • 86,236

The Author


Follow

Get every new post delivered to your Inbox.