运行在iPhone 5S的64位32位的库 [英] Run 32 bit library on iPhone 5s 64 bit

查看:230
本文介绍了运行在iPhone 5S的64位32位的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我'使用 zbar 在我的应用程序。如果我想用一个64位处理器在我的iPhone 5S运行它,我得到了以下错误:

I'am using zbar in my application. If I want to run it on my iPhone 5s with an 64 bit processor, I get the following errors:

是否有可能使用32位库64位的设备上,因为我不认为,该库将被更新。

Is it possible to use the 32 bit library on a 64 bit device, because I don't think, the library is going to be updated.

推荐答案

要总结上述评论。一个64位的iPhone应用程序需要的所有成分库和框架是64位。你不能混搭。离开一个应用程序的32位非最优的长期,因为iOS的必须保持两个版本装(32和64)的系统库,一旦一个32位的应用程序运行。因此,你不想成为最后的应用程序,支持64位!

To summarize the comments above. A 64bit iPhone application requires all constituent libraries and frameworks to be 64bit. You can't mix and match. Leaving an application 32bit is non-optimal long term since iOS has to keep two versions of the system libraries loaded (32 and 64) as soon as a single 32bit app is run. Hence, you don't want to be the last app to support 64bit!

您可以检查您的库包含64位code。使用脂。例如,这里的SBJson框架32位:

You can check if your library contains 64bit code using lipo. For example, here's the SBJson framework in 32bit:

$ lipo -info SBJson.framework/SBJson 
Architectures in the fat file: SBJson.framework/SBJson are: armv6 armv7 i386 

和使用64位code

and with 64bit code

$ lipo -info SBJson.framework/SBJson
Architectures in the fat file: SBJson.framework/SBJson are: armv7 armv7s i386 x86_64 arm64 

在zbar的情况下,如果它不是用你总是可以尝试从源代码编译自己。

In the case of zbar, if it's not available you could always try compiling yourself from source.

这篇关于运行在iPhone 5S的64位32位的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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