XCode中的组和文件与Finder中的项目文件夹 [英] groups and files in XCode vs. project folders in Finder

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

问题描述

我仍然不知道当我在XCode中创建一个新的Group并构建项目,然后返回到finder时,注意到该组不存在,但是要在该组下创建的任何文件都会出现在finder的项目目录中,但是该文件是单独的,不在任何组中.

I still can't get the idea that when I create a new Group in XCode, and build the project, and then return back to finder and notice that the group does not exist but any file to be created under this group will appear in the project's directory in finder but that file is alone without being under any group.

(注意:我不是在谈论这个目录:/Users/用户名/Library/Application Support/iPhone Simulator/4.3/Applications/ uuid /.. )

(note: I'm not talking about this directory: /Users/username/Library/Application Support/iPhone Simulator/4.3/Applications/uuid/...)

1)谁能解释为什么finder中项目的目录层次结构与XCode中项目的目录层次结构不同? 2)如何使XCode和Finder之间的两个层次结构看起来完全相同?因此,当我将来创建新的网上论坛时,可以在finder中看到它.

1) can anyone explain why project's directory hierarchy in finder is different from the project's directory hierarchy in XCode ? 2) how can I make the two hierarchies looks like exactly the same between XCode and Finder? so when I create a new Group in future I can see it in finder.

提前谢谢.

推荐答案

当前,您无法在finder的Xcode中看到您创建的组.它只是您可以更好地组织项目的逻辑实体.假设您将使用xcode进行所有更改(including version control),则可以使用该分类,并在Xcode中进行分类.

Currently you cannot see the group you create in Xcode in finder. Its just a logical entity for you to organise your projects in a better way. Assuming you will be using xcode to make all the changes (including version control) you can use that categorisation and make sense out of it in Xcode.

但是,您始终可以选择在finder(your project workspace)中创建文件夹,然后使用Xcode创建文件并将其保存在该文件夹中.这对于在浏览文件系统时查看组织的代码特别有用.您也可以将文件分组到文件夹中,然后可以在各个项目中使用它们.

However you always have the option of creating a folder in finder(your project workspace) and create files and save them in that folder using Xcode. This is particularly helpful for viewing organized code while browsing through the file system. Also you can group files into folders which you can then use across projects.

因此,基本上可以归结为您的用例.对于我来说,我很高兴使用xcode.我通常创建一个目录来保存图像并将库目录复制到我的项目文件夹中,以便文件系统中也有clean organisation.

So basically it boils down to what your use case is. As for me i am happy using xcode. I usually create a directory to hold images and copy directories for libraries into my project folder so that there is clean organisation in the file system too.

这篇关于XCode中的组和文件与Finder中的项目文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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