我可以从 ~/Library/Developer/Xcode 文件夹中删除什么? [英] What can I delete from ~/Library/Developer/Xcode folder?

查看:41
本文介绍了我可以从 ~/Library/Developer/Xcode 文件夹中删除什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 ~/Library/Developer/Xcode 文件夹大小超过 17 个演出.由于我在虚拟机 (Parallels 12) 中工作,虚拟磁盘总大小限制为 64 g,因此我需要恢复一些磁盘空间.

My ~/Library/Developer/Xcode folder is over 17 gigs in size. As I work in virtual machine (Parallels 12) with a 64 gig limit in total virtual disk size, I need to recover some disk space.

在Archives"、DerivedDate"、Installs"、iOS Device Logs"、iOS DeviceSupport"、Snapshots"和UserData"等文件夹中,我可以删除哪些内容而不破坏我的项目?

Amongst the folders such as "Archives", "DerivedDate", "Installs", "iOS Device Logs", "iOS DeviceSupport", "Snapshots", and "UserData", what might I be able to delete without ruining my project?

推荐答案

Archives 下,您可以删除任何您想要的内容,但您应该保留最近的版本.您应该备份将来可能需要访问的旧版本.

Under Archives you can delete anything you want but you should keep recent builds. And you should backup older builds you might need to access in the future.

您可以删除DerivedData 下的所有内容.下次构建项目时,将重新创建所需的文件.

You can delete everything under DerivedData. Next time you build a project, the needed files will be recreated.

我的安装文件夹仅包含一组空文件夹和最新的(如果超过 3 年).检查你的,删除可能是安全的.

My Installs folder only contains a set of empty folders and the newest if over 3 years old. Check yours, that may be safe to delete.

iOS Device Logs 文件夹包含各种 iOS 版本的旧设备日志.您可以安全地删除任何旧日志.

The iOS Device Logs folder contains old device logs for various versions of iOS. You can safely delete any of the older logs.

iOS DeviceSupport 文件夹包含您在 Xcode 运行时连接过的 iOS 设备上的每个 iOS 版本的文件夹.随意删除您不再支持的 iOS 版本的任何文件夹.例如,如果您的应用程序的部署目标均不早于 iOS 8.1,则您可以安全地删除 iOS 8.0.x 及更早版本的任何文件夹.这些文件夹仅用于表示崩溃报告.

The iOS DeviceSupport folder contains a folder for each version of iOS you ever had on an iOS device you ever connected while Xcode was running. Feel free to delete any folders for versions of iOS you don't support anymore. For example, if none of your apps have a Deployment Target older than iOS 8.1, for example, you can safely delete any folder for iOS 8.0.x and earlier. These folders are only needed to symbolicate crash reports.

Snapshots 文件夹被 Xcode 用来保存快照(备份).您可以删除您不关心的旧项目的快照.

The Snapshots folder is used by Xcode to save snapshots (backups). You can delete snapshots for old projects you don't care about.

我会单独保留 UserData 文件夹.

I'd leave the UserData folder alone.

这篇关于我可以从 ~/Library/Developer/Xcode 文件夹中删除什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆