Pranit Kothari
Pranit Kothari

Reputation: 9841

How to share static library and avoid repetition in iOS?

We are using CocoaLumberjack library for logging. In our project we have written various static libraries. Now problem is we want to use logging in almost every library, including main application.

In each library we need to add Lumberjack library (we have added files and make it .a). I am not able to understand how to avoid to import lib in every project.

If I use .a in one of the library, shouldn't it already resolved dependancy for main application and other libs as well?

Upvotes: 1

Views: 321

Answers (1)

dvor
dvor

Reputation: 86

If I understand you correctly, you have to grab Lumberjack library to the project just once and then add it to targets in inspector. enter image description here

Upvotes: 1

Related Questions