Unity plugin to build and package apps for the Mac App Store.
GPL-3.0 License
Unity plugin to build and package apps for the Mac App Store. The tools included in this plugin can take an existing OSX app built with Unity and repackage it for Mac App store submission.
Either grab the latest release .unitypackage
and import it into your Unity project, or clone a version of the repository and use it as a standalone Unity Project.
If you haven't already you'll need to setup an application in the Apple Developer Console. First make sure you're in the OSX section (selected from the dropdown in the left hand navigation bar) then select App IDs and create a new entry.
If you already have an iOS version of your app it's important that the bundle indentifier you choose is different.
You'll need to setup two distribution certificates one for Mac App Distribution and the other for Mac Installer Distribution. You can do this in XCode (probably the most convenient method) or inside the Apple Developer Console. If you choose the latter option make sure to download the certificates and add them to your keychain.
Once your application is configured in the Apple Developer Console you can create an entry in iTunes Connect, this is where you'll submit the final package. Create a New Mac App from the My Apps page, and when prompted select the Bundle ID you created in step 2.
The iconset generated by Unity for standard OSX builds is missing some of the resolutions required by the Mac App Store. Included in this project is a tool to generate a new icon set (instructions below) or if you have an existing iconset with the required images you can use that (see step 6).
MacAppBuilder/RequiredFiles/UnityPlayer.iconset/
with your own assets, it's important that you use the correct sizes.Tools/MacOS/Create Icon Set
MacAppBuilder/RequiredFiles/UnityPlayer.icns
Select the settings asset under MacAppBuilder/MacAppBuilderSettings.asset
and modify the settings in the inspector.
public.app-category.games
or pick a specific category from this list.3rd Party Mac Developer Application: [YOUR COMPANY NAME]
.MacAppBuilder/RequiredFiles/BuildEntitlements.entitlements
. You can edit this file or supply your own if your app requires custom entitlements.Once everythings setup you're ready to package your build! Run Tools/MacOS/Build for Mac App Store
from the menu bar, you'll be prompted to select your OSX app build.
Once the process has completed and if everything worked you should see a new .pkg file in the same folder as your app.
Launch Application Loader, choose the .pkg you just created and start the submission process.
You're done! For future builds you only need to repeat steps 7 & 8.
https://docs.unity3d.com/Manual/HOWTO-PortToAppleMacStore.html