tags:

views:

56

answers:

1

I was trying to use otool but I couldn't find a way to do it. Basically I'd like to know whether a dylib is compiled only for 10.6 or if it supports 10.5.

Thanks, Rui

+1  A: 

I don't have access to a 10.6 machine, but did you try looking at the output of "otool -L"? You may be able to tell by the version of libSystem against which it's linked.

Chris Cleeland
Chris is correct:10.6(.2)'s libSystem appears to be version 125.0.0;10.5(.8)'s libSystem appears to be version 111.1.4;
geowar
Although this won't tell you if something compiled against the 10.6 libSystem won't still run on 10.5…
geowar
To be 100% sure you'd have to dump out the symbols (nm) and look for any 10.6 only APIs.
geowar