I have tried cleaning the simulator but it again occupies 6gb disk space on my Mac. Can anyone suggest manual cleaning?
If the objective is to free up disk space occupied by Xcode-related and simulator-related caches and data, and not just iOS support files, there are other folders you can look into to consider removing files, besides ~/Library/Developer/Xcode/iOS DeviceSupport/
and ~/Library/Developer/Xcode/DerivedData
that have been mentioned in the other 2 answers so far.
~/Library/Developer/Xcode/Archives/
contains data from your builds that can be helpful in the process of symbolicating/debugging deployed apps, but could otherwise be removed. Thankfully, it is organized by date, so you can choose to keep specific folders inside it, and delete the rest~/Library/Developer/CoreSimulator/
contains simulator related data. It includes a Caches
folder and a Devices
folder. If you no longer need to run your apps on certain devices, you may consider removing those devices' corresponding folders in the Devices
folder. The Caches
folder may grow over time as well, and you can remove contents from there, and they should be regenerated as needed.~/Library/Application Support/iPhone Simulator
. The simulator related files used to be there until around Xcode 6. So you may have files still there that you might want to delete (I did, on some older Macs some years back)~/Library/Caches/com.apple.dt.Xcode
, which should be regenerated as needed, but may be less useful to clean up.You could also consider running DevCleaner from time to time to remove unnecessary Xcode-related files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With