Skip to content

Instantly share code, notes, and snippets.

@watr
Last active December 13, 2016 07:15
Show Gist options
  • Save watr/b27a4b523fd7e50903dde22bc0f68cfd to your computer and use it in GitHub Desktop.
Save watr/b27a4b523fd7e50903dde22bc0f68cfd to your computer and use it in GitHub Desktop.
print macOS binary's deployment target
#!/bin/sh
## usase: $ sh ./macos-deployment-targer.sh <path-to-binary>
path_to_binary="$1"
otool -lv "$path_to_binary" | grep -A 3 LC_VERSION_MIN_MACOSX | grep "version" | awk '{print $2;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment