如何检查是否为64位构建了静态库? [英] How to check if a static library is built for 64-bit?

查看:82
本文介绍了如何检查是否为64位构建了静态库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为iOS构建了一个静态库,并将Architectures的构建设置设置为$(ARCHS_STANDARD_INCLUDING_64_BIT).

I just built a static library for iOS with the build setting for Architectures set to $(ARCHS_STANDARD_INCLUDING_64_BIT).

我想确保.a库正确包含该体系结构,但是当我在其上运行lipo -info时,我会看到:

I want to make sure that the .a library is properly including that architecture, but when i run lipo -info on it, I see:

胖文件:library.a中的体系结构是:armv7 armv7s (cputype(16777228)cpusubtype(0))

Architectures in the fat file: library.a are: armv7 armv7s (cputype (16777228) cpusubtype (0))

这是否意味着不包括arm64?如果lipo命令无法告诉我,还有另一种方法可以告诉我吗?

Does this mean that arm64 isn't included? If the lipo command can't tell me, is there another way to tell?

我正在运行安装了最新命令行工具的Xcode 5.

I'm running Xcode 5 with the latest Command Line Tools installed.

推荐答案

是的,有arm64切片.要查看它,您需要使用iOS工具链中的lipo,而不是主机系统(不了解arm64)使用:

Yes, an arm64 slice is there. To see it, you need to use lipo from the iOS toolchain, not from the host system (which doesn’t know about arm64):

xcrun -sdk iphoneos lipo -info $(FILENAME)

这篇关于如何检查是否为64位构建了静态库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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