How do I get version number from a static library?

◇◆丶佛笑我妖孽 提交于 2019-12-08 21:03:55

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/13279334/how-do-i-get-version-number-from-a-static-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!