Location of Core Data's SQLite Database

Written by Michael Lee on August 5, 2014

When creating an iOS application with Core Data, an SQLite database is created to store all the persistent data for the application. I’ve found that when the data model is changed, the app will crash because the database doesn’t reflect the model.

An easy way to mitigate this is to delete the SQLite database that Core Data creates and just have Xcode recreate the database for you.

To locate the SQLite database, in Finder, select Go from the menu, then select Go to Folder… and type in /Users/username/Library/Application Support/iPhone Simulator/ where username is your home directory.

Thanks for taking the time to read this article. I'd love to stay in touch and share more tips on programming and design, side projects and working remotely. Sign up and I'll send you my articles straight to your email.

:wave: Hey hey, I'm Michael Lee! I really appreciate you taking the time to read this article.

Be sure to check out my other articles.