我怎样才能知道哪些架构的*某文件为建? [英] How can I know which architecture an *.a file is built for?

查看:211
本文介绍了我怎样才能知道哪些架构的*某文件为建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在Mac OS 10.7.4。利用X code 4.3.2。

I'm working on mac OS 10.7.4. using Xcode 4.3.2 .

我有一个*。一个静态库文件从我的合作伙伴。我想知道哪些建筑是建于。是的ARMv6,ARMv7的,i386或其它架构?

I had a *.a static library file from my partner. I want to know which architecture it is built for. Is it ARMv6, ARMv7, i386 or other architecture?

是否有任何命令或方法,以获取有关文件的结构信息?

Is there any command or method to get info about the architecture of the file?

推荐答案

您可以用otool找出一个文件的体系结构(S):<一href=\"http://developer.apple.com/library/mac/ipad/#documentation/Darwin/Reference/ManPages/man1/otool.1.html\">otool手册页

You can use otool to find out the architecture(s) of a file: otool man page

otool -hv mylibrary.a

这篇关于我怎样才能知道哪些架构的*某文件为建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆