Skip to content

Instantly share code, notes, and snippets.

@emndeniz
Created January 31, 2025 07:53
Show Gist options
  • Save emndeniz/f90286ebf348c2ecac9e4c16a9a62505 to your computer and use it in GitHub Desktop.
Save emndeniz/f90286ebf348c2ecac9e4c16a9a62505 to your computer and use it in GitHub Desktop.
This file has command to delete old simulators for specific version
# The command below will delete all iOS 18.0 simulators you have. You can replace "18.0" with any version you prefer.
xcrun simctl list devices | sed -n '/-- iOS 18.0 --/,/^--/p' | grep -oE '[0-9A-F\-]{36}' | xargs -n 1 xcrun simctl delete
# You can use same command for watchOS and tvOS simulators.
xcrun simctl list devices | sed -n '/-- watchOS 11.0 --/,/^--/p' | grep -oE '[0-9A-F\-]{36}' | xargs -n 1 xcrun simctl delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment