Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I write native iPhone apps using Python? [closed]

Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how?

like image 622
davidmytton Avatar asked Sep 04 '08 07:09

davidmytton


People also ask

Can you use Python to make iPhone apps?

While Android and iOS will not run interpreted code, you can use a Python mobile app framework like Kivy or BeeWare to write your mobile application in Python and then cross-compile it for Android or iOS. Learn more about Python's built-in elements.

Can Python script run on iPhone?

With regards your technical question, iOS does not include a built-in Python interpreter. If you want to run Python scripts, you'll have to build a Python interpreter into your app.


2 Answers

You can use PyObjC on the iPhone as well, due to the excellent work by Jay Freeman (saurik). See iPhone Applications in Python.

Note that this requires a jailbroken iPhone at the moment.

like image 145
gavrie Avatar answered Sep 24 '22 08:09

gavrie


Not currently, currently the only languages available to access the iPhone SDK are C/C++, Objective C and Swift.

There is no technical reason why this could not change in the future but I wouldn't hold your breath for this happening in the short term.

That said, Objective-C and Swift really are not too scary...

2016 edit

Javascript with NativeScript framework is available to use now.

like image 30
Dave Verwer Avatar answered Sep 24 '22 08:09

Dave Verwer