lipo

Handle Mach-O Universal Binaries. More information: https://keith.github.io/xcode-man-pages/lipo.1.html.

lipo path/to/binary_file.x86_64 path/to/binary_file.arm64e -create -output path/to/binary_file

lipo path/to/binary_file -archs

lipo path/to/binary_file -detailed_info

lipo path/to/binary_file -thin arm64e -output path/to/binary_file.arm64e