Use the find command to search through all of our Simulator devices looking for the database file associated with our app. sqlite file in our new simDevices shortcut. We want the Database Browser for SQLite application to be the default application for opening. Lrwxr-xr-x 1 kirby staff 52 Aug 28 17:24 -> /Users/kirby/Library/Developer/CoreSimulator/Devices $ ln -s /Users/kirby/Library/Developer/CoreSimulator/Devices simDevices To make it easier to get to the root of Devices, use the ln command from the Terminal command prompt.įirst, cd into your home directory, and then create a symbolic link between the real Devices directory and a name of your choosing, e.g. You guessed it-the directory names are intentionally unpredictable for security purposes.
#Sqlite browser create view install#
Not something that you want to try to remember or waste your time hunting for as you install and reinstall apps. The path to the SQLite database file will look like this: /Users/kirby/Library/Developer/CoreSimulator/Devices/402FCD3E-7A98-4B5A-9CB1-83B1A3F85B47/data/Containers/Data/Application/AB4D98C4-B86A-4FE3-B557-CFC60C83893E/Documents/App.sqlite The filename will be your AppName.sqlite. When you use the simulator to test your app, all of the sandboxed files are written to the device directory. Step One: Install Database Browser for SQLiteĭownload and install Database Browser for SQLite.Ī little bit of prep work from the command line will save you time later.