如何在〜/ Library / Developer / Xcode / DerivedData目录中安全删除? [英] How can I safely delete in my ~/Library/Developer/Xcode/DerivedData directory?

查看:956
本文介绍了如何在〜/ Library / Developer / Xcode / DerivedData目录中安全删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除旧的(可替换的?)数据, DerivedData 内容似乎是可能的候选者。因为它的名称是 DerivedData ,所以我认为如果缺少,将在构建阶段生成信息,如果存在,则在同一阶段使用。这似乎是合乎逻辑的,我可以毫无顾虑地删除任何旧的项目数据,如果我应该构建那个旧项目,第一次通过需要比正常情况更长的时间,它必须重新创建所有这些派生数据。

I'd like to remove old (replaceable?) data and DerivedData contents seem a likely candidate. Since it's name DerivedData, I assume that it's info that, if missing, would be generated during a build phase and if present, is used during that same phase. It seems logical then that I could delete any old project data without fear and if I should ever build that old project, the first time through would take longer than normal sine it has to recreate all this derived data.

我错了吗?

推荐答案

派生数据文件夹包含所有中间构建信息,调试和发布构建的目标,以及项目的索引。如果您有奇怪的索引问题(代码完成无法正常工作,不断重新编制索引,甚至只是一个缓慢的项目),那么删除派生数据是有用的。删除整个文件夹会为Xcode 4了解的所有项目提供此信息。

The Derived Data folder contains all the intermediate build information, debug- and release-built targets, as well as your project's index. It's helpful to delete the derived data when you have odd index problems (code completion not working right, constant re-indexing, or even just a slow project). Deleting the entire folder nukes this information for all projects Xcode 4 knows about.

Archives 文件夹(兄弟姐妹)衍生数据)包含目标的存档形式。也就是说,发布版本以及dSYM数据供以后调试。如果您希望能够调试应用程序的已部署版本,则不应删除。

The Archives folder (a sibling of Derived Data) contains the archived form of your targets. That is, a release build as well as dSYM data for later debugging. This you should not delete if you want to be able to debug deployed versions of your application.

您可以为给定的数据核对通过打开管理器窗口并选择项目选项卡进行项目。选择所需的项目,然后单击派生数据路径旁边的删除按钮。对于问题项目来说,这更像是一次外科手术。

You can nuke the derived data for a given project by opening the Organizer window and selecting the Projects tab. Select the desired project and click the Delete button next to the Derived Data path. This is more of a "surgical strike" for problem projects.

这篇关于如何在〜/ Library / Developer / Xcode / DerivedData目录中安全删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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