检测使用哪个SDK版本来构建OSX框架 [英] Detect which SDK Version was used to build a OSX Framework
问题描述
我需要检测使用哪个SDK版本来构建OSX框架.
I need to detect which SDK Version was used to build a OSX Framework.
任何有用的提示将不胜感激 弗洛里安
Any helpful hints would be appreciated Florian
推荐答案
感谢解决我问题的提示
我需要验证是否确实使用10.6 SDK构建了framwework. 谢谢您的提示,我用otool解决了问题
I need to validate that a framwework was really built with the 10.6 SDK Thanks for you hint, I solved the problem with the otool
如果链接到10.6 SDK,则使用otool -L将显示以下行 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(兼容版本150.0.0,当前版本550.29.0)
Using otool -L prints the the following lines if you link against the 10.6 SDK /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
如果您仍然使用10.5 SDK,则会获得其他当前版本号 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(兼容版本150.0.0,当前版本476.19.0)
If you still use the 10.5 SDK you will get a different current version number /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.19.0)
这篇关于检测使用哪个SDK版本来构建OSX框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!