Pythonista to Xcode to iOS app Tutorial?
Apologies if this has already been covered, but I have not seen anything but bits and pieces that don't quit stitch together for me.
I'd like to see a tutorial on how to take a Pythonista app from the iPad to Xcode and then to an actual iOS app. I know there is a Xcode template, which I have downloaded (and which does not work without significant modification) but has the whole process been codified somewhere?
Although once you've got your code running on internal testing devices via the template, you can follow Apple's guides for submitting apps to the App Store.
Can someone point me at the template. I've yet to find it.
So I found it, downloaded it and ran it. OSX 10.9.5, xcode and ios with all updates in place.
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_PythonistaAppViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the script.py is just supplied "hello world".
I'm assuming the current version of the compiled pythonista library doesn't have 64-bit support. Please correct me if I'm wrong.
If you wish to compile your app in Xcode, for now, you may have to disable x86-64 architecture. But keep in mind that Apple will require 64-bit support as of February.
I am in no position to write an Xcode tutorial, but have been playing with it recently. I can post a few gathered tips in a few days perhaps, after the holidays. Please remind me if I've forgotten; but don't let this prevent anybody else with experience to share their story.
Thanks for all the replies. It seems this person has perhaps a more up-to-date template:
I've successfully built the "Hello World" app with it. That said, "dvader9", I would much appreciate anything you could put together. Merry Christmas!
Same. No change.
I suspect that the changes in Xcode 6 made the current template-based export flow simply broken. I would love to hear otherwise. I chose Pythonista in part due to its supposed ease of iOS app creation.
Given the maturity of the app I'm surprised to find there's no comprehensive tutorial for this like there is for Lua.
@glennholt Maturity comments aside I suspect that xCode has never been a high priority feature for Pythonista. I use it but from the limited number of posters on the subject I'm guessing not many do. I suspect it was something Ole originally tossed in simply because it was easy. Pythonista's primary goal is to allow running useful python scripts on iOS. It does that well and like any mature product keeps getting better. If xCode went away altogether it would disappoint a small number of us but Pythonista would still be an important and valuable app.
@zencuke: Agreed, Pythonista is a great IDE. My goal as an educator was to leverage the simplicity of Python programming (on the iPads the kids all have from the school) to have the kids create apps that could be distributed through the Apple store.
Apologies for the delay on getting back to this post. I hope you all had a nice holiday.
A few things before I put together a description of my workflow and experience in moving from Pythonista to Xcode, to an iOS App in the store:
a) as others have before, I managed to get an App in the store using Pythonista. It is a simple and free drawing app that I made with my kids - similar to one other forum contributor, if I remember right. You can see for yourself at https://itunes.apple.com/us/app/drawing-with-sonia/id925557850?ls=1&mt=8
b) As I mentioned earlier, the current pythonista library in Xcode, as far as I can tell, doesn't support 64-bit. This is a bigger issue, because as of February 1st, Apple will not accept any new apps that don't support 64-bit. As of the summer, they won't accept any updated apps that don't support 64-bit. So we have a very rapidly closing window here, unless the next version of a template comes with 64-bit support.
c) @omz, is there a plan to release another Xcode template soon that will have 64-bit support? If not, then much of this discussion is void (see bullet point b). If you are hesitant about this, @omz, please know that we all appreciate all the effort you've already put into Pythonista. And I probably can speak on behalf of others, when I say that those interested in export to Xcode, would be willing to pay extra (Paypal, or In-App purchase) to have an updated template.
Once we have c), primarily, addressed, I think that we can move on to answer the question. I am a bit weary of spending more time putting this info together, if it is not supported for more than 3 weeks down the road, as I'm sure you can understand.
Yes, I do plan to release a new version of the Xcode template, probably alongside the release of Pythonista 1.6, so that the libraries etc. are in sync.
64-bit support hasn't been in the 1.6 betas so far, but I have it working, so that shouldn't be a stumbling block when the requirement is in place (which will be in July for Pythonista because it's not a new app). I'm a bit hesitant to enable 64-bit support for 1.6 because there's little actual benefit, and it makes the download substantially bigger, but it wouldn't be a problem to enable it separately for the Xcode template.
I am certain to turn into a developer, as I explore the power of pythonista. If an in-app upgrade is what would be need to give incentive for a fully featured release that enables 64-bit compatible apps developed in pythonista, I'm in.