Aston J

How to submit your MacRuby app to the Mac App Store

Posted on: June 17th, 2011 by AstonJ 5 Comments

If you’ve been scratching your head (or tearing your hair out!) trying to do this then, a) join the club, and b) fear no more! Here’s a quick guide to get you set-up and submitted!

Step 1 – Create your MacRuby App

First step is to create your MacRuby app in Xcode. Rather than me repeat what Andre has written up on his blog, go there, follow the guide, create your app as you normally would, then come back when you are ready to submit your app to the app store…

Step 2 – Get your certificates!

Next you will need to get 3 certificates from Apple:

  • Developer Application cert
  • Developer Install cert
  • Apple World Wide Developer Relations cert


It’s easy enough to follow the instructions on Apple’s dev site, but if you want a step by step check out this one by Adam. Once done you’re ready for the last bit!

Step 3 – Signing and submitting!

Firstly thanks to Daniel for this tip – he saved me wanting to scream very very loud!

Next we need to make sure you have added your code signing cert from the selectable drop down – here’s how:

Click on the name of your app in the top left area of xcode > then under Projects and Targets you’ll see the name of your App – for BOTH of these (in turn) you will need to click on the name, then in the column on the right click on ‘basic’ and find ‘Code Signing Identity’ and select ’3rd Party Mac Developer Application: Your Name’.

Then go to Product > Archive (make sure ‘Deployment’ is selected in the scheme – see step one if you’re stuck) and let it do its thing. When Organiser opens, right click the ‘Deployment’ at the very top of the list, and select ‘show in finder’. A window will open – just leave it there for now (as well as the Organiser window).

Then open a new terminal window and type in ‘cd ‘ (without the quotes but with the space!) then drag the file that is highlighted in the window that opened in the previous step, into the terminal window and hit enter.

Then type in ‘cd products/applications’ and enter. Then type in ‘ls’ and enter, and it should display the name of your app.

Then type in

codesign -f -s "3rd Party Mac Developer Application: YOUR NAME" YOUR_APP_NAME.app/

and enter – replacing your name and your apps name with the correct names.

Once that’s done, go back to the Organiser window and click SUBMIT. Then it should ask you to sign the app again – so long as you’ve completed the other steps you just need to click ‘next’ as the certificate required will automatically get selected.

That’s all there is to it – good luck!

If you run into any problems – be sure to ask on the MacRuby mailing list as they’re a helpful bunch.

PS having to manually sign the app is actually a bug – it’s been submitted to Apple so hopefully it will be fixed soon.

Tags: , , , , ,

5 Responses

  1. Great article.

    Where can I find your MacRuby apps in the Mac App Store?

  2. Thanks a lot, I had been struggling with this for the past several days. Reading Apple’s documentation I followed everything to the T but could not run my app after installing it on my system. Thanks Daniel and this web page I can run it. The only thing now I need is to figure out is why my iCloud is not enabled. I have the correct entitlements file for my app, it’s sandboxed, I added the additional ubiquity path for my file that is on iCloud and it runs in debug mode no problem. If anyone can has an idea before I start trying to solve that issue that would be great and I can finally have my app on my Mac with iCloud support.

    Thanks,

    Kenneth Lewis

  3. Nevermind just a programming issue with iCloud and also make sure you have Base SDK set to Latest Mac OS X (Mac OS X 10.7)

  4. Ok I am signing with the above instructions, install, and run but how do I enable iCloud if no provisioning profile is used for the 3rd Party Mac Developer Application is used?

    Thanks,

    Kenneth Lewis

Leave a Reply