检查Objective C中支持的框架体系结构

编程入门 行业动态 更新时间:2024-10-10 14:21:24
本文介绍了检查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中支持的框架体系结构

本文发布于:2023-11-12 01:49:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580170.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:体系结构   框架   Objective

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!