Core Data

1、How to show the SQLite via Core Data:

If you are curious about what SQL commands CoreData is executing, you can use a command-line argument to log all communications with the SQLite database to the console. From the Product menu, choose Edit Scheme.... Select the Run item and the Arguments tab. Add two arguments: and 1.

Build and run the application again. Make sure the debug area and console are visible so you can see the SQL logging. Add a few locations and inventory items. Then navigate around the application looking at various items.