Xcode: How to add an embedded product from one project to another in the same workspace?

Let's say I have 2 projects in the Xcode 4 workspace. Project A is the final product that requires a utility application built from project B. The goal is to build the build process A, if necessary, to automatically compile project B, and then copy embedded application in the product resources folder. A set of applications.

The Xcode 4 documentation is really missing in this regard. I tried adding the built-in Bapp to project A using Add Files to the "project A" ... command . It copies the application package, but does not check the dependency. That is, it does not automatically create project B when it is updated.

Any pointer to finding the right documentation is also greatly appreciated.

Edited: I am looking to fulfill the first 2 benefits mentioned in this doc , which are:

  • One project can use the products of another project when building.

  • If one project depends on the products of another in the same workspace, Xcode can detect this and automatically build the projects in the correct sequence.

I know a simple old project adding a project to another as a subproject, so I can set the target dependencies. But from the wording of the workspace document, it seems to be a simpler and more automatic way. But I can not find steps to perform either of the two functions.

+5
source share
2

B " " " " . (, , node)

Update:
, , :

I can define the output of Project B as dependency of A in this constellation

, : Output of B does not show up in the dependency editor of A in this constellation

+4

Xcode 8 version 8.2.1 (8C1002)

1 - . enter image description here

2 - enter image description here

3 - , , . enter image description here

4 - , , . enter image description here

5 - enter image description here

0

All Articles