I have a .a file for a library I’m linking to an iOS application. How do I know the version number of the library? I don’t need to do this programmatically, I just need to get it manually once.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no common theme on how to encode a version number into a static library.
Sometimes there is none present at all.
Sometimes that is done using a header that belongs to that library.
Sometimes it is done using a function that returns such information.
In some cases that static library is part of a pseudo framework which contains a plist that might contain a correct version number.
Remember, a static library by itself is not much more than a bunch of object files put into a file archive. There is hardly any additional information, not to speak of metadata.