Forked from jonathan-beebe/clean_old_code_simulators.sh
Created
September 10, 2018 03:42
-
-
Save ggthedev/952710c3fa69f058862f1d89c47c1d88 to your computer and use it in GitHub Desktop.
Clean out unused Xcode Simulators
This file contains 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
# Close Xcode & the iOS Simulator | |
# http://stackoverflow.com/a/30940055 | |
# Remove any old runtimes from this directory. | |
cd /Library/Developer/CoreSimulator/Profiles/Runtimes | |
# e.g. | |
sudo rm -rf iOS\ 8.1.simruntime | |
# http://stackoverflow.com/a/11790983 | |
# Remove the download receipts for simulators you don't need anymore. | |
# Otherwise Xcode might try to reinstall them for you. | |
cd ~/Library/Caches/com.apple.dt.Xcode/Downloads | |
# e.g. | |
rm com.apple.pkg.iPhoneSimulatorSDK8_1-8.1.1.1354140590.dmg | |
# Restart Xcode & the iOS Simulator. | |
# You should notice the old simulators are gone. They will be available to download again in Xcode → Settings → Downloads → Components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment