Picture of Michael Lee
:wave: Hey hey, I'm @michaelsoolee! I'm a full-stack developer, maker of one too many side projects and dad.

Location of Core Data's SQLite Database

Written 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.

Stay in touch

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