gpt4 book ai didi

xcode - 为什么我的 Xcode 项目中有一些蓝色文件夹?

转载 作者:行者123 更新时间:2023-12-03 05:24:24 26 4
gpt4 key购买 nike

当我从 Github 导入项目时,我有两个文件夹在 Xcode 中显示为蓝色,但所有其他文件夹均为黄色。这是怎么回事?

最佳答案

蓝色用于表示“文件夹引用”。

关于这些是什么以及何时使用它们的清晰描述来自 http://struct.ca/2010/xcode-folder-references/

There are two types of folders in Xcode: groups and folder references. You can use groups to organize files in your project without affecting their structure on the actual file system. This is great for code, because you’re only going to be working with your code in Xcode. On the other hand, groups aren’t very good for resource files.

On any reasonably complicated project, you’ll usually be dealing with dozens – if not hundreds – of asset files, and those assets will need to be modified and manipulated from outside of Xcode, either by you or a designer. Putting all of your resource files in one flat folder is a recipe for disaster. This is where folder references come in. They allow you to organize your files into folders on your file system and keep that same folder structure in Xcode.

关于xcode - 为什么我的 Xcode 项目中有一些蓝色文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10353274/

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