Query sqlite database created by core data

2

I'm studying the core date in ios. I created a template and inserted some records. I would like to query these records using SQL in the program "DB Browser for sqlite", but I do not know where xcode creates the database file. Anyone know?

    
asked by anonymous 31.12.2016 / 05:00

1 answer

2

The bank file will stay in the bowels of the simulator. To find this file you have two options.

  • In terminal vc do the following: find ~/Library/Developer/CoreSimulator/Devices -name "<Nome do seu app>*.db"

  • Install OpenSim, and navigate to the directory of your APP files: brew cask install opensim link

  • 11.01.2017 / 04:21