我如何知道 *.a 文件是为哪种架构构建的? [英] How can I know which architecture an *.a file is built for?

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

问题描述

我正在使用 mac OS 10.7.4.使用 Xcode 4.3.2.

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

我从我的伙伴那里得到了一个 *.a 静态库文件.我想知道它是为哪种架构而构建的.是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 找出文件的架构:otool 手册页

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

otool -hv mylibrary.a

这篇关于我如何知道 *.a 文件是为哪种架构构建的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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