欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【iOS】区分.framework是动态还是静态库

程序员文章站 2022-06-14 23:26:07
...
  1. cd到.framework目录之下
    cd /Users/用户/Desktop/HelpDeskFramework/HelpDeskLite.framework

  2. file HelpDeskLite查看库文件

如下:

HelpDeskLite: Mach-O universal binary with 3 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
HelpDeskLite (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
HelpDeskLite (for architecture armv7):  Mach-O dynamically linked shared library arm_v7
HelpDeskLite (for architecture arm64):  Mach-O 64-bit dynamically linked shared library arm64

上述出现了CPU架构,还有dynamically标识着是动态库

  1. 非动态则为静态库