美文网首页Swift 学习
【iOS】区分.framework是动态还是静态库

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

作者: Colleny_Z | 来源:发表于2018-06-20 21:08 被阅读573次
    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. 非动态则为静态库

    相关文章

      网友评论

        本文标题:【iOS】区分.framework是动态还是静态库

        本文链接:https://www.haomeiwen.com/subject/yyhcsftx.html