Housekeeping script to reclaim disk space by removing old Xcode caches

Christopher Jones jonesc at hep.phy.cam.ac.uk
Wed Sep 23 11:49:31 PDT 2015


Seems I compile less than you ;)

Phobos ~ > sudo ./housekeeping-xcode 
Password:
--->  Deleting 2.7M of caches for Xcode 6.1.1-6A2008a which is no longer installed
--->  Deleting 1.1M of caches for Xcode 6.2-6C131e which is no longer installed
--->  Deleting 2.4M of caches for Xcode 6.3-6D570 which is no longer installed
--->  Deleting 1.1M of caches for Xcode 6.3.1-6D1002 which is no longer installed
--->  Deleting 1.1M of caches for Xcode 6.3.2-6D2105 which is no longer installed
--->  Deleting 2.8M of caches for Xcode 6.4-6E35b which is no longer installed
--->  Keeping 3.0M of caches for Xcode 7.0-7A220 which is installed at /Applications/Xcode.app

--->  Deleted a total of 11.6M of Xcode caches
--->  Kept a total of 3.0M of Xcode caches

thanks for the script though !

Chris

> On 23 Sep 2015, at 7:36pm, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> I recently discovered that several gigabytes of disk space were being used by caches specific to Xcode versions I no longer had installed. I wrote a script to clean them up. You can get a copy by running:
> 
> 
> svn export https://svn.macports.org/repository/macports/users/ryandesign/scripts/housekeeping-xcode
> 
> 
> 
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users



More information about the macports-users mailing list