xCode 4 添加文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6080335/
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 4 Adding Folders
提问by Mark
In xCode 3 I could drag a folder into the project and say add references and it all works. When doing the same in xCode 4 it makes the folder blue and when trying to build it hangs at Attaching to .
在 xCode 3 中,我可以将一个文件夹拖到项目中并说添加引用并且一切正常。在 xCode 4 中执行相同操作时,它会使文件夹变为蓝色,并且在尝试构建时它挂在 Attaching to 处。
I have tried everything but I couldn't resolve it. I have read : Xcode building and resources folders
我已经尝试了一切,但我无法解决它。我已阅读: Xcode 构建和资源文件夹
But that didnt help me. Does anyone have an idea?
但这对我没有帮助。有没有人有想法?
回答by Nick Weaver
Adding a folder by dragging still works in XCode4. Look at the following dialog, the first alternative for Folders will turn the folder yellow, creating a smart group.
通过拖动添加文件夹在 XCode4 中仍然有效。看下面的对话框,文件夹的第一个选项将文件夹变成黄色,创建一个智能组。
The second alternative will turn it blue referencing the folder directly.
第二种选择将直接引用文件夹将其变为蓝色。
回答by Yogev Shelly
It is important not to call this directory ‘Resources', as it seems to confuse Xcode into giving a lot of ‘Application is already installed' errors.
不要将此目录称为“资源”,这一点很重要,因为它似乎会使 Xcode 混淆,从而导致出现许多“应用程序已安装”错误。
Quoted from here: http://majicjungle.com/blog/123/And worked for me on the same issue.
引自此处:http: //majicjungle.com/blog/123/并在同一问题上对我来说有效。