XCode 4如何添加外部项目 [英] XCode 4 how to add an external project
问题描述
我遇到了在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添加到我的项目中。
Please help me out in how to add ZXingWidget.xcodeproj to my project in xcode 4.
问候,
Hemant
Regards, Hemant
推荐答案
在Xcode 4中,您主要是要创建一个新的工作区,您可以在其中添加多个项目。从主菜单:文件>新建...>新工作区...
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屋!