Recently I finally figured out how to package a Python app (Mnemosyne) using py2app. This is cross-platform software and py2app pulls in a lot of dependencies– PyQt, cherrypy, etc.– so re-writing is not an option.
However, if possible, I would like to submit this application to the App Store or at least sign the code so that when Mountain Lion is released next month users will be able to install it without a warning. However, when I launch Xcode (I’ve never used it before), I am prompted to choose a template and I have no idea what to choose.
I can easily build the application like this:
sudo python setup.py py2app
Could someone give me a rough idea of the things I have to do in order to be able to build this instead in Xcode?
You don’t need to use Xcode to sign the .app. You can also use the standalone command called codesign (that’s code-sign, not co-design). Once you’ve created your .app, you can sign it using a command such as
You’ll need to read the man pages to figure out what options you need exactly, but hopefully this at least points you in the right direction. Also, you obviously need to have your Developer ID certs etc in your keychain for this to work.