framework是一种头文件和链接库的组织形式,可以通过file命令查看相关信息来判断该链接库是动态库还是静态库,如果输出信息中含有dynamically linked
,则是动态库
file ~/ZipArchive.framework/ZipArchive
~/ZipArchive.framework/ZipArchive: Mach-O universal binary with 3 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7] [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64]
~/ZipArchive.framework/ZipArchive (for architecture armv7): Mach-O dynamically linked shared library arm_v7
~/ZipArchive.framework/ZipArchive (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
~/ZipArchive.framework/ZipArchive (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64