objective c - How to determine size of a specific slice of a static library in iOS -


i have static library in ios project contains slices 4 architectures. able determine architecture slice components of static library command:

$ file mystaticlib.a mystaticlib.a: mach-o universal binary 4 architectures mystaticlib.a (for architecture armv7):  current ar archive random library mystaticlib.a (for architecture i386):   current ar archive random library mystaticlib.a (for architecture x86_64): current ar archive random library mystaticlib.a (for architecture arm64):  current ar archive random library 

i wish determine size of specific slice (arm64, e.g). how this?

using lipo command -detailed_info flag able determine size of specific slice (amongst other details). usage follows:

$ lipo -detailed_info mystaticlibrary.a  fat header in: mystaticlib.a fat_magic 0xcafebabe nfat_arch 4 architecture armv7     cputype cpu_type_arm     cpusubtype cpu_subtype_arm_v7     offset .......     size .......     align 2^2 (4) architecture i386     cputype cpu_type_i386     cpusubtype cpu_subtype_i386_all     offset .......     size .......     align 2^2 (4) architecture x86_64     cputype cpu_type_x86_64     cpusubtype cpu_subtype_x86_64_all     offset .......     size .......     align 2^2 (4) architecture arm64     cputype cpu_type_arm64     cpusubtype cpu_subtype_arm64_all     offset .......     size .......     align 2^2 (4) 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -