1

I have three project A,B,C, where B has subproject A , and C has subproject A and subproject B. After I add project B to C, xcode said project B "Missing dependency target A". The project navigator looks like the picture project navigator

1 Answer 1

2

I resolved same issue by changing structure to something like this:

  1. Remove subproject A from B;
  2. Move subproject A upper than B in target depedencies of project C;
  3. Add path to subproject A to headers search path of subproject B, if not added previosly.

It works because static library doesn't need to be linked with depedencies, before linking main binary. Only headers needed to build.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.