根据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中支持的框架体系结构
发布评论