02 Jul
2018

How to uninstall unnecessary simulators in Xcode?
Anybody who uses Xcode will know overtime simulators for watchOS, tvOS, iOS versions gets longer plus take-up more disk space, but how do you delete older versions since there isn't a delete button?
Well here is a quick snippet showing where and what files to delete to make more space.
Note: Used for Xcode version 9 so unsure about lower versions.
Delete them in the Developer Tools Simulator:
In the Xcode navigation choose Xcode > Open Developer Tool > Simulator.
Now in Simulator choose the following in the navigation Hardware > Device > Manage Devices.
Then from the popup choose the Simulators tab and from the list of simulators just highlight the relevant simulator and press the delete button. You can also press the ctrl to get a popup menu when selecting the simulator.

Next delete the files on your drive:
First quit Xcode and go to the following directory.
/Users/[username]/Library/Caches/com.apple.dt.Xcode/Downloads/
And inside there you will find several dmg files, just delete the relevant simulator files such as com.apple.pkg.iPhoneSimulatorSDK11_3-11.dmg as an example.
Then go to the following directory.
/Library/Developer/CoreSimulator/Profiles/Runtimes/
Again choose the relevant simulator you want to delete such as iOS 8.1.simruntime for example.
Now restart Xcode and all the items will no longer be available plus you will have made a few gigabytes of space.
Note: If you forget and want to install them again choose the following Xcode > Preferences > Components tab.
Hope you find this little snippet handy.


me@grafxflow
Visitors also viewed these posts