Xcode 6:项目导航器中没有框架文件夹 [英] Xcode 6: No Frameworks Folder in Project Navigator

查看:22
本文介绍了Xcode 6:项目导航器中没有框架文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 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.如果没有,请将它们从新创建的框架"文件夹中拖到那里.

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:项目导航器中没有框架文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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