2021-08-15 16:46:07 +01:00
|
|
|
# lipo
|
|
|
|
|
|
|
|
> Tool for handling Mach-O Universal Binaries.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/lipo.1.html>.
|
2021-08-15 16:46:07 +01:00
|
|
|
|
|
|
|
- Create a universal file from two single-architecture files:
|
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`lipo {{path/to/binary_file.x86_64}} {{path/to/binary_file.arm64e}} -create -output {{path/to/binary_file}}`
|
2021-08-15 16:46:07 +01:00
|
|
|
|
|
|
|
- List all architectures contained in a universal file:
|
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`lipo {{path/to/binary_file}} -archs`
|
2021-08-15 16:46:07 +01:00
|
|
|
|
|
|
|
- Display detailed information about a universal file:
|
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`lipo {{path/to/binary_file}} -detailed_info`
|
2021-08-15 16:46:07 +01:00
|
|
|
|
|
|
|
- Extract a single-architecture file from a universal file:
|
|
|
|
|
2023-02-20 07:05:58 +00:00
|
|
|
`lipo {{path/to/binary_file}} -thin {{arm64e}} -output {{path/to/binary_file.arm64e}}`
|