What files used by Xcode can I delete?

I ran out of disk space and I think I've come to the point that I need to delete files used by Xcode. Can I delete Simulator altogether? It doesn't look like I can run the latest Xcode without iOS 18 installed with it on my Mac Pro. Is there any way I can exclude iOS 18 support using the current Xcode? Would it be a good option to uninstall the latest Xcode and use a previous version of Xcode instead, since I'm not developing for iOS 18? Since I've been working on only macOS apps, is it possible for me to delete anything that has to do with developing for iOS?

Answered by DTS Engineer in 812933022

From Install and manage Simulator runtimes in settings:

Choose Xcode > Settings > Components to see a list of Simulator runtimes that are currently installed and available for download. Xcode shows the amount of storage you can recover if you remove an installed Simulator runtime.

To recover storage space from unused Simulator runtimes, select a Simulator runtime, click the Delete button (-) in the lower-left corner, and click Delete in the confirmation dialog.

To install the current version of a Simulator runtime, click its Get button. For previous versions, click the Add button (+) in the lower-left corner, then select a platform to view a list of its available versions. Select a version, and click Download & Install. You can run projects on previous versions of the Simulator runtime, but you need to install the current version to build them.

Accepted Answer

From Install and manage Simulator runtimes in settings:

Choose Xcode > Settings > Components to see a list of Simulator runtimes that are currently installed and available for download. Xcode shows the amount of storage you can recover if you remove an installed Simulator runtime.

To recover storage space from unused Simulator runtimes, select a Simulator runtime, click the Delete button (-) in the lower-left corner, and click Delete in the confirmation dialog.

To install the current version of a Simulator runtime, click its Get button. For previous versions, click the Add button (+) in the lower-left corner, then select a platform to view a list of its available versions. Select a version, and click Download & Install. You can run projects on previous versions of the Simulator runtime, but you need to install the current version to build them.

What files used by Xcode can I delete?
 
 
Q