I am trying to create an iOS library / framework, which, for simplicity, we say, expose some class Afor projects using it. Now the problem is that the class Adepends on the class B, which is not intended to be displayed (or even included as a symbol) in the assembly output for the library. This causes problems because it has another library with a class Cthat also relies on the class B.
What happens if I try to include both libraries in a project, the linker complains about having multiple class definitions B.
What is the best way to get around this? Is it possible to set a class Bfor loosely coupled when building two libraries (or at least one of two libraries), and if so, how?
Or should the class Bbe extracted to its own library / framework, and the two libraries changed for reference, instead of including the class Bas the source file?
source
share