如何更新我们的静态库架构以支持arm64 Build? [英] How to update our static library architecture for suporting arm64 Build?

查看:501
本文介绍了如何更新我们的静态库架构以支持arm64 Build?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我创建静态库(通用),使用 Xcode5.0 SDK7 工作正常。更新 Xcode5.1 SDK7.1 之后,如果我选择模拟器 iPhone Retina不起作用(4英寸64位)。然后我将使用Bellow设置更改来更新我的lib。

Few days ago i create static-library (Universal) that work's fine with Xcode5.0 SDK7. After Update Xcode5.1 with SDK7.1 that not work if i select simulator iPhone Retina(4-inch 64-bit). Then i am going to update my lib with Bellow setting change.

我为三个目标做同样的事情: -

I do the same for three Target:-

对于运动模拟器以及设备i把Universal lib放到这个我运行的脚本中: -

For sporting simulator as well as device i put Universal lib and in to this i run script this:-

在此之后我再次构建lib并使用我之前完成的项目。但仍然遇到与 iPhone Retina(4英寸64位)相同的问题 架构x86_64的未定义符号:

After this i Build Again lib and used as i done Before in to my project. But still getting same issue with iPhone Retina(4-inch 64-bit) Undefined symbols for architecture x86_64:

所以,我的问题是更新lib需要进行任何其他更改 arm64 或者我在上面的步骤中犯了任何错误。如果我错了,请告诉我。

So, My question is that is there any additional change required for updating lib for arm64 or i did any mistake in above step. Please current me if i am wrong.

更新我的静态库以支持 64Bit架构所需的更改

what change needed for update my static-library for supporting 64Bit architecture

注意:

我要求自己创建的库更新。我没有使用第三方库。
更新

I am asking for my own created Library Update. i am not using third-party Library. Update

我用这个 lipo -info testingLibImport / libLibNSlog.a 命令进入我的终端输出是:

I used this lipo -info testingLibImport/libLibNSlog.a command in to my Terminal that output is:

Architectures in the fat file: testingLibImport/libLibNSlog.a are: armv7 armv7s i386 arm64 


推荐答案

经过很多工作我得到了解决方案。一些xcode不知道有自动出现标准架构(包括64位)(armv7,armv7s,arm64)但在我的情况下我的没有选项静态图书馆项目。所以我要手动添加这个: -

After lots of stuff i got solution. some of xcode dont know there is automatic appear Standard architectures (including 64-bit) (armv7,armv7s,arm64) but in my case there is not option into my Static Library Project. so i am going to add this Manually like:-

并选择此选项: -

and select this Option:-

在此之后我重新构建我的静态库并用于在我的项目中,现在工作正常。我还检查了lipo命令到终端输出到现在不同: -

After this i re-Build My static Library and used in to in my project that working fine now. and I also checked with lipo command in to terminal that output going to different now:-

testingLibImport / libLibNSlog.a是:armv7 armv7s i386 x86_64 arm64

这篇关于如何更新我们的静态库架构以支持arm64 Build?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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