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

Go To StackoverFlow.com

5

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?

2012-04-05 00:54
by Antol
I have found it, but it's *.momd folder with 3 files (VersionInfo.plist, *.mom *.omo). How can I see the contents of it - Antol 2012-04-05 06:22
MOMD files are not the database. The database is a set SQLite database files - Owen Godfrey 2015-08-09 07:49


5

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

~/Library/Containers/com.yourcompany.yourAppName/
2012-06-29 22:53
by Andrew


2

The persistent store in Core Data is just a file. So it's most likely in your Documents directory if it's a user's document. If it's an internal store, then it may be in the bundle, or may be put somewhere like ~/Library/Application Support.

2012-04-05 02:42
by Rob Napier


0

In High Sierra, SQLite file is saved in ~/Library/Application Support/[YourAppName]

2017-12-08 06:32
by Heo Đất Hades


-3

You can find the sqlite file under ~/Library/Application Support/iPhone Simulator/[SDK version]/Applications/[App GUID]/Documents

To inspect the contents of the database file, you could use this firefox extension: Sqlite-manager

2012-04-05 22:21
by codeclash
Nope. The question pertains to iOS, the question was asking about OS X - Owen Godfrey 2015-08-09 07:46
Ads