我的電腦是從15年開(kāi)始使用的,到現(xiàn)在已經(jīng)3年多的時(shí)間了,每次想下載東西,都得刪東西,很尷尬。
偶然間看到可以清除Xcode空間,于是我解放了104G的空間。我看到了蘋(píng)果說(shuō)可以安全刪除,簡(jiǎn)直就是高興的不得了。
本來(lái)只剩余10個(gè)G可用空間,刪除掉iOS DeviceSupport文件下的東西,(我的iOS DeviceSupport下從6開(kāi)始到11.3了,多的不得了)并且清除垃圾桶。瞬間可用空間到了117G。
親測(cè)刪除之后不會(huì)影響你Xcode運(yùn)行和真機(jī)運(yùn)行哦。

屏幕快照 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,是點(diǎn)擊進(jìn)去刪除里面的文件夾)
_98a4eb1d-381b-4f81-a777-4bac24d6e793.png
第六步刪除
iOS DeviceSupport里面的東西(不是刪除iOS DeviceSupport,是點(diǎn)擊進(jìn)去刪除里面的文件夾)
_b25b9218-5a18-4e7e-a4fd-818b2d4c6e28.png
第七步
清倒你的廢紙簍,大功告成。
2019年01月09日12:59:08添加
刪除這個(gè)文件夾下不用的東西,也可以釋放很多空間

屏幕快照 2019-01-09 下午12.55.04.png
瞬間能量慢慢。回復(fù)元?dú)狻?/p>