I am working on several iOS projects that will have a good bit of common code, so I compile this code in static libraries.
Now let's say that I have 3 static libraries that I work with:
- Lib A contains general utility functions
- Lib B contains one set of classes
- Lib C contains a second set of classes
(and A is the relationship of both B and C)
Now, my last project should use the functionality of all three libraries. I know that A can be statically linked to B, C and my final project, but at this point I would get a linker error, because there are several implementations of the same classes.
How should this situation be handled?
source
share