如何将外部项目添加到Xcode 4? [英] How to add an external project to Xcode 4?

查看:67
本文介绍了如何将外部项目添加到Xcode 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了在Xcode 4中包含一个项目的问题.我拥有所有文档,但它适用于Xcode 3,而不适用于Xcode 4.

I am stuck with an issue of including an project in Xcode 4. I have all the document but it works with Xcode 3 and not Xcode 4.

如何在Xcode 4中将ZXingWidget.xcodeproj添加到我的项目中?

How to add ZXingWidget.xcodeproj to my project in Xcode 4?

推荐答案

在Xcode 4中,主要是要创建一个新的 Workspace ,您可以在其中添加多个项目.从主菜单中:文件">新建...">新工作区..."

In Xcode 4, you're mostly meant to create a new Workspace to which you can add multiple projects. From the main menu: File > New... > New Workspace...

创建新工作区后,将Xcode项目文件拖到新创建的工作区的项目导航器中.将第一个放置在项目导航器窗格中的任何位置,但是在放置第二个放置时请注意插入指针.建议:将其放在整个第一个项目下面,但指针应尽可能靠近项目导航器面板的左边缘.这样可以确保您没有将一个项目插入另一个项目.

Once you create your new workspace, drag the Xcode project files into the project navigator of the newly-created workspace. Drop the first one anywhere in the project navigator pane but be careful to note the insertion pointer when you drop the second one. Advice: Drop it beneath the entire first project but with your pointer as close to the left edge of the project navigator panel as you can get. This makes sure you're not inserting a project into another project.

通过这种方式,您无需更改项目本身的结构即可获得工作区的所有好处(自动依赖项等).然后,您只需打开工作区,而不是打开其中的单个项目.

In this way, you get all the benefits of a workspace (automatic dependencies, etc.) without changing the structure of the projects themselves. Then you simply open the workspace rather than the individual projects within it.

这篇关于如何将外部项目添加到Xcode 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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