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
I found the best way to find and open the .sqlite database is use this script:
lsof -Fn -p $(pgrep YOUR_APP_NAME_HERE) | grep .sqlite$ | head -n1
For whatever reason, the output on my Mac always has an extra n
character, so I had to copy and paste it to open
command. Feel free to modify the above command if you've figured out the right command.
For the best SQLite browser, I'd recommend TablePlus.
Adopted from: https://lukaszlawicki.pl/how-to-quickly-open-sqlite-database-on-ios-simulator/