iPhone上的Mcrypt [英] Mcrypt on iPhone

查看:130
本文介绍了iPhone上的Mcrypt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iPhone上使用mcrypt加密.我在使用i386架构的iPhone Simulator上使用它时没有问题. iPhone使用armv7s架构,而mcrypt似乎不支持它.我通过以下命令使用mac端口安装了它:sudo install mcrypt + universal.因此,它应该是通用的".有什么办法可以使其在iPhone上运行?

I want to use mcrypt encryption on iPhone. I don't have problem using it on the iPhone Simulator which uses i386 architecture. iPhone uses armv7s architecture and mcrypt doesn't seem to support it. I installed it with mac ports by this command: sudo install mcrypt +universal. So it should be 'universal'. Is there any way to get it working on iPhone?

推荐答案

MacPorts上的+universal标志与 OS X通用二进制文件有关.与iOS无关.

The +universal flag on MacPorts is related to OS X universal binaries. It has nothing to do with iOS.

因此,您将仅获得具有多种架构(i386,x86_64或PPC)的OS X二进制文件.
不是iOS的ARM二进制文件.

So you'll get only binaries for OS X, with multiple architectures (i386, x86_64, maybe PPC).
Not ARM binaries for iOS.

如果您在iOS上需要这样的库,最好的解决方案是获取源并将自己使用Xcode编译为iOS静态库目标.

If you need such a library on iOS, your best solution is to grab the sources and compile them by yourself using Xcode, into an iOS static library target.

您会在网上找到许多关于此的教程.

You'll find many tutorials about this on the web.

这篇关于iPhone上的Mcrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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