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?
CodePudding user response:
Yes, it is. You should do the following steps:
- Create one static lib from all: You can extract all libs into a folder with
ar
and after that create a new single lib withar
from these extracted files. - 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.