InterProject Communication in Xcode

My project architecture is a workspace that has two projects (project A and project B). Project A has three more subprojects (Project X, Project Y, Project Z).

  • Workspace
    • Project A
      • Project x
      • Project y
      • Project z
    • Project B

Project B is rather a kind of utility project. It must be used in projects A, Project x, Project y, Project z, and elsewhere. I'm starting to make a prototype. But they face problems in connection with project B in other projects. Every time I need to add the .a file manually to all other projects. Do we have any solution for dynamic communication?

I also tried this approach. I moved project B inside project A below project z. But I could not access the classes in Project x, y, z, because all projects are on the same level.

Any solution for dynamically linking projects on the same level?

+6
source share
1 answer

You need to add Project B as a Target Dependency from Build Phases to other projects, so Project B will be created and added to other projects as you would like.

-1
source

All Articles