将文件夹存储在 xcode 4.0 中的包内容(捆绑资源)中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5720478/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
store folders in package contents (bundle resources) in xcode 4.0
提问by pyramation
I need to store a folder in the package contents, not all files in the project all in one root folder.
我需要在包内容中存储一个文件夹,而不是项目中的所有文件都存储在一个根文件夹中。
How can I do this in XCode 4.0?
我怎样才能在 XCode 4.0 中做到这一点?
Right now I am going to the Build Phases > Copy Bundle Resources to attempt these changes.
现在我要去构建阶段 > 复制捆绑资源来尝试这些更改。
回答by Nick Weaver
Create your folder in the filesystem, then drag it to the resource folder in XCode. In the following dialog select create folder reference for any added folder. The folder should be blue. This folder is copied to your bundle with its contents.
在文件系统中创建您的文件夹,然后将其拖到 XCode 中的资源文件夹中。在以下对话框中,为任何添加的文件夹选择创建文件夹引用。该文件夹应该是蓝色的。此文件夹将连同其内容一起复制到您的包中。