If you’re using coredata in your application, sometimes you might need to open database & check actuall values. I prefer to use DB Browser For SQLite.
How to locate SQLite file?
Put following piece of code under
let path = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true) print("\(path)")
Above code will simply print the path of
Library-ApplicationSupport of your application, which should look like following.
As you can see, there are two identifiers in the folder-structure-path. One is identifier of the Simulator & the other one is of your-application.
Step 1. Copy the message from console, after running the application on iOS Simulator.
Step 2. Open finder & press
CMD+G to open
Go To Folder as indicated below & paste the copied path.
Step 3. You should be able to locate
SQLite file now. In my case it is