Reputation: 64854
Can I inspect a Core Data model from Xcode?
I want to see if the data are correctly stored into the database.
Upvotes: 3
Views: 5437
Reputation: 599
You can use this tool http://christian-kienle.de/CoreDataEditor
You can inspect all datas from your persistent store
Upvotes: 2
Reputation: 61228
There's no direct "show me some data stored at some path I specified somewhere in my code or at runtime that happens to use this model" feature.
If you want to view a file easily in Xcode, you'll need to add the file to your project (don't let it copy into project - just reference it in place) so you can select it in the navigator.
Caveat: This only works for text-based store types (like XML or some custom text-based store type you cooked up). If you use binary or SQLite store types, all you'll see is binary. There's no SQLite database browsing/editing functions in Xcode.
Upvotes: 1
Reputation: 4167
I have not come across a way to check the Core Data Modal directly from Xcode... right now I use "SQlite Database Browser" to check my database... its a good way to check your data in the database.. you can also execute queries on it...
P.S. If you do come across a way to check the Core Data Modal directly from Xcode, please do post it as an answer here...
Upvotes: 0