Here is the last version I used. I have not tried to use this in a while I imagine it may not work with the latest version of Xcode but you are welcome to try.
https://www.dropbox.com/s/nq3ff9gw1xq0udt/Pythonista3AppTemplate Updated.zip?dl=0
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Here is the last version I used. I have not tried to use this in a while I imagine it may not work with the latest version of Xcode but you are welcome to try.
https://www.dropbox.com/s/nq3ff9gw1xq0udt/Pythonista3AppTemplate Updated.zip?dl=0
@mikael I use iCloud and that works well. I do not use Working Copy so I cannot say if it works or not.
@upwart Pythonista works well on iPadOS as well. There were growing pains with access to iCloud Drive but that all seems to have been resolved.
No problem that is all I did with my template. It works in Xcode 11 it just displays your script as a card overlay instead of full screen like it did in Xcode 10.
@SmartGoat I will repost the template when I get a chance. Just be aware that it doesn’t work very well with Xcode 11.
Edit: Here is the link: https://www.dropbox.com/s/nq3ff9gw1xq0udt/Pythonista3AppTemplate Updated.zip?dl=0
@omz The version I have posted works on Mojave
@vignesh sorry I pasted the wrong link. I have both the original and the modified template in my Dropbox. https://www.dropbox.com/s/mvzc0lhhv6pcfju/Pythonista3AppTemplate Updated.zip?dl=0
It was not intentional I must have uploaded the wrong file. Sorry. I will get a new one.
@vignesh I will upload the fixed template for you later today.
@vignesh You need to add it to every .py file in the template. You shouldn’t get an upload error just the code not signed error from not having the import Pythonista.
Try this: https://stackoverflow.com/questions/46463778/xcode-9-an-error-occurred-uploading-to-the-itunes-store
@vignesh Are you archiving your app before uploading? If that is not working export your .ipa file and use the application loader instead that usually solves the problem you are describing.
@omz I successfully update my app in the App Store using the new template. I did have to add more #import 'pythonista' lines to get it to work.
One question I have is it deletes the database I am using when it does the update do you know if there is a way to prevent this? The database is created in the script folder by Pythonista when it first runs the app unless the database already exists. I have not had this problem with any other updates to the app that I have done.
@omz after messing around with the template and my code signing settings which work on the previous template this is what I found:
I added #import 'pythonista' to the pykit_preflight.py and the error went away on that file.
Also it seems that any .py file with a "#!" near the top also has code signing issues.
I may be doing something wrong as I am not that familiar with Xcode code signing but on the off chance that it is not me here is the error code.
The error received is:
ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. The file at path [Pythonista3AppTemplate.app/Frameworks/Py3Kit.framework/pylib/wave.py] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"
@omz it may be operator error. I found an issue with how I was signing the app. I tried to upload it again to see but I am just having connection errors right now.
@omz I am not sure if it is just me but the new template works great in the simulator but I cannot upload it to the App Store because it has the same code signing errors the previous template had.
So far it works great! Everything that wasn't working on the old template works now.
Thank you! I will give it a try.