v 1.16.3 Updated: 5 months ago
Mach-O header analysis and editing
macholib can be used to analyze and edit Mach-O headers, the executable format used by Mac OS X. It is typically used as a dependency analysis tool, and also to rewrite dylib references in Mach-O headers to be @executable_path relative. Though this tool targets a platform specific file format, it is pure python code that is platform and endian independent.
To install py38-macholib, paste this in macOS terminal after installing MacPorts
sudo port install py38-macholib