Created
January 31, 2025 07:53
-
-
Save emndeniz/f90286ebf348c2ecac9e4c16a9a62505 to your computer and use it in GitHub Desktop.
This file has command to delete old simulators for specific version
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
# 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