objective c - How to get dylib version information which are in a directory -
i wanted dylib version. i've dylib path wanted version number. i've tried "otool -l"
command , it's giving me proper output per requirements can't utilize it, since i've 100 of dylib in directory wanted version info , can't run "otool" command each dylib through nstask , nspipe.
i've found nsversionoflinktimelibrary()
function dylib version, per documentation nsversionoflinktimelibrary
returns version number linked libraries , not other dylib.
any help on helpful.
thanks. omkar
the way see it, have 2 options.
load each dylib process , lookup mach-o headers on each, looking version numbers. documentation should finish , thorough plenty started.
open each dylib normal file, , read , parse mach-o headers yourself. avoid having load each dylib process, mean need either parse mach-o binary format yourself, or find library can (i don't know of off top of head).
objective-c cocoa version dylib
No comments:
Post a Comment