Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running python/ruby script on iPhone?

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.

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?

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

Added

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.

like image 693
prosseek Avatar asked Apr 21 '10 14:04

prosseek


Video Answer


2 Answers

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


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

like image 157
chown Avatar answered Oct 20 '22 21:10

chown


At present not at all. Apple licenses forbid to run any intepreter on it, and this is even before iPhone OS 4. You can make an intepreter by jailbreaking it but it won't be official and you won't be able to distribute it.

like image 28
Xolve Avatar answered Oct 20 '22 22:10

Xolve