Reputation: 423
So I am working on a Python based app using Kivy, and wanted to deploy it on my iPhone to test it out. When I searched for how to do this, I found this site: https://kivy.org/docs/guide/packaging-ios.html which is on Kivy's official site.
At the top, it says 'Note Currently, packages for iOS can only be generated with Python 2.7. Python 3.4+ support is on the way.'
Is this info up to date?? If so, is there some way I can deploy the app onto my iPhone using Python 3.6, or will I have to downgrade to Python 2.7?
EDIT: Just wanted to mention, I am on a Mac using PyCharm. I use Python 3.6
Upvotes: 4
Views: 4238
Reputation: 1226
More up to date answer - yes, you can use python 3.6 now with kivy-ios. I have created and published apps on the app store using python 3.6 and kivy!
Here is an example: https://apps.apple.com/us/app/100-days-of-fitness/id1468049372
100% Python and Kivy :)
Upvotes: 11
Reputation: 314
Unfortunately no. IOS is currently the only kivy platform not ready for python 3 this is do to lacking toolchain requirements and may take a while. There is currently an almost beta release for interfacing some python 3 with kivy using the method:
kivy.compat.PY2 = False
You can read more about this here. However, I highly recommend you don't use any of these because it's more trouble than it's worth right now especially if you want any stability in your app. Python 2.7 is time tested and stable with kivy though so I recommend this over a shaky beta version.
If you have your heart set on using python 3 then you might want to take a look at BeeWare. It is currently up to date with python 3.6 and is similar to kivy.
Upvotes: 1