how to clean up ~/Library/Developer/Xcode

Hi


I have been using xcode for iOS development over 10 years now. I have noticed that ~/Library/Developer and ~/Library/Developer/Xcode have gotten really big. I need to find more disk space and am looking for ways to clean up



$ du -sh Developer/

84G Developer/



$ du -sh Developer/Xcode/

66G Developer/Xcode/


Some of this stuff looks really really old


$ ls -l Developer/Xcode/

total 37056

drwxr-xr-x 63 andrewdavidson staff 2.0K Dec 19 16:29 Archives/

drwxr-xr-x 7 a staff 224B Dec 18 09:56 DerivedData/

-rw-r--r-- 1 a staff 440K Aug 17 2013 DeveloperPortal 5.0.db

-rw-r--r-- 1 a staff 180K Sep 18 2014 DeveloperPortal 5.1.1.db

-rw-r--r-- 1 a staff 32K Oct 30 2014 DeveloperPortal 5.1.1.db-shm

-rw-r--r-- 1 a staff 0B Sep 18 2014 DeveloperPortal 5.1.1.db-wal


I used the xcode organizer to delete old archive


Is there a way to remove old simulators?


Is there an official utlitiy I can use to clean up? I suspect there is a lot of stuff left over from older version of xcode


Kind regards


Andy

Sorry if I missed it - did you already **** derivedData?


Is there some reason you don't simply delete ~/Library/Developer and start over?

I recall that each new version of Xcode causes a new set of simulators to be downloaded. Check to see if there are old, unneeded simulators in your files.

Check out thhis article:

h ttp:/ajithrnayak.com/post/95441624221/xcode-users-can-free-up-space-on-your-mac

Thank PBK


I wound up uninstalling xcode and deleting ~/Library/Developer/Xcode. The following describes what files you might want to save. I.e. fonts, key bindings, ...


I freed up 85G !


Your milage may vary


https://stackoverflow.com/questions/31011062/how-to-completely-uninstall-xcode-and-clear-all-settings

>I wound up uninstalling xcode and deleting ~/Library/Developer/Xcode.


Ah, the sledge-hammer approach, finally... no 'clean-up' utility required 😉


Thanks for the followup. Keep an eye on it...might grow again quickly - good luck w/your apps.


Ken

how to clean up ~/Library/Developer/Xcode
 
 
Q