Well, when I read the fat_header, it gives following values:
magic = 3199925962, (bebafeca)
nfat_arch = 0
Since the no. of fat_archs is 0, how can I determine the version number in
A value of zero for fat_archs is very unlikely. You're doing
something wrong in your read code. Here's a typical example of a fat
$ hexdump -n 8 /usr/lib/libSystem.dylib
0000000 ca fe ba be 00 00 00 04
Remember that fat headers are always big endian.
My high level goal is to find the version of the dynamic library when I m
given its full path.
That's just a restatement of your original question. I was asking
about /why/ you're trying to get this information. If I can
understand what you're trying to do, I may be able to suggest a
better approach (where "better" means "less code for you to write").
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden