文件夹未从 XCode 显示在磁盘上 [英] Folders not showing up on disk from XCode

查看:22
本文介绍了文件夹未从 XCode 显示在磁盘上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 XCode 中向我的项目添加了一个文件夹并将其命名为 Themes,它将用于存储我的 iPad 应用程序的主题.在那之下,我有红色、蓝色等等.

I added a folder to my project in XCode and called it Themes, which will be used to store themes for my iPad app. Under that I have Red,Blue, and so forth.

它们出现在 XCode 中.但是当我查看物理文件夹时,没有 Themes 目录(显然它下面的任何东西).

They show up in XCode. But when I look at the physical folder, there is no Themes directory (and obviously anything under it).

为什么不呢?它去了哪里?如何将图像(可能具有相同名称)存储在不同路径(主题)下?

Why not? Where did it go? How can I store images (which may have same names) under different paths (themes)?

提前致谢

推荐答案

XCode 不创建文件夹",它创建组".组是文件的逻辑组织,独立于其下的文件系统组织

XCode does not create "folder", it creates "groups". Groups are logical organization of your files, independent of the file system organization underneath it

如果你真的想要一个文件夹,最简单的方法是先在文件系统上创建一个(通过 Finder),然后将它拖到 XCode 的项目导航器中.当弹出确认窗口时,保留默认设置(将项目复制到目的地"为任何添加的文件夹创建组")

If you want to actually have a folder, easiest way would be to create one on the file system first (through Finder), and then drag it to XCode's project navigator. When a confirmation window pops up, leave the default settings ("Copy items into destination" and "Create groups for any added folders")

这将导入文件夹及其中的所有文件,但是在此之后它不会自动将新添加的文件导入文件夹(您必须手动添加它们).

This will import the folder and all the files in it, however it will not auto-import newly added files to the folder after this (you'd have to manually add them).

如果您确实想将新添加的文件从文件系统的文件夹自动导入到 XCode 中的该组,而不是使用 为任何添加的文件夹创建组",请更改为 "创建对任何添加文件夹的文件夹引用"

If you do want to auto-import newly added files from the file system's folder to this group in XCode, instead of using "Create groups for any added folders", change to "Create folder references to any added folders"

这篇关于文件夹未从 XCode 显示在磁盘上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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