Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an external project to Xcode 4?

Tags:

xcode4

ios4

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.

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

like image 863
breakfreehg Avatar asked Mar 19 '11 09:03

breakfreehg


1 Answers

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...

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.

like image 145
Joshua Nozzi Avatar answered Sep 20 '22 02:09

Joshua Nozzi