Use otool -l /path/to/binary
and inspect the LC_VERSION_MIN_MACOSX
load command; specifically, the version field.
For example, a binary compiled with the 10.8 SDK with deployment target (-mmacosx-version-min
) 10.8 should have an LC_VERSION_MIN_MACOSX
like this:
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.8
sdk 10.8
whereas a binary compiled with the 10.8 SDK with deployment target 10.7 should have an LC_VERSION_MIN_MACOSX
load command like this:
Load command 9
cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.7
sdk 10.8
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…