Mcrypt on iPhone

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:26:58

问题


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?


回答1:


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

So you'll get only binaries for OS X, with multiple architectures (i386, x86_64, maybe PPC).
Not ARM binaries for 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.



来源:https://stackoverflow.com/questions/17896731/mcrypt-on-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!