Upvote:2

Aprove answer

Static libraries don't link each other. You need a final executable (in this case the app) or something for all the symbols in the static libraries to resolve. You can have liba.a reference symbols that are going to be in libb.a, but you'll probably need both liba.a and libb.a to link the app. What ultimately ends up being needed depends on the app.

Upvote:0

Just put the other library's headers on the search path (so your can compile), and then publish the requirement that users of your library will require also the other library.

Also consider using a library manager like CocoaPods to manage this.


Credit Goes to: stackoverflow.com

Related question with same questions but different answers