Xcode 清除空间

我的电脑是从15年开始使用的,到现在已经3年多的时间了,每次想下载东西,都得删东西,很尴尬。
偶然间看到可以清除Xcode空间,于是我解放了104G的空间。我看到了苹果说可以安全删除,简直就是高兴的不得了。
本来只剩余10个G可用空间,删除掉iOS DeviceSupport文件下的东西,(我的iOS DeviceSupport下从6开始到11.3了,多的不得了)并且清除垃圾桶。瞬间可用空间到了117G。
亲测删除之后不会影响你Xcode运行和真机运行哦。

屏幕快照 2018-04-03 上午11.30.20.png

iOS Dev Nugget 162 Reclaim Disk Space from Xcode Usage

Solid state drives are an awesome performance booster. But unfortunately, they are more expensive and 
naturally come in smaller capacities than hard disk drives. Check these directories Xcode uses and see if you 
can delete some stuff:

    ~/Library/Developer/Xcode/DerivedData/ - It's totally safe to delete directories here. Especially for projects 
that you no longer need. When you rebuild your project, they will be created for you.

    ~/Library/Developer/Xcode/iOS DeviceSupport/ - a folder for each combination of iOS (physical) device 
you have plugged in and the iOS version you were running on it. If you have been doing iOS developer for a 
while, you will have accrued quite a number of these folders that you can remove. They will be re-generated for 
you when you plug in a device if you accidentally delete a more recent folder.

You can easily reclaim a couple of gigs to tens of gigs of space by cleaning up these 2 directories.

首先第一步

_a7f8751f-031d-40b0-b843-b96f957b158b.png

第二走
_a43641dc-f77e-4689-9270-48c59d7dcca6.png

第三步
_8521deb6-17d8-43b0-8ed1-9295d4500189.png

第四步
_ed457fba-3e20-44f4-a771-5017a58972b9.png

第五步删除DerivedData文件夹里面的东西(不是删除DerivedData,是点击进去删除里面的文件夹)
_98a4eb1d-381b-4f81-a777-4bac24d6e793.png

第六步删除iOS DeviceSupport里面的东西(不是删除iOS DeviceSupport,是点击进去删除里面的文件夹)
_b25b9218-5a18-4e7e-a4fd-818b2d4c6e28.png

第七步
清倒你的废纸篓,大功告成。

2019年01月09日12:59:08添加
删除这个文件夹下不用的东西,也可以释放很多空间


屏幕快照 2019-01-09 下午12.55.04.png

瞬间能量慢慢。回复元气。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容