检查Objective C中支持的框架体系结构 [英] Check supported architectures of framework in Objective C

查看:66
本文介绍了检查Objective C中支持的框架体系结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Apple在明年2月的要求,提交给AppStore的每个应用都需要支持Arm64架构。在我的项目中,我使用了许多静态库(* .a),我可以检查这些库是否支持arm64 arch。但是,我不知道某些框架如Facebook.framework是否支持这个新的拱门。我怎么检查呢?请帮我解决这个问题。谢谢。

As requested by Apple in the next February, every app submitted to AppStore needs to support Arm64 architecture. In my project, I used many static libraries (*.a) and I can check if these libs support arm64 arch. However, I don't know if some frameworks such as Facebook.framework supports this new arch. How can I check it? Please help me solve this prolem. Thanks.

推荐答案

每个框架实际上只是一个目录 - 甚至不像包目录,而是一个可以直接浏览的普通目录与Finder一起进入.framework中的 Versions / A ,在那里你会找到一个与框架同名的文件。

Each framework is really just a directory - not even like a package directory, but a plain directory you can browse directly into with Finder. Go into Versions/A within the .framework, in there you'll find a file with the same name as the framework.

该文件实际上是一个静态库(.a)文件,只是没有扩展名。像任何静态库一样检查它(使用文件 lipo -info ),你会看到什么是二进制文件文件包含。

That file is really a static library (.a) file, just without the extension. Check it as you would any static library (using file or lipo -info) and you'll see what binaries the file contains.

你也会通过XCode知道。如果您将项目切换为支持arm64并且您链接的库没有arm64支持,则在编译设备时XCode将无法完成链接。

You'll also know through XCode though. If you switch your project to support arm64 and the libraries you are linking to do not have arm64 support, XCode will not finish linking when compiling for a device.

这篇关于检查Objective C中支持的框架体系结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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