Linking static libraries, that share another static library
===

I currently have a single Xcode project for a very large code base, I'll call it **Project X**, which I am dividing into a bunch of sub projects ( **Projects A, B, C** ).

So far, each of these projects compiles, on their own, just fine. They all produce static libraries. **Project B** and **Project C** are dependent on the static library produced by **Project A** in order to build.

I have another xcode project, **Project Z**, that requires the static libraries produced by **Projects B and C**. Herein lies the problem. When **Project Z** enters the linker phase, things blow up - duplicate symbols are found within the libs for **Projects B and C** for the code they originally linked against in **Project A**!

I'm pretty new to the world of static libraries, and I'm unsure of how to move forward with **Project Z**, or how to modify the other projects so that they are linking against the same **Project A** lib. I have a feeling it's not possible. What are my options here?

Edit:

I should clarify that **Project B** and **Project C** need to build into separate static libs because some clients will only require one or the other.
