omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    When will OMZ release an Xcode Template for Python3?

    Pythonista
    13
    57
    40186
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vignesh
      vignesh @JonB last edited by

      @JonB hmmmm, now when I try to upload it again all it says is "app store connect operation error: an error occurred uploading to the app store"

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        Did you add that line to the pykit_preflight.py?

        vignesh 2 Replies Last reply Reply Quote 0
        • vignesh
          vignesh @JonB last edited by

          @JonB what is pykit_preflight.py? I don't have that file

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            Did you read the error message?

            Pythonista3AppTemplate.app/Frameworks/Py3Kit.framework/pykit_preflight.py

            vignesh 2 Replies Last reply Reply Quote 1
            • vignesh
              vignesh @JonB last edited by

              @JonB Nevermind, I found it after showing the package contents of the py3kit framework!

              But now I while i'm uploading, it stopped after a full bar stating "Completed App Store Operation" and it seems like it should be done, but it's not finishing the upload.

              1 Reply Last reply Reply Quote 0
              • vignesh
                vignesh @JonB last edited by

                @JonB it just ended and still resulted in the error - App Store connect operation error: An error occurred uploading to the App Store.

                What else should I do for it to work?

                1 Reply Last reply Reply Quote 0
                • vignesh
                  vignesh @JonB last edited by

                  @JonB Is there a difference between:

                  1. #import pythonista

                  and

                  1. #import 'pythonista'
                  1 Reply Last reply Reply Quote 0
                  • JonB
                    JonB last edited by

                    Try searching stackoverflow for your error message
                    https://stackoverflow.com/questions/47667446/an-error-occurred-uploading-to-the-app-store-with-no-error-code/47672812#47672812

                    1 Reply Last reply Reply Quote 0
                    • RomSpy
                      RomSpy last edited by RomSpy

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • RomSpy
                        RomSpy last edited by

                        @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.

                        vignesh 1 Reply Last reply Reply Quote 0
                        • vignesh
                          vignesh @RomSpy last edited by

                          @RomSpy which files did you have to add the #import 'pythonista' line on? Even on application loader I am still getting the same error

                          1 Reply Last reply Reply Quote 0
                          • RomSpy
                            RomSpy last edited by RomSpy

                            @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 1 Reply Last reply Reply Quote 0
                            • vignesh
                              vignesh @RomSpy last edited by

                              @RomSpy I tried what was provided in the stackoverflow, but it did not make a difference. Do you happen to remember which files from the Pythonista3Xcode Template you had to add the #import 'pythonista' line to? I already did the one for the py3kit_preflight.py

                              JonB 1 Reply Last reply Reply Quote 0
                              • ccc
                                ccc last edited by

                                I find the template and the info on how to use the template to be in Dropbox and scattered across numerous forum threads. It would be more helpful if the up-to-date template with docs and a few working examples were in a repo. https://github.com/omz/PythonistaAppTemplate or other.

                                1 Reply Last reply Reply Quote 0
                                • JonB
                                  JonB @vignesh last edited by

                                  @vignesh you have to fix every .py file. Are you getting code signing errors?

                                  vignesh 1 Reply Last reply Reply Quote 0
                                  • RomSpy
                                    RomSpy last edited by

                                    @vignesh I will upload the fixed template for you later today.

                                    vignesh 1 Reply Last reply Reply Quote 1
                                    • vignesh
                                      vignesh @JonB last edited by

                                      @JonB I looked into it more and I'm pretty sure I am

                                      1 Reply Last reply Reply Quote 0
                                      • vignesh
                                        vignesh @RomSpy last edited by

                                        @RomSpy Thank you so much!

                                        1 Reply Last reply Reply Quote 0
                                        • RomSpy
                                          RomSpy last edited by

                                          Updated template https://www.dropbox.com/s/7t6ew3ts4e58l8e/Pythonista3AppTemplate.zip?dl=0

                                          vignesh 2 Replies Last reply Reply Quote 1
                                          • vignesh
                                            vignesh @RomSpy last edited by

                                            @RomSpy So in the updated template, in the Py3kit_preflight.py file, there is no "#import pythonista' " statement at the beginning, was this intentional?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors