I want to add a project as a subproject. When I drag the subproject into the main project it appears as a file reference rather than subproject. The picture below explains the problem:
The solution is to ensure that the subproject is not open. Once the project is closed Xcode can add the project as a subproject.