本文介绍了Xcode 6:Project Navigator中没有Frameworks文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 6并遵循Xcode版本4教程,所以这里和那里的情况有所不同.

I am using Xcode 6 and following an Xcode version 4 tutorial so things are different here and there.

项目导航器中似乎没有Frameworks文件夹,因此当我下载一些.framework文件并在项目编辑器的构建阶段手动添加它们时,我没有Frameworks文件夹可以将它们保存在其中让它们落入我的项目导航器的顶部.因此它们就在那儿,只是不在特殊的文件夹中,而且看起来也不好.

There doesn't seem to be a Frameworks folder in my project navigator and so when I downloaded some .framework files and added them manually in the build phase of my project editor, I had no Frameworks folder to save them in and just let them fall into the top of my project navigator. So they are there, just not in a special folder, and it doesn't look good.

那么Xcode 6应该自动拥有一个frameworks文件夹,还是我需要自己创建一个?如果是这样,我该怎么做? (到目前为止,我只添加了新文件.)

So should Xcode 6 have a frameworks folder automatically, or do I need to create one myself? And if so, how can I do that? (I've only added new files so far).

推荐答案

在Xcode 6中,默认情况下不添加Frameworks文件夹.您可以将.framework文件拖放到项目导航器中(勾选'如果需要,复制项目'),然后全部选择它们>右键单击>选择中的新组" ,并将文件夹命名为'Frameworks '.

In Xcode 6, the Frameworks folder is not added by default. You can drag and drop your .framework files into the project navigator (tick 'Copy items if needed'), then select them all > right click > "New Group from Selection" and name the folder 'Frameworks'.

还要确保将框架添加到 Project> Build Phases> Link Binary With Libraries 中.如果没有,请将其从新创建的"Frameworks"文件夹中拖到那里.

Also, make sure the frameworks are added into the Project > Build Phases > Link Binary With Libraries. If not, drag them there from your newly created 'Frameworks' folder.

这篇关于Xcode 6:Project Navigator中没有Frameworks文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 07:39