Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Locating Core Data’s sqlite database on Mac OS X app

Where I can find Core Data’s sqlite database of Mac OS X application?

I have found it, but it's *.momd folder with 3 files (VersionInfo.plist, *.mom *.omo). How can I see the contents of it?

like image 536
Antol Avatar asked Apr 05 '12 00:04

Antol


People also ask

How do I find SQLite database on Mac?

If you are using Linux or a Mac, open a terminal window instead a command prompt. Open a command prompt (cmd.exe) and 'cd' to the folder location of the SQL_SAFI. sqlite database file. run the command 'sqlite3' This should open the SQLite shell and present a screen similar to that below.

Where is core data SQLite file?

Yes, there is always a SQLite behind it. You can find it in the documents folder. As with every new build a new documents folder is created on the simulator it's getting quite cumbersome to search it manually everytime. Create a function in your app and print it out.

Where is SQLite database stored iOS?

The database that can be used by apps in iOS (and also used by iOS) is called SQLite, and it's a relational database. It is contained in a C-library that is embedded to the app that is about to use it. Note that it does not consist of a separate service or daemon running on the background and attached to the app.

Where is core data file?

The persistent store should be located in the AppData > Library > Application Support directory. In this example you should see a SQLite database with extension . sqlite. It is possible that you don't see the persistent store in the Application Support directory.


1 Answers

On OS X 10.7 Lion when the app is sandboxed, it is stored in:

~/Library/Containers/com.yourcompany.yourAppName/
like image 153
Andrew Avatar answered Oct 23 '22 05:10

Andrew