How can I check what is stored in my Core Data Database?

后端 未结 17 2170
北恋
北恋 2020-12-12 14:35

I am making an app that relies on Core Data. I am able to enter data into a text field and store it.

But I need to know if the data is being stored.

I am try

17条回答
  •  無奈伤痛
    2020-12-12 14:59

    An answer for a noobs as I was, I spent quite a lot of time in figuring it out. Steps I followed are :

    1. Open finder and Press Command(Windows) + Shift + G.
    2. Go to the folder add ~/Library/Developer
    3. Search for the DB name you've created as in my case it was my.db in SQLite.
    4. Download and install DB browser for SQLite.
    5. Click open database.
    6. Now drag and drop the DB file from your finder.

提交回复
热议问题