在应用程序包中包含资源目录层次结构 [英] Include a resource directory hierarchy into app bundle

查看:275
本文介绍了在应用程序包中包含资源目录层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目录结构(多层深度)资源,我想将其包含在应用程序包中。如果没有为层次结构中的每个目录单独创建复制文件阶段,是否可以这样做?

I have a directory structure (multiple levels deep) of resources, that I would like to include into the app bundle. Is this possible without creating a Copy Files phase for each directory in the hierarchy individually?

推荐答案

将源文件夹拖到项目中 组和文件区域,例如在资源组下。在对话框中选择为任何添加的文件夹创建文件夹引用。这将创建一个蓝色文件夹,文件夹将会在应用程序资源中显示它的层次结构。这将自动在复制包资源构建阶段创建一个条目这通常用于帮助文件。

Drag the source folder to the project "Groups & Files" area, say under the Resources group. In the dialog select "Create Folder References for any added folders". This will create a blue folder and the folder will and it's inter hierarchy will appear in the apps resources. This will automatically create an entry in "Copy Bundle Resources" build phase This is commonly done for help files.

这篇关于在应用程序包中包含资源目录层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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