Xcode how to add an external project

I need to add an external project to an Xcode project, so I need to add a target dependency for a static library of external projects.

I can not add it as I need, I would like:

enter image description here

However, when I add another project to my actual Xcode project, I get the following, which prevents me from exploring this project from mine, and therefore I cannot add the dependency I need.

enter image description here

Please note that these screenshots are taken from two different projects, and in the one that shows me what I want to reproduce in my own project, dragging and dropping several projects works as expected.

Perhaps I have some settings that were configured incorrectly in my project? All I did was make a master template application from Xcode.

+8
xcode workspace
source share
2 answers

You did it right. The problem is that Xcode cannot open the same project twice.

Close Serenity.xcodeproj before reopening the parent project.

+20
source share

Yes, it is possible, it is called a workspace.

In your example:

  • Open both of your projects.
  • Drag the Serenity project to the Dependent project

I think what you are doing wrong by dragging and dropping Xcodeproj, try opening this project and dragging the project block (see pic.)

enter image description here

+1
source share

All Articles