Xcode Template for Pythonista
-
I am trying to upload a Pythonista project to the Apple App Store.
I have tried many, many time and keep getting code signing errors.
I am using Xcode 8.2.1
So this is what I have done:Started with new Xcode Swift single view project, archived it and was able to submit it to the App Store. So my certificates are all working. I downloaded the Xcode template and then archived it. When I submit to Apple, it hangs on the code signing for a really long time and then comes back with this error:
ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. 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"
The only thing I can figure out is that it seems to be trying to code sign the PythonistaKit.framework and does not seem to be able to. I can see "PythonistaKit.framework (0 Entitlements), just before I validate it.
Wondering if anyone else is able to reproduce this error, or even better have a fix to the problem.
Thanks
-
@ruohola sorry this is a little late and I hope this information is still relevant for you. I took @JonB 's advice and went into the P3kit framework and edited the P3kit file. For me it popped up as a unix executable, so I needed to download a hex editor to go in and modify it.
All I did was command-F and find all the instances of UIWebView and replace them all with UIBarItem. This is an API with the same character length and the API isn't deprecated. Save the file and make sure it is still in your project directory.
I archived and uploaded my build last night and the App Store did not reject the build. so this is a good working solution. My app is a 2D shooting game called Flyboy Adventure Game and it is currently under beta review as we speak. I've tested my game on Testflight and it works great, so hopefully there is no long term repercussions from using this workaround.
-
@coltonboyd, thanks for sharing, this is great news. I am (again) tempted to put something to the App Store.
-
Of course, just for reference the Hex editor I used was SlickEditPro2019. You can download a free trial and it’s pretty easy to use.
I’m currently trying to upload a updated Pythonista 3 Template to my Dropbox but it’s taking forever.
-
@coltonboyd It might be good if you could document the various steps you went through from start to end -- for instance did you have to do the workaround so
file
doesn't flag .py files as executable? Anything else you had to modify from the template?
-
@JonB I’m glad you mentioned that. I forgot to inform that to get past signing errors I used @RomSpy ’s last template he posted from this forum link:
https://forum.omz-software.com/topic/5837/xcode-template
After getting past the signing errors is when I started getting the UIWebView deprecated rejections from Apple. That is when I stumbled upon this forum post and tried out your idea of downloading the hex editor, etc. I first tried replacing UIWebView with WKWebView like Apple suggested, but it ended up crashing my app after launch. Replacing it with UIBarItem had no effect.
Here is my latest version of the Pythonista 3 App Template that I used for my game I’m currently publishing to the App Store as we speak.
https://www.dropbox.com/s/442v3cp90oyk8rd/Pythonista3AppTemplate Updated .zip?dl=0
-
@coltonboyd said:
Thanks! But it seems that you upload version with WKWebView. I changed that to UIBarItem and it worked
-
@vovaburm oops I must have uploaded the wrong version then off my desktop, my bad! I’m glad you got it to work!
-
To anybody that needs it, here is the correct and updated Pythonista 3 Template:
https://www.dropbox.com/h?preview=Pythonista3AppTemplate+Updated+.zip
-
@coltonboyd the last link you posted doesn't work :(
-
Yes, @coltonboyd, I too cannot access this link but I would very much like to use your Python 3 Pythonista 3 template for Xcode. Could you please post a corrected link?
-
@Ichicoro lol I hate myself. This should work, let me know if it doesn’t.
https://www.dropbox.com/s/nq899u5gv54o5t8/Pythonista3AppTemplate Updated .zip?dl=0
-
This post is deleted!last edited by
-
Can someone please repost the template? That link doesn’t seem to be valid.
Thanks!
-
@coltonboyd invalid link😭😭😭 will you update please?🥺🥺
-
I believe this is a copy of the last XCode Template modified by @coltonboyd. I have only used it to run the simulator with the latest version of XCode. It throws some warnings, but works for testing.
https://1drv.ms/u/s!ArOye-9ij7iY2GkveJR7rZmN9eS-?e=b37KZi
-
@bosco Can you please post the template on GitHub or Dropbox or some more trustable URL.
Given that your last activity on the forum was 3 years ago, I am a bit worried that we trust a cryptic URL.
-
@ccc This link is for Microsoft OneDrive. My Dropbox space is limited.
The original link is a more permanent and reliable alias to this URL.
https://onedrive.live.com/?authkey=!AC94lHutmY315L4&id=98B88F62EF7BB2B3!125&cid=98B88F62EF7BB2B3