snippetbashTip
lipo — Handle Mach-O Universal Binaries. More information: <https://keith.github.io/xcode-man-pages/lipo.1.
Viewed 0 times
commandmachclimorebinariesuniversalhandlelipo
macos
Problem
How to use the
lipo command: Handle Mach-O Universal Binaries. More information: <https://keith.github.io/xcode-man-pages/lipo.1.html>.Solution
lipo — Handle Mach-O Universal Binaries. More information: <https://keith.github.io/xcode-man-pages/lipo.1.html>.Create a universal file from two single-architecture files:
lipo {{path/to/binary_file.x86_64}} {{path/to/binary_file.arm64e}} -create -output {{path/to/binary_file}}List all architectures contained in a universal file:
lipo {{path/to/binary_file}} -archsDisplay detailed information about a universal file:
lipo {{path/to/binary_file}} -detailed_infoExtract a single-architecture file from a universal file:
lipo {{path/to/binary_file}} -thin {{arm64e}} -output {{path/to/binary_file.arm64e}}Code Snippets
Create a universal file from two single-architecture files
lipo {{path/to/binary_file.x86_64}} {{path/to/binary_file.arm64e}} -create -output {{path/to/binary_file}}List all architectures contained in a universal file
lipo {{path/to/binary_file}} -archsDisplay detailed information about a universal file
lipo {{path/to/binary_file}} -detailed_infoExtract a single-architecture file from a universal file
lipo {{path/to/binary_file}} -thin {{arm64e}} -output {{path/to/binary_file.arm64e}}Context
tldr-pages: osx/lipo
Revisions (0)
No revisions yet.