Xcode DerivedData 文件夹 [英] Xcode DerivedData folder

查看:38
本文介绍了Xcode DerivedData 文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于理解 Xcode 将我的程序的产品放在哪里的简短问题.我完全删除了项目文件夹中的 DerivedData 文件夹.

I have a short question about understanding where Xcode puts the products of my programs. I deleted the DerivedData folder out of the project's folder completely.

第一个问题:DerivedData 实际上是做什么的,ModuleCache 到底是什么?

First question: What is DerivedData actually for and what exactly is ModuleCache?

但是,在编译时,我在 iMac 上的 ~/Library/Developer/Xcode/DerivedData 中找到了该产品,而在我的 Mac Book Air 上,它重新创建了 DerivedData 文件夹,其中包含所有里面的东西并放入项目的文件夹.

However, when compiling, I find the product somewhere in ~/Library/Developer/Xcode/DerivedData on my iMac whereas on my Mac Book Air it recreates the DerivedData folder with all the stuff inside and puts in in the project's folder.

感谢您的解释;)

PS:我使用的是来自 AppStore 的最新 Xcode 6,而不是任何测试版.

PS: I'm using the latest Xcode 6 from the AppStore, not any Beta Version.

推荐答案

派生数据包含 Xcode 在构建项目时创建的文件.如果您有一个应用程序项目,该应用程序就是 Xcode 创建的文件之一.派生数据的其他示例包括编译器根据您的源代码文件和代码覆盖率文件创建的目标文件.

Derived data contains the files Xcode creates when it builds your project. If you have an application project, the application is one of the files Xcode creates. Other examples of derived data include object files the compiler creates out of your source code files and code coverage files.

DerivedData 的默认位置如下:

The default location of the DerivedData is the following location:

/Users/YourUsername/Library/Developer/Xcode/DerivedData

如果您的 MacBook Air 正在使用您的项目文件夹,那是因为 Xcode 或项目设置为使用项目文件夹而不是 DerivedData 文件夹的默认位置.切换 DerivedData 文件夹位置的第一个位置是在 Xcode 的 Locations 首选项中.从 Xcode 的 Locations 首选项设置位置将为所有未来的 Xcode 项目设置 DerivedData 位置.

If your MacBook Air is using your project's folder, it's because either Xcode or the project was set to use the project folder instead of the default location for the DerivedData folder. The first place to go to switch the DerivedData folder location is in Xcode's Locations preferences. Setting the location from Xcode's Locations preferences sets the DerivedData location for all future Xcode projects.

如果您的项目仍在使用 DerivedData 的项目文件夹,请在 Xcode 中选择文件">项目设置".您可以从那里更改项目的 DerivedData 位置.

If your project still is using the project folder for DerivedData, choose File > Project Settings in Xcode. From there you can change the DerivedData location for your project.

这篇关于Xcode DerivedData 文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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