How to add an external project in Xcode 4?

I am stuck with the problem of including a project in Xcode 4. I have the whole document, but it works with Xcode 3, not with Xcode 4.

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

+6
xcode4 ios4
source share
2 answers

In Xcode 4, you are mainly designed to create a new workspace into which you can add multiple projects. In the main menu: File> Create ...> New workspace ...

After creating a new workspace, drag the Xcode project files into the project navigator of the newly created workspace. Drop the first anywhere on the project’s navigation bar, but be careful to notice the insertion pointer when you drop the second. Tip. Drop it under the entire first project, but with the pointer, as close as possible to the left edge of the project navigator panel. This ensures that you do not embed the project in another project.

Thus, you get all the benefits of the workspace (automatic dependencies, etc.) without changing the structure of the projects themselves. Then you simply open the workspace, not the individual projects inside it.

+8
source share

Despite the fact that this question was asked a few months ago, here an excellent resource directly answers it. It worked flawlessly for me (although I included ARC for the main project into which I imported it).

+1
source share

All Articles