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

查看:30
本文介绍了如何在我的 ~/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.

我在这里弄错了吗?

推荐答案

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天全站免登陆