将 Xamarin.Mac 应用发布到 Mac App StorePublishing Xamarin.Mac Apps to the Mac App Store

概述Overview

可以两种不同的方式分发 Xamarin.Mac 应用:Xamarin.Mac apps can be distributed in two different ways:

  • 开发人员 ID – 使用开发人员 ID 签名的应用程序可在 App Store 之外分发,但网关守卫会识别并允许安装次应用程序。Developer ID – Applications signed with a Developer ID can be distributed outside of the App Store but are recognized by GateKeeper and allowed to install.
  • Mac App Store – 应用必须具有安装程序包,且应用和其安装程序都必须经过签名,以便提交到 Mac App Store。Mac App Store – Apps must have an installer package, and both the app and the installer must be signed, for submission to the Mac App Store.

本文档介绍如何使用 Visual Studio for Mac 和 Xcode设置 Apple 开发者帐户和对每个部署类型配置 Xamarin.Mac 项目。This document explains how to use Visual Studio for Mac and Xcode to setup a Apple Developer account and configure a Xamarin.Mac project for each deployment type.

Mac 开发人员计划Mac developer program

加入 Mac 开发人员计划时,开发人员可选择以个人或公司身份加入,如下方屏幕截图所示:When you join the Mac Developer Program the developer will be offered a choice to join as an Individual or a Company, as shown in the screenshot below:

Apple 开发人员门户The Apple Developer Portal

选择适合自身情况的正确注册类型。Choose the correct enrollment type for your situation.

备注

此处所作的选择会影响到在配置开发人员帐户时一些屏幕出现的方式。The choices made here will affect the way some screens appear when configuring a developer account. 本文档中的说明和屏幕截图适用于个人开发人员帐户。The descriptions and screenshots in this document are done from the perspective of an Individual developer account. 公司开发人员帐户中,部分选项仅团队管理员用户可用。In a Company, some options will only be available to Team Admin users.

证书和标识符Certificates and identifiers

本指南介绍如何创建发布 Xamarin.Mac 应用时所需的证书和标识符。This guide walks through creating the necessary Certificates and Identifiers that will be required to publish a Xamarin.Mac app.

创建配置文件Create provisioning profile

本指南介绍如何创建发布 Xamarin.Mac 应用所需的设置配置文件。This guide walks through creating the necessary Provisioning Profiles that will be required to publish a Xamarin.Mac app.

Mac 应用配置Mac app configuration

本指南介绍配置要发布的 Xamarin.Mac 应用。This guide walks through configuring a Xamarin.Mac app for publication.

使用开发人员 ID 签名Sign with Developer ID

本指南介绍使用开发人员 ID 对 Xamarin.Mac 应用进行签名,以便进行发布。This guide walks through signing a Xamarin.Mac app with a Developer ID for publication.

Mac App Store 捆绑Bundle for Mac App Store

本指南介绍将要发布的 Xamarin.Mac 应用捆绑到 Mac App Store。This guide walks through bundling a Xamarin.Mac app for publication to the Mac App Store.

上传到 Mac App StoreUpload to Mac App Store

本指南介绍将要发布的 Xamarin.Mac 应用上传到 Mac App Store。This guide walks through uploading a Xamarin.Mac app for publication to the Mac App Store.