FAT常见问题

Select an architecture setting the ARCH= environment variable

用jtool2导出Mask的dylib信息期间就遇到了FAT Binary

➜  DynamicLibraries jtool2 -h MaskPro.dylib > MaskProDylib/MaskProDylib_jtool2_h_header.txt
Fat binary, little-endian, 2 architectures: armv7, arm64
Select an architecture setting the ARCH= environment variable

即,一个Dylib中,包含了多种架构,此处是armv7arm64

此处要指定具体架构,才能继续用jtool2查看信息:

➜  DynamicLibraries export ARCH=arm64
➜  DynamicLibraries jtool2 -h MaskPro.dylib > MaskProDylib/MaskProDylib_jtool2_h_header.txt

类似的,后续去用MachOView查看信息,也能看到是:FAT Binary

  • fat_bin_machoview_header
    • ARMV7
      • macho_header_fat_armv7
    • ARM64
      • macho_header_fat_arm64

results matching ""

    No results matching ""