views:

206

answers:

2

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.

+1  A: 

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.

Xolve
Do you have a pre-OS 4 reference for Apple licenses forbidding running interpreters?
Daniel DiPaolo
The EFF acquired this license agreement via FOIA on NASA. See 3.3.2: http://www.eff.org/files/20100302_iphone_dev_agr.pdf
Ben
Btu as noted he is more interested in the technical answer, not the licensing one.
Kendall Helmstetter Gelner
+1  A: 

I don't distribute the python script, I just use it for my own utility. Even in this case, do I need a jailbreak?

No, you don't. You can compile a Python interpreter and run it on your own iPhone, as long as you have a developer license.

Maybe you can use ad-hoc distribution (according to Apple, you can distribute your app to 100 devices by yourself, outside of the app store) ? See here

Krumelur