Navigate to iOS simulator data dir with bash script

In my previous article Find app data path for iOS simulator, I mentioned a tool simctl , and in this article I want to share a bash script…

Navigate to iOS simulator data dir with bash script

In my previous article Find app data path for iOS simulator, I mentioned a tool simctl , and in this article I want to share a bash script that I wrote to navigate to the iOS simulator from terminal.

I put the file simpath.sh on my github project, in order to use the tool, we need create to create a ~/simpath.conf file, in this file, we can specify the appid with app bundle, and we can navigate to the app with appid, the following content is a samplesimpath.conf file:gallery=io.flutter.demo.gallery

Then we can navigate to the data dir of app io.flutter.demo.gallery with the following command:simpath.sh gallery

The sample output on my machine is like below:$ simpath.sh gallery
Navigate to gallery with bundle io.flutter.demo.gallery
bash-3.2$ pwd
/Users/Stephen/Library/Developer/CoreSimulator/Devices/FE3B6CB8-AA93-47B6-874F-8C59CBB563E3/data/Containers/Data/Application/DE181F9E-B480-4D78-944F-E3E6273FA83C
bash-3.2$ ls
Documents  Library    SystemData tmp

If the simulator does not start, then the output is like below:$ simpath.sh gallery
Navigate to gallery with bundle io.flutter.demo.gallery
No devices are booted.

The full code for the simpath.sh is at github:

tools/simpath.sh at master · swanwish/tools
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…

If you also an iOS develop, hope this tool can also help you on your daily work:)