Adding an Existing Project to a Workspace

    Steps
  1. In the project navigator, Control-click in the empty space below the list.

  2. Choose Add Files to “<WorkspaceName>”.

  3. Navigate into the folder containing the project package.

  4. Select the project package and click Add.



image: ../art/adding_a_project_to_a_workspace.png

Add an existing project to a workspace to add a product to a multiproduct development endeavor. When you need to work on two or more related projects, you can add them to a workspace so that you can create interproject relationships.

For example, you can have a workspace with an application project, add a framework project to the workspace, and make the application dependent on the framework. When you build the application, Xcode builds the library first, if it needs to be built.

When adding a project to a workspace, you add the project package. A project package is a directory that the Finder displays as a file. It contains information about the project, such as references to the files that are part of the project, the project’s groups, build settings, and target definitions.

The video shows the process of adding a second project, called MyFramework, to a workspace called MyWorkspace.

After you add a project to your workspace, the project appears in the project navigator.