Xcode 中的 EmbeddedAppDeltas 文件夹是什么,我可以安全地删除它吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37955049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:57:01  来源:igfitidea点击:

What is the EmbeddedAppDeltas folder in Xcode and can I delete it safely?

xcodexcode7

提问by CommaToast

On my computer there's a folder of nearly 1GB in size at the following path: /private/var/folders/ph/q7jl9fz115g104hfgpsw5k6w0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas

在我的计算机上,在以下路径中有一个将近 1GB 的文件夹:/private/var/folders/ph/q7jl9fz115g104hfgpsw5k6w0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas

It remains there no matter whether I delete build folders or not. It appears to have every version of my app that I've ever archived in there. What's the purpose of that directory? I'd like to delete it as it's taking up over 900 MB, but I don't know what it's for, and googling did not help. Evidently they have it so well hidden that few people have noticed it before.

无论我是否删除构建文件夹,它仍然存在。它似乎包含我曾经存档过的应用程序的每个版本。该目录的目的是什么?我想删除它,因为它占用了超过 900 MB,但我不知道它的用途,谷歌搜索也没有帮助。显然他们把它隐藏得如此之好,以至于以前很少有人注意到它。

回答by Ben Flynn

These apparently are temporary files associated with Xcode, but they don't seem to get cleaned up via a reboot. I followed the advice in this OSX Dailyarticle and was able to clean up the folder by simply booting into safe mode. Just hold down shift while your computer is booting. Be prepared for it to take a few minutes. The folder was completely removed after safe booting.

这些显然是与 Xcode 关联的临时文件,但它们似乎没有通过重新启动来清除。我遵循了这篇OSX Daily文章中的建议,并且能够通过简单地启动到安全模式来清理文件夹。只需在计算机启动时按住 shift 键即可。准备好花几分钟的时间。安全启动后,该文件夹已被完全删除。

回答by netigger

Just rm -rfit? That's how I removed mine.

rm -rf这样?这就是我如何删除我的。