Last active
February 12, 2019 19:40
-
-
Save jonathan-beebe/3aa82893d14b2a286f7a to your computer and use it in GitHub Desktop.
Clean out unused Xcode Simulators
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
# 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