Skip to content

Instantly share code, notes, and snippets.

@jclay
Last active December 5, 2020 20:54
Show Gist options
  • Save jclay/1b08172d6e12877c1e5832b477111777 to your computer and use it in GitHub Desktop.
Save jclay/1b08172d6e12877c1e5832b477111777 to your computer and use it in GitHub Desktop.
Check directory for executables that are Mac Silicon Native (ARM64)
# check Mach-O header for architecture
# where -perm +111 checks for executable file type
find /Applications -perm +111 -type f | xargs -I % zsh -c 'objdump --private-headers "%" | grep "ARM64"'
# check for X86_64 instead
find /Applications -perm +111 -type f | xargs -I % zsh -c 'objdump --private-headers "%" | grep "X86_64"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment