gpt4 book ai didi

ios - 清理和删除 DerivedData 文件夹的区别

转载 作者:可可西里 更新时间:2023-11-01 03:49:36 25 4
gpt4 key购买 nike

这两个操作之间的实际区别是什么?

我问是因为我发现清理 (Cmd-Shift-K) 是一个缓慢、耗时的过程,并且删除整个 DerivedData 文件夹要快得多。

更多信息

1) 我已将我的 DerivedData 文件夹设置为在 XCode 首选项中与我的项目文件夹相对的文件夹中。

2) 我通常处理只有一个目标的项目。我很少需要处理 2 个或更多目标。

最佳答案

这在 User Your Loaf 关于 Xcode 4 DerivedData and Cleaning the Build Directory 的文章中有解释.

In Xcode 4 the Product > Clean menu option cleans up the build directory for all targets by deleting the app and dSYM files along with the precompiled headers.

另一方面,DerivedData 包含其他内容:

Each workspace gets a unique set of symbol indexes, build products, window layouts, etc., otherwise referred to by Xcode as derived data.

因此,如果您想真正清理所有内容,答案是使用新的 Xcode 4 Clean Build Folder 操作,方法是在按住 的同时选择 Product 菜单>Option 键。这也将删除 DerivedData 内容:

enter image description here

关于ios - 清理和删除 DerivedData 文件夹的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14662259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com