$ git clone [email protected]:olbartek/MachOReader.git
$ cd MachOReader
$ swift build
$ swift run machoreader -rh <macho_file_path>
Additionally when needed
$ swift build --configuration release
$ cp -f .build/release/machoreader /usr/local/bin/machoreader
OVERVIEW: Mach-O file format reader, written entirely in Swift.
USAGE: machoreader <file-path> [--header] [--fat] [--raw]
ARGUMENTS:
<file-path> The file path of Mach-O executable.
OPTIONS:
-h, --header Read header.
-f, --fat Read fat header.
-r, --raw Print raw values.
-h, --help Show help information.