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

后端 未结 17 2203
北恋
北恋 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条回答
  •  旧时难觅i
    2020-12-12 15:09

    Download the SQLite Browser from here.

    Run your app in the Simulator. The app should be copied to a path on your Mac that looks like:

    /Users/$your username$/Library/Application Support/iPhone Simulator/$your iphone simulator version$/Applications/
    

    Once you locate your app, you have to dig deeper to find the sqlite db (It's usually under Documents).

提交回复
热议问题