Last active
December 5, 2020 20:54
-
-
Save jclay/1b08172d6e12877c1e5832b477111777 to your computer and use it in GitHub Desktop.
Check directory for executables that are Mac Silicon Native (ARM64)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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