Where is a sqlite core data store kept in Lion? [duplicate]
Possible Duplicate:
Where is myProject.sqlite located in Lion OSX Xcode 4.1?
I'm trying to delete my Core Data store for a test app I'm running as it contains entries and the model has changed. I can't seem to find it under Lion. I was expecting to look in /Library/Application Support/My App Name but there's no folder there for my app.
Any ideas?
On Lion with XCode 4.1 I found this under ~/Library/appname/appname.storedata
After deleting that file I re-ran my Mac app and core data was like new.
What kind of application did you build? If you built a “shoe box” type Core Data application, then the file is wherever configured the persistent store coordinator to write it.
This is typically done in the application controller/delegate.
It is kept in the same place as previous ios versions, however... the Library folder is hidden with a Finder flag, you can undo this flag to make it visible again.
To do this, open the Terminal utility and run the following command:
chflags nohidden ~/Library
The folder and all sub directories will then be visible immediately.
精彩评论