Check iOS deployment target of a static library

后端 未结 3 976
太阳男子
太阳男子 2021-02-08 06:08

I have many static libs like libBlah.a With file tool I can check supported architectures. (arm64 or i386)

Is there tool to check iOS Dep

3条回答
  •  感情败类
    2021-02-08 06:40

    The target OS version is encoded in the LC_VERSION_MIN_IPHONEOS load command in the MachO header of the static library. You can see it via:

    otool -l mylib.a | grep -A 3 LC_VERSION
    

    Example output:

          cmd LC_VERSION_MIN_IPHONEOS
      cmdsize 16
      version 9.0
          sdk n/a
    

提交回复
热议问题