Skip to content

Instantly share code, notes, and snippets.

@buzzySmile
Created November 7, 2021 15:49
Show Gist options
  • Save buzzySmile/3bf4e4a7abcc7fd845fe27730fa18187 to your computer and use it in GitHub Desktop.
Save buzzySmile/3bf4e4a7abcc7fd845fe27730fa18187 to your computer and use it in GitHub Desktop.
Path to currently booted iOS Simulator storage folder
#!/bin/sh
BOOTED_SIM_UUID=$(xcrun simctl list | grep 'Booted' | grep -o -E '[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}' | head -1)
echo 'Path to the booted iOS Simulator storage'
echo ~/Library/Developer/CoreSimulator/Devices/$BOOTED_SIM_UUID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment