Some methods to analyse the Mach-O files:

  • The otool utility can be used to parse Mach-O binaries
  • MachOView is a user-friendly utility capable of parsing Mach-O files
  • Universal binaries start with a header (fat_header), a variable number of fat_arch structures that describe the supported architectures, and then the architecture-speci!c Mach-O binaries concatenated together. You can dump the fat_header by using the otool utility with the -f ag
    otool -fv GoSearch22.app/Contents/MacOS/GoSearch22
    
  • For universal binaries use lipo
  • You can parse a Mach-O binary’s LC_LOAD_DYLIB load command in order to view the binary’s dependencies. To do so, use the otools utility with the -L ag or MachOView

Classifying Mach-O files