Reclaim your disk space from Xcode


25 June, 2020 0

Do you have problems with the space on your disk? You are in the right place!

This post is for developers and users of Mac, particularly users of Xcode.

If you are working in a lot of projects or you have a lot of simulators you will notice that Xcode is using a lot of disk space and it generates a lot of cache data.

So let’s see how to clean up your Xcode folder.

First clic on “Go” menu in your finder and paste ~/Library/Developer/Xcode, press enter and you will you will see something like this:

Let’s analyze some of those folders.


Inside this folder we find subfolders for every project you are working on, this subfolder are created at build time and are used for accelerate the build process.
My advice it’s delete everything inside this folder every few days interval. Most of the time it occupy a huge space and also if you are experiment some wired issue with build in Xcode, it’s good to clean up this folder.
Important! Don’t delete ‘DerivedData’ – only subfolders!

iOS Device Support

This folder contains subfolder for every device that you connect to your Mac. For every iOS version a new one it will be created. After a long time working in the same Mac this subfolder will increase. You can delete them and Xcode will create a new subfolder the next time you connect your device.
Again! Don’t delete ‘iOS Device Support’ – only subfolders!

iOS Device Logs

It is safe to delete the logs that you find here and you may save a few gigas of space, if it is not useful for you, you can delete it safely.


Xcode creates new file when new build is archived. If you want to be able to debug deployed versions of your App, you should not delete the archives. Or you should backup older builds you might need to access in the future. But having said that you can delete anything you want.

Always be careful when you delete files inside Library folder.

In my experience I never had a problem deleting subfolders before mentioned. However it’s always safer to back up them and then proceed with the cleaning, Then you can check if everything is still working fine and when you are sure, delete these files permanently.


Leave a Reply

Your email address will not be published. Required fields are marked *

Gissell Gonzalez
Gissell Gonzalez
Thursday June 25, 2020 - 16:06 Blog , , , ,
Recent posts
Using Mockito to create Java Unit Test

Let’s start with the definition given by the official page. “Mockito is a mocking framework that tastes really good. It […]

Read More…

Continue reading
1 December, 2020
From idea to deploy

When the great idea and background just isn’t enough […]

Read More…

Continue reading
11 August, 2020
Reclaim your disk space from Xcode

Do you have problems with the space on your disk? You are in the right place! This post is for […]

Read More…

Continue reading
25 June, 2020
RoR – Get your exceptions notified via Slack

Have you ever wanted to be one step ahead, and be notified of any unwanted exception before your users have […]

Read More…

Continue reading
18 October, 2018