Clean Up Xcode Folders to Save Disk Space

When a new version of Xcode/Swift is released, I see a flurry of activity on Github related to people posting issues that they can't compile so-and-so library anymore, can the maintainer please update to the latest language ASAP, etc. Here's the issue and the fix.

6 November 2018
About a 0 minute read.

New versions of Xcode leave behind cruft from old versions. The following directories usually will have some files/directories that can be removed after you upgrade to a new Xcode release.

iOS Device Support

~/Library/Developer/Xcode/iOS DeviceSupport/

Simulators

~/Library/Developer/CoreSimulator/Devices

On older Xcode versions, check this folder:

~/Library/Application Support/iPhone Simulator/

I hadn’t done a clean-up between Xcode 8.4 and Xcode 10.1. Cleaning up all pre-Xcode 10.1 stuff netted me 93GB. When your drive is only 256GB in the first place, that’s quite a savings.


by:
David Lari

https://davidlari.com
Interests: programming, writing, science, history. You might also find me playing some PC Games.