How to get version number from static library?

I have a .a file for a library that I am linking to an iOS application. How to find out the library version number? I do not need to do this programmatically, I just need to get it manually once.

+6
source share
1 answer

There is no general topic on how to encode the version number in a static library.

Sometimes there is no one at all. Sometimes this is done using a header belonging to this library. Sometimes this is done using a function that returns such information. In some cases, this static library is part of a pseudo-structure that contains a plist, which may contain the correct version number.

Remember that a static library alone is not much more than a bunch of object files placed in a file archive. There is hardly any additional information, not metadata.

+7
source

All Articles