First you must register with Apple to be an official Mac developer (costs $99). http://developer.apple.com/devcenter/mac
Then you must download OS X 10.6.6, Xcode 3.2.5 and Application Tools 1.1
And, of course, you have to create your own App ID, Mac App and Installer Certificates. http://developer.apple.com/certificates/
After you are all setup as an Apple developer (see above) and have your Unity game developed, follow these steps to package your game for the Mac App Store…
Build in Unity for Mac Intel Only
Show Package Contents of the .app
2.a. Edit Info.plist
CFBundleShortVersionString
1.0.0
LSApplicationCategoryType
public.app-category.puzzle-games
NSHumanReadableCopyright
(c) 2010 Iterations Software LLC. All rights reserved.
CFBundleIdentifier
com.oneiteration.zenofclover
CFBundleVersion
1.0.0
2.b. Replace Resources/UnityPlayer.icns with one that is 512x512
2.c. Change permissions on /Data for “everyone” from “no access” to be “Read only”
In Terminal…
3.a. codesign -f -s “3rd Party Mac Developer Application: randy edmonds” ZenOfClover.app
3.b. productbuild --component ZenOfClover.app /Applications --sign “3rd Party Mac Developer Installer: randy edmonds” zenofclover.pkg
3.c. Delete the .app file after productbuild has created the .pkg (or the installer test will not work).
I tried following the instructions presented here and it seems like my isntaller isn’t working properly. My app isn’t showing up under /Applications, and I’m getting a couple of weird errors in the installer test.
Are you sure you setup the bundle identifier under your Mac Developer Account correctly (and that your payment for your yearly subscriptiong went through) and that you don’t have typos in the plist?
i got the same errors when i follow the guide. I read some where that the mac installer may be broken on snow leopard but have no proove for that and no fix. Just trying to get the package done on an other mac.
So I think the errors I was getting when testing the installer are pretty meaningless. I managed to fix them but on my iMac the installer still failed (as in, the app didn’t show up in /Applications). I tried doing the same thing on my Macbook Pro and it worked fine. But the pkg I made on the other computer (which worked there) still didn’t work on the iMac. So I’m leaning towards there’s some kind of bug.
Also Artial, you have to log into the mac dev center and download the “Application Tools”. They just updated to 1.1 yesterday so maybe that’ll fix some issues people were having…
The missing bundle identifier messages can be ignored… however if you are not seeing your app in /Applications, it is probably because you didn’t do step “3.c”.
For whatever reason, if you .app is located anywhere else on your Mac, the installer does not write the app to /Applications… instead the installer will overwrite the .app in the location it already exists. From my experience, YOU HAVE TO DELETE every copy of the app from your machine or the installer will not write to /Applications. I suggest you use Spotlight to search for copies of your app and remove them all.
Hi, all. I’m putting together my first Mac App Store submission and I’m following the instructions Randy and every have put together here and everything goes fine until I get to the step where I create the signed installer:
i.e. 3.b. productbuild --component ZenOfClover.app /Applications --sign “3rd Party Mac Developer Installer: randy edmonds” zenofclover.pkg
When I enter this command int the terminal, it throws an error indicating that it doesn’t recognize the --sign option, starting like this:
e.g. productbuild: unrecognized option `–sign 3rd Party Mac Developer Installer: (etc.) …
I know that I have the strings right because they (or similar ones) worked when I used them in executing the codesign command in the terminal. And I do indeed have both my App and Installer certificates installed in the keychain.
So, anyone have any idea what might be going on here? Oh, please?
When I enter the “productbuild --component … -sign …” line in the terminal to sign and build the package, I get an error stating that “–sign” is an unrecognized command.
I’m using the last drop of XCode 3.x and SDK 4.3 but haven’t installed Application Tools 1.1 since those files are no longer available. I assume that the stuff they added was incorporated into the final XCode 3.x build - is that wrong?