Created
March 29, 2018 15:26
-
-
Save akatriel/5092dcb4a6a46b206833991dcdb6e577 to your computer and use it in GitHub Desktop.
Finding database (or any file) on iOS Simulator via the command line as of Xcode 2008
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process to navigate simulator directories. | |
$ cd ~/Library/Developer/CoreSimulator/Devices | |
Directories listed correspond to the different devices available. | |
These names can change. | |
The easiest way to find which directories correspond to the appropriate device is to | |
search for all devices and find the correct form factor. | |
using Xcode command line tools: | |
$ xcrun simctl list device | |
The device which is open in the simulator will show: '(booted)' on the right | |
Yank the device id and 'cd' into that directory. | |
Then 'cd' 'data/Containers/Data/Application/' | |
This directory contains the applications available on the device. | |
We still need the AppId and using bash commands this will return the appropriate path to the database: | |
$ find . -name "RouteACE.db" | |
'.' = starting directory; | |
'-name' = flag for filename; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment