I have come across multiple sites describing that frameworks can contain both static as well as dynamic library. But how do I identify if what the framework actually contain
It is simple to determine when a file extension is explicit
.a
- static library.dylib
- dynamic libraryyou can use file command
file /some_path/.framework/
//possible results
current ar archive random library //static library
dynamically linked shared library //dynamic library
*It is possible to change it in Build Settings a Mach-O type
[About] from Static Library target
to Dynamic library
as a result .a
file will be generated, file
command show you dynamically linked shared library
but it will be static library
[Vocabulary]
[Static vs dynamic framework]