ios 如何在我的 ~/Library/Developer/Xcode/DerivedData 目录中安全地删除?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7279141/
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
How can I safely delete in my ~/Library/Developer/Xcode/DerivedData directory?
提问by soob
I'd like to remove old (replaceable?) data and DerivedDatacontents 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.
我想删除旧的(可替换的?)数据,而DerivedData内容似乎是一个可能的候选者。由于它的名称DerivedData,我假设它的信息,如果丢失,将在构建阶段生成,如果存在,则在同一阶段使用。那么我可以毫无顾虑地删除任何旧项目数据似乎是合乎逻辑的,如果我应该构建那个旧项目,第一次完成将比正常时间花费更长的时间,因为它必须重新创建所有这些派生数据。
Am I mistaken here?
我在这里弄错了吗?
回答by Joshua Nozzi
The Derived Datafolder contains all the intermediate build information, debug- and release-built targets, as well as your project's index. It's helpfulto 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 allprojects Xcode 4 knows about.
在导出数据文件夹包含所有中间编译信息,调试-并发布建目标,以及项目的索引。这是有帮助的,当你有奇数的索引问题(代码完成工作不正常,不断重新索引,甚至只是一个缓慢的项目)删除导出的数据。删除整个文件夹会破坏Xcode 4 知道的所有项目的这些信息。
The Archivesfolder (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 notdelete if you want to be able to debug deployed versions of your application.
该档案文件夹(导出数据的兄弟姐妹)中包含的你的目标存档的形式。也就是说,发布版本以及用于以后调试的 dSYM 数据。这个你不应该,如果你希望能够将应用程序的调试版本部署删除。
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.
您可以通过打开“管理器”窗口并选择“项目”选项卡来核对给定项目的派生数据。选择所需的项目,然后单击派生数据路径旁边的删除按钮。这更像是对问题项目的“外科手术式罢工”。
回答by Jayprakash Dubey
The content of 'Derived Data' is generated during Build-time. You can delete it safely. Follow below steps for deleting 'Derived Data' :
“派生数据”的内容是在构建时生成的。您可以安全地删除它。按照以下步骤删除“派生数据”:
- Select Xcode -> Preferences..
- 选择Xcode -> 首选项..
- This will open pop-up window. Select 'Locations' tab. In Locations sub-tab you can see 'Derived Data' Click on arrow icon next to path.
- 这将打开弹出窗口。选择“位置”选项卡。在位置子选项卡中,您可以看到“派生数据”单击路径旁边的箭头图标。
- This will open-up folder containing 'Derived Data' Right click and Delete folder.
- 这将打开包含“派生数据”的文件夹,右键单击并删除文件夹。
回答by amrit_neo
Yes those data are generated during the build time and you can delete them if you want, its not a issue.
是的,这些数据是在构建期间生成的,您可以根据需要删除它们,这不是问题。
It will be recreated when you build again.
当您再次构建时,它将重新创建。