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.


    Code Signing .py Files latest Xcode template

    Pythonista
    2
    4
    3577
    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.
    • andymitchhank2
      andymitchhank2 last edited by

      I am trying to upload a project to iTunes Connect (just setup a developer account and testing creating apps with the template). I'm using the latest template for the beta.

      I am running into the following error when uploading:

      ERROR ITMS-90035: "Invalid Signature. Code object is not signed at all. The binary at path [projectname.app/pylib/future.py] contains an invalid signature...

      The error goes on for a while, but this is the main gist. I am using a valid signing id and all.

      I've found this article on StackOverflow. Number 5 on the first answer seems to be the problem.

      Does anyone have an idea on how to fix this or run into the same problem?

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

        Does __future__.py start with #!? If so, remove that line. If there are a lot, I'd write a script to search the whole pylib folder and strip out the shebangs.

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

          __future__.py did not start with a #!. I did remove those from all other files.

          The file did start with a multi-line string and I noticed that all the files Xcode was complaining about started with multi-line strings for documentation. I stuck a comment before each of the strings and that appears to have fixed this issue for now.

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

            Wrote a (real) quick script to sanitize the template. You can find it here.

            For future reference:
            Xcode did not like #! or multiline comments at the beginning of a file.

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