在iPhone上运行python / ruby​​脚本? [英] Running python/ruby script on iPhone?

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

问题描述

来自 Apple ,我了解到必须在iPhone App上使用C / C ++ / Objective-C。因此,不可能使用MacPython或类似软件制作iPhone App。

From the recent news from the Apple, I learned that one has to use C/C++/Objective-C for iPhone App. Accordingly, it's not possible to use MacPython or similar to make iPhone App.

但是由于python / ruby​​解释器本身是用C语言编写的,为iPhone制作python / ruby​​解释器是不是可以在iphone上运行脚本?

But as the python/ruby interpreter itself is written in C, isn't it OK to make python/ruby interpreter for iPhone to run the scripts on iphone?

这可能吗? Apple支持这个吗?或者有人实现了这个吗?或者,用户应该破解这样做?

Is this possible? Does Apple support this? Or does someone implemented this? Or, the user should hack to do this?

我不分发python脚本,我只是将它用于我自己的实用程序。即使在这种情况下,我还需要越狱吗?我的意思是,我可以用Xcode编译python来获取二进制文件吗?或者,我希望有人已经这样做了。

I don't distribute the python script, I just use it for my own utility. Even in this case, do I need a jailbreak? I mean, can I compile the python with Xcode to get the binary? Or, I expect someone has already done this.

推荐答案

Apple最近改变了他们的政策,并允许一个名为<的python解释器App在App Store上展示强> Python for iOS

Apple recently changed their policy on this and allowed a python interpreter App called Python for iOS to be put up on the App store:

http: //itunes.apple.com/us/app/python-for-ios/id485729872?mt=8&uo=4

完全披露: 我是 适用于iOS的Python

Full disclosure: I am the sole creator/developer of Python for iOS.

这篇关于在iPhone上运行python / ruby​​脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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