David Vittori
David Vittori

Reputation: 1196

Multiple Static Libraries

I have six static libraries as archives [.a], I want to create a Framework or another archive in iOS, in which I handle them adding more functionalities, making it easy to use in the future. Is this possible?

Upvotes: 0

Views: 168

Answers (1)

clemens
clemens

Reputation: 17722

Yes, it is. You should do the following steps:

  1. Create one static lib from all: You can extract all libs into a folder with ar and after that create a new single lib with ar from these extracted files.
  2. This new lib is the basis of your framework. A framework is nothing more than a directory with a certain structure (https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html) where the binary is just your static library.

Upvotes: 1

Related Questions