Search code examples
iphoneiossqlitemagicalrecord

Can't Find iPhone Simulator's SQLite Database : Using Magical Record


In my application's documents folder, I do not find my SQLite database

Library/Application Support/iPhone Simulator/6.1/"random app id"/Documents/

^This folder is empty

MagicalRecord seems to be working, I just have no idea how to find the database.

I use the following to set up Magical Record

[MagicalRecord setupAutoMigratingCoreDataStack];

So where does MagicalRecord store its database?


Solution

  • MagicalRecord stores, by default, all data stores in the following location:

    {App Folder}/Library/Application Support/{App Name from Info.plist}/{storeName.sqlite}

    This is easily accessible from the simulator as well as documents.