xcode - 将文件夹结构复制到我的应用程序包中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9551237/
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
xcode - copy a folder structure into my app bundle
提问by Justin808
I have a folder structure 10 deep or so. I need to copy that full structure into my app resource folder. Is there an easier way than manually recreating it with 100s of copy phases for each of the folders?
我有一个 10 深左右的文件夹结构。我需要将该完整结构复制到我的应用程序资源文件夹中。有没有比为每个文件夹手动重新创建 100 个复制阶段更简单的方法?
回答by Abhi Beckert
When you add a directory to Xcode, there is a tickbox (on by default) to convert folders into groups.
当您将目录添加到 Xcode 时,会有一个复选框(默认情况下打开)用于将文件夹转换为组。
Turn that off, and it will do what you want.
关闭它,它会做你想做的。