Consult sqlite database created by core data

Asked

Viewed 111 times

2

I’m studying core data on Ios. I created a template and entered some records. I would like to query these records using SQL in the "DB Browser for sqlite" program, but I don’t know where Xcode creates the database file. Does anyone know?

1 answer

2


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

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

  2. Install Opensim, and browse your APP’s file directory: brew cask install opensim https://github.com/luosheng/OpenSim

  • I got it, thank you :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.