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

前端 未结 5 2128
挽巷
挽巷 2021-02-09 14:38

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 s

相关标签:
5条回答
  • 2021-02-09 14:42

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

    0 讨论(0)
  • 2021-02-09 14:55

    I have noticed it getting stored in /Users/<username>/Library/Containers/<appbundleid>/Data/Library/Application%20Support/<AppName>/<DataModel>.sqlite

    So in my case following was the path of the test app /Users/kaunteya.s/Library/Containers/com.kaunteya.T1/Data/Library/Application%20Support/T1/T2.sqlite

    0 讨论(0)
  • 2021-02-09 14:59

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

    ~/Library/Containers/com.yourcompany.yourAppName/
    
    0 讨论(0)
  • 2021-02-09 15:01

    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

    0 讨论(0)
  • 2021-02-09 15:08

    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.

    0 讨论(0)
提交回复
热议问题