Xcode 清除空间

作者: 燃烧的大叔 | 来源:发表于2018-04-03 11:45 被阅读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
第七步
清倒你的废纸篓,大功告成。

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

相关文章

  • Xcode 清除空间

    我的电脑是从15年开始使用的,到现在已经3年多的时间了,每次想下载东西,都得删东西,很尴尬。偶然间看到可以清除Xc...

  • Mac清除缓存

    1.清除Xcode缓存~/Library/Developer/Xcode/DerivedData/2.清除App缓...

  • Xcode 这个吃空间的怪物

    相信有不少朋友和我一样硬盘的空间不大,特别是SSD的朋友 下面我们就来看看如何清除Xcode中可以删除的空间 首先...

  • 清理mac的硬盘空间,清理Xcode,清除“其他”

    摘录:清理mac的硬盘空间,清理Xcode,清除“其他” 下面是一些清理的方法:打开Finder使用快捷键comm...

  • Command CompileAssetCatalog fail

    解决方案: command+shift+k 清除xcode工程缓存 重启Xcode / Mac

  • iOS Xcode一直Indexing

    突然之间就卡死了 版本:Xcode 11.1 搜索Xcode一直Indexing找到的方案有: 1.清除XCode...

  • 清除xcode缓存

    前往路径 ~/资源库 删除DerivedData文件

  • 清除xcode缓存

    1首先,先打开用户的资源库因为大部分垃圾文件都在资源库中2如果你是一个iOS开发者,那你需要注意资源库目录下的De...

  • 清除Xcode缓存

    Xcode8之后的版本:(Xcode8之前的版本,请往后看) 在Xcode8之后的版本中Projects选项消失了...

  • Xcode 清除脚本

    echo Removing your Xcode...sudo rm -rf /Applications/Xcod...

网友评论

    本文标题:Xcode 清除空间

    本文链接:https://www.haomeiwen.com/subject/qoyqhftx.html