我怎样才能安全地删除 ~/Library/Developer/Xcode/deriedData 目录中的内容?

我想删除旧(可替换?)数据和 衍生数据内容似乎是一个可能的候选人。因为它的名字是 衍生数据,所以我假设它是在构建阶段生成的信息,如果丢失了,那么在构建阶段使用它。那么,我可以毫无顾虑地删除任何旧项目数据似乎是合乎逻辑的,如果我曾经构建过那个旧项目,第一次通过所需的时间将比正常情况下更长,因为它必须重新创建所有这些派生数据。

我说错了吗?

83375 次浏览

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.

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.

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.

The content of 'Derived Data' is generated during Build-time. You can delete it safely. Follow below steps for deleting 'Derived Data' :

  1. Select Xcode -> Preferences..

Step 1

  1. 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.

Step 2

  1. This will open-up folder containing 'Derived Data' Right click and Delete folder.

Step 3