Before you delete Xcode DerivedData, check what’s using the space
Find Xcode’s actual DerivedData folder and compare it with unused simulator runtimes and archives you should keep.
Xcode can use disk space for files it generates while you work, simulator runtimes you installed, and archives from releases you shipped. Those files aren’t interchangeable. Before you delete DerivedData, check which category would actually give you the space you need.
Find the DerivedData folder Xcode actually uses
Choose Xcode > Settings > Locations and look at Derived Data. The location can be customized, so don’t assume the default path is the one your project uses. Apple’s guide to project-generated files explains the location settings. Open the displayed folder in Finder and use Get Info to check its size. If it’s large, identify which project’s generated files account for it. Wait for active builds to finish before you make changes. If you clear generated build data, allow time for Xcode to rebuild it on the next run. Don’t treat the entire Developer folder as a cache.
Compare simulator runtimes separately
In Xcode > Settings > Components, look at the installed platforms and the recoverable storage Xcode shows. A runtime is the operating system that a simulator boots, not a cache for one project. Compare the installed versions with the versions you still test. A runtime that looks old may be the oldest iOS version your app still supports. Consider only versions you no longer need, using Apple’s Components settings guide for the version you’re running.
Keep the archives that match distributed builds
An Xcode archive is not disposable build data. Apple recommends retaining the archive for each distributed build so its matching debug symbols can help interpret crash reports. Don’t remove an archive just because it’s large. After any targeted cleanup, check free space again and make sure you can still build and run a simulator you need.