iOSXcode使用

Xcode 清除空间

2018-04-03  本文已影响20人  燃烧的大叔

我的电脑是从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
第七步
清倒你的废纸篓,大功告成。

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

上一篇 下一篇

猜你喜欢

热点阅读