diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index b03e56d397..c4b41152f4 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -35,6 +35,14 @@ { "source_path": "docs/ios/deployment/provision.md", "redirect_url": "/dotnet/maui/ios/deployment/publish-app-store" + }, + { + "source_path": "docs/macos/cli.md", + "redirect_url": "/dotnet/maui/mac-catalyst/cli" + }, + { + "source_path": "docs/macos/deployment/overview.md", + "redirect_url": "/dotnet/maui/mac-catalyst/deployment" } ] } diff --git a/docs/TOC.yml b/docs/TOC.yml index 90ca4e834c..829f5abf1b 100644 --- a/docs/TOC.yml +++ b/docs/TOC.yml @@ -54,7 +54,7 @@ - name: macOS items: - name: Build a Mac Catalyst app with .NET CLI - href: macos/cli.md + href: mac-catalyst/cli.md - name: Windows items: - name: How to set up Windows for debugging @@ -704,8 +704,18 @@ href: ios/deployment/publish-ad-hoc.md - name: Publish using the command line href: ios/deployment/publish-cli.md - - name: macOS - href: macos/deployment/overview.md + - name: Mac Catalyst + items: + - name: Overview + href: mac-catalyst/deployment/index.md + - name: Publish an unsigned app + href: mac-catalyst/deployment/publish-unsigned.md + - name: Publish for app store distribution + href: mac-catalyst/deployment/publish-app-store.md + - name: Publish outside the app store + href: mac-catalyst/deployment/publish-outside-app-store.md + - name: Publish for ad-hoc distribution + href: mac-catalyst/deployment/publish-ad-hoc.md - name: Windows items: - name: Overview diff --git a/docs/android/deployment/overview.md b/docs/android/deployment/overview.md index b449ade108..1ef59151c4 100644 --- a/docs/android/deployment/overview.md +++ b/docs/android/deployment/overview.md @@ -10,7 +10,7 @@ ms.date: 10/07/2022 > > - [Publish for Android](overview.md) > - [Publish for iOS](../../ios/deployment/index.md) -> - [Publish for macOS](../../macos/deployment/overview.md) +> - [Publish for macOS](../../mac-catalyst/deployment/index.md) > - [Publish for Windows](../../windows/deployment/overview.md) The final step in the development of a .NET MAUI app is to publish it. Publishing is the process of creating a package that contains the app and is ready for users to install on their devices. Packaging and deployment involve two essential tasks: diff --git a/docs/android/deployment/publish-cli.md b/docs/android/deployment/publish-cli.md index fbc693dde3..4cb9304685 100644 --- a/docs/android/deployment/publish-cli.md +++ b/docs/android/deployment/publish-cli.md @@ -10,7 +10,7 @@ ms.date: 03/17/2022 > > - [Publish for Android](publish-cli.md) > - [Publish for iOS](../../ios/deployment/index.md) -> - [Publish for macOS](../../macos/deployment/overview.md) +> - [Publish for macOS](../../mac-catalyst/deployment/index.md) > - [Publish for Windows](../../windows/deployment/publish-cli.md) When distributing your .NET Multi-platform App UI (.NET MAUI) app for Android, you generate an _apk_ (Android Package) or an _aab_ (Android App Bundle) file. The _apk_ is used for installing your app to an Android device, and the _aab_ is used to publish your app to an Android store. diff --git a/docs/deployment/index.md b/docs/deployment/index.md index 6834739e50..de24d440b6 100644 --- a/docs/deployment/index.md +++ b/docs/deployment/index.md @@ -32,9 +32,9 @@ When distributing a .NET MAUI app for iOS, you generate an *.ipa* file. An *.ipa On iOS, .NET MAUI apps run in a sandbox that provides a set of rules that limit access between the app and system resources or user data. Apple provides *capabilities*, also known as *app services*, as a means of extending functionality and widening the scope of what iOS apps can do. Capabilities are added to your app's provisioning profile, and are used when code signing your app. For more information, see [Capabilities](~/ios/capabilities.md). -## macOS +## Mac Catalyst -When distributing your .NET MAUI app for macOS, you generate an *.app* or a *.pkg* file. An *.app* file is a self-contained app that can be run without installation, whereas a *.pkg* is an app packaged in an installer. For more information, see [Publish a .NET MAUI app for macOS](~/macos/deployment/overview.md). +When distributing your .NET MAUI Mac Catalyst app, you generate an *.app* or a *.pkg* file. An *.app* file is a self-contained app that can be run without installation, whereas a *.pkg* is an app packaged in an installer. Distributing a .NET MAUI Mac Catalyst app requires that the app is provisioned using a provisioning profile. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. For more information about publishing an .NET MAUI Mac Catalyst app, see [Publish a .NET MAUI Mac Catalyst app](~/mac-catalyst/deployment/index.md). ## Windows diff --git a/docs/index.yml b/docs/index.yml index d35c11f0d8..0a8810f8f1 100644 --- a/docs/index.yml +++ b/docs/index.yml @@ -41,7 +41,7 @@ landingContent: - text: Build an iOS app with .NET CLI url: ios/cli.md - text: Build a Mac Catalyst app with .NET CLI - url: macos/cli.md + url: mac-catalyst/cli.md - text: Pair to Mac for iOS development url: ios/pair-to-mac.md - text: Remote iOS Simulator for Windows @@ -184,7 +184,7 @@ landingContent: url: android/deployment/overview.md - text: Publish iOS apps url: ios/deployment/index.md - - text: Publish macOS apps - url: macos/deployment/overview.md + - text: Publish Mac Catalyst apps + url: mac-catalyst/deployment/index.md - text: Publish Windows apps url: windows/deployment/overview.md diff --git a/docs/ios/apple-account-management.md b/docs/ios/apple-account-management.md index cd1cefe9b4..a84478d7b1 100644 --- a/docs/ios/apple-account-management.md +++ b/docs/ios/apple-account-management.md @@ -10,9 +10,9 @@ When developing a .NET Multi-platform App UI (.NET MAUI) iOS app it's essential The Apple account management interface in Visual Studio and Visual Studio for Mac enables you to add your Apple ID, and provides the ability to view information about development teams associated with the Apple ID, view signing certificates and provisioning profiles, create new signing certificates, and download existing provisioning profiles. -## Add an Apple developer account +## Add an Apple Developer Account -Before you begin, ensure that you've accepted any user license agreements in the [Apple Developer portal](https://developer.apple.com/account/) and [App Store Connect](https://appstoreconnect.apple.com/). +Before you begin, ensure that you've accepted any user license agreements in your [Apple Developer Account](https://developer.apple.com/account/) and [App Store Connect](https://appstoreconnect.apple.com/). If you have an individual Apple Developer account, as opposed to an enterprise account, you'll also need to create an App Store Connect API key. For information about creating an App Store Connect API key, see [Creating API Keys for App Store Connect API](https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api) on developer.apple.com. @@ -28,7 +28,7 @@ If you have an individual Apple Developer account, as opposed to an enterprise a :::image type="content" source="media/apple-account-management/vs/enterprise-account.png" alt-text="Add an Enterprise Apple Developer Account to Visual Studio."::: - Provided that your account details are valid, your Apple developer account will be added to Visual Studio. + Provided that your account details are valid, your Apple Developer Account will be added to Visual Studio. 1. To add an individual account, in the **Individual Account...** dialog, enter your App Store Connect API key data and click the **Add** button: @@ -38,7 +38,7 @@ If you have an individual Apple Developer account, as opposed to an enterprise a :::image type="content" source="media/apple-account-management/app-store-connect-details.png" lightbox="media/apple-account-management/app-store-connect-details-large.png" alt-text="Screenshot of Apple App Store Connect API details."::: - Provided that your account details are valid, your Apple developer account will be added to Visual Studio. + Provided that your account details are valid, your Apple Developer Account will be added to Visual Studio. 1. Once your account has been added successfully, you'll see your Apple ID and any teams that your Apple ID is part of: @@ -56,7 +56,7 @@ If you have an individual Apple Developer account, as opposed to an enterprise a :::image type="content" source="media/apple-account-management/vsmac/enterprise-account.png" alt-text="Add an Enterprise Apple Developer Account to Visual Studio for Mac."::: - Provided that your account details are valid, your Apple developer account will be added to Visual Studio. + Provided that your account details are valid, your Apple Developer Account will be added to Visual Studio. 1. To add an individual account, in the **Add Individual Account** dialog, enter your App Store Connect API key data and click the **Add** button: @@ -66,7 +66,7 @@ If you have an individual Apple Developer account, as opposed to an enterprise a :::image type="content" source="media/apple-account-management/app-store-connect-details.png" lightbox="media/apple-account-management/app-store-connect-details-large.png" alt-text="Screenshot of Apple App Store Connect API details."::: - Provided that your account details are valid, your Apple developer account will be added to Visual Studio. + Provided that your account details are valid, your Apple Developer Account will be added to Visual Studio. 1. Once your account has been added successfully, you'll see your Apple ID and any teams that your Apple ID is part of: @@ -79,7 +79,7 @@ If you have an individual Apple Developer account, as opposed to an enterprise a When you select an Apple Developer Account and a Team name, the **View Details...** button becomes enabled. Clicking it opens the team details dialog that displays a list of signing identifies and provisioning profiles that are installed on your machine. This dialog organizes the signing identities by type, with the **Status** column advising you if the certificate is: - **Valid**. The signing identity (both the certificate and the private key) is installed on your machine and has not expired. -- **Not in Keychain**. Apple holds a valid signing identity. To install this on your machine, it must be exported from another machine. You cannot download the signing identity from the Apple Developer portal as it doesn't contain the private key. +- **Not in Keychain**. Apple holds a valid signing identity. To install this on your machine, it must be exported from another machine. You cannot download the signing identity from your Apple Developer Account as it doesn't contain the private key. - **Private key is missing**. A certificate with no private key is installed in the keychain. - **Expired**. The certificate is expired. You should remove this from your keychain. @@ -91,4 +91,4 @@ If an option in the drop-down is greyed out and unselected, it means that you do ## Download provisioning profiles -The team details dialog also displays a list of all provisioning profiles associated with your Apple developer account. You can download all provisioning profiles to your local machine by clicking the **Download all Profiles** button. +The team details dialog also displays a list of all provisioning profiles associated with your Apple Developer Account. You can download all provisioning profiles to your local machine by clicking the **Download all Profiles** button. diff --git a/docs/ios/capabilities.md b/docs/ios/capabilities.md index e1b41d79d0..2e8344e2f1 100644 --- a/docs/ios/capabilities.md +++ b/docs/ios/capabilities.md @@ -8,7 +8,7 @@ ms.date: 01/13/2022 On iOS, .NET Multi-platform App UI (.NET MAUI) apps run in a sandbox that provides a set of rules that limit access between the app and system resources or user data. Apple provides *capabilities*, also known as *app services*, as a means of extending functionality and widening the scope of what iOS apps can do. Capabilities enable you to add a deeper integration with platform features to your app, such as integration with Siri. For more information about capabilities, see [Capabilities](https://developer.apple.com/documentation/xcode/capabilities) on developer.apple.com. -Capabilities are added to your app's provisioning profile, and are used when code signing your app. The provisioning profile must contain an App ID, that matches your app's bundle identifier, with the required capabilities enabled. The provisioning profile can be created automatically in Visual Studio or Visual Studio for Mac, or manually in the Apple developer portal. +Capabilities are added to your app's provisioning profile, and are used when code signing your app. The provisioning profile must contain an App ID, that matches your app's bundle identifier, with the required capabilities enabled. The provisioning profile can be created automatically in Visual Studio or Visual Studio for Mac, or manually in your Apple Developer Account. Capabilities are closely related to the concept of entitlements. They both request the expansion of the sandbox your app runs in, to give it additional capabilities. Entitlements are typically added when developing your app, while capabilities are typically added when code signing your app for distribution. However, when automatic provisioning is enabled, adding certain entitlements to your app will also update the capabilities for your app in its provisioning profile. For more information about entitlements, see [Entitlements](entitlements.md). @@ -64,11 +64,11 @@ In Visual Studio, all capabilities are added to your app's *Entitlements.plist* It may also be necessary to set privacy keys in *Info.plist*, for certain capabilities. -## Add capabilities with the Apple developer portal +## Add capabilities in your Apple Developer Account -All capabilities can be added to your app's provisioning profile in the Apple developer portal. This approach requires the use of manual provisioning, and works for all capabilities. For more information about manual provisioning, see [Manual provisioning for iOS apps](~/ios/device-provisioning/manual-provisioning.md). +All capabilities can be added to your app's provisioning profile in your Apple Developer Account. This approach requires the use of manual provisioning, and works for all capabilities. For more information about manual provisioning, see [Manual provisioning for iOS apps](~/ios/device-provisioning/manual-provisioning.md). -Adding a capability using Apple's developer portal is a multi-step process that requires creating an App ID, creating a provisioning profile, and enabling manual provisioning. +Adding a capability in your Apple Developer Account is a multi-step process that requires creating an App ID, creating a provisioning profile, and enabling manual provisioning. When adding a new capability to your provisioning profile, you should also add the same capability to your app's *Entitlements.plist* file and ensure that the app consumes this file. For more information, see [Entitlements](entitlements.md). It may also be necessary to set privacy keys in *Info.plist*, for certain capabilities. @@ -89,7 +89,7 @@ There are two types of App ID - explicit and wildcard. An explicit App ID is uni An explicit App ID can be created with the following steps: -1. In a web browser, go to the [Identifiers](https://developer.apple.com/account/resources/identifiers/list) section of Apple's developer portal and click the **+** button. +1. In a web browser, go to the [Identifiers](https://developer.apple.com/account/resources/identifiers/list) section of your Apple Developer Account and click the **+** button. 1. In the **Register a new identifier** page, select **App IDs** and click the **Continue** button. 1. In the **Register a new identifier** page, select the **App** type and click the **Continue** button. 1. In the **Register an App ID** page, provide a **Description** and set the **Bundle ID** to **Explicit**. Then, enter an App ID in the format `com.domainname.myid`: @@ -101,7 +101,7 @@ An explicit App ID can be created with the following steps: :::image type="content" source="media/capabilities/enable-capabilities.png" alt-text="Screenshot of enabled capabilities."::: 1. In the **Register an App ID** page, click the **Continue** button. -1. In the **Confirm your App ID** page, review the information and then click the **Register** button. Provided that your App ID successfully registers, you'll be returned to the Identifiers section of Apple's developer portal. +1. In the **Confirm your App ID** page, review the information and then click the **Register** button. Provided that your App ID successfully registers, you'll be returned to the Identifiers section of your Apple Developer Account. 1. In the **Identifiers** page, click on the App ID you just created. 1. In the **Edit your App ID Configuration** page, any of your enabled capabilities that require additional setup will have a **Configure** button: @@ -111,11 +111,11 @@ An explicit App ID can be created with the following steps: ### Create a provisioning profile -Once you've created an App ID you must create a provisioning profile for the App ID. This requires you to have previously created a signing certificate and added a device to Apple's developer portal. For more information, see [Create a signing certificate](~/ios/device-provisioning/manual-provisioning.md#create-a-signing-certificate) and [Add a device](~/ios/device-provisioning/manual-provisioning.md#add-a-device). +Once you've created an App ID you must create a provisioning profile for the App ID. This requires you to have previously created a signing certificate and added a device to your Apple Developer Account. For more information, see [Create a signing certificate](~/ios/device-provisioning/manual-provisioning.md#create-a-signing-certificate) and [Add a device](~/ios/device-provisioning/manual-provisioning.md#add-a-device). A provisioning profile can be created with the following steps: -1. In a web browser, go to the [Profiles](https://developer.apple.com/account/resources/profiles/list) section of Apple's developer portal and click the **+** button. +1. In a web browser, go to the [Profiles](https://developer.apple.com/account/resources/profiles/list) section of your Apple Developer Account and click the **+** button. 1. In the **Register a New Provisioning Profile** page, in the **Development** section select **iOS App Development** (or a distribution profile type from the **Distribution** section), and click the **Continue** button: :::image type="content" source="media/capabilities/provisioning-profile-ios.png" alt-text="Screenshot of creating a provisioning profile for iOS app development."::: @@ -147,7 +147,7 @@ Once you've created a provisioning profile it must be downloaded by Visual Studi The following list details the common issues that can cause issues when developing a .NET MAUI iOS app that uses capabilities: -- Ensure that the correct App ID has been created and registered in the **Identifiers** section of Apple's developer portal. +- Ensure that the correct App ID has been created and registered in the **Identifiers** section of your Apple Developer Account. - Ensure that the capability has been added to the App ID and that the capability is configured using the correct values. - Ensure that the provisioning profile has been installed on your development machine and that the app's *Info.plist* file is using a bundle identifier that's identical to your App ID. - Ensure that the app's *Entitlements.plist* file has the correct entitlements enabled. diff --git a/docs/ios/deployment/index.md b/docs/ios/deployment/index.md index 2c65368093..b8e81ba424 100644 --- a/docs/ios/deployment/index.md +++ b/docs/ios/deployment/index.md @@ -10,7 +10,7 @@ ms.date: 02/24/2023 > > - [Publish for Android](../../android/deployment/overview.md) > - [Publish for iOS](index.md) -> - [Publish for macOS](../../macos/deployment/overview.md) +> - [Publish for macOS](../../mac-catalyst/deployment/index.md) > - [Publish for Windows](../../windows/deployment/overview.md) Once a .NET Multi-platform App UI (.NET MAUI) iOS app has been developed and tested, it can be packaged for distribution as an *.ipa* file. An *.ipa* file is an iOS app archive file that stores an iOS app. The following diagram shows the steps required to produce the app package for distribution: @@ -33,7 +33,7 @@ Apple offers two developer program options: Apple provides multiple approaches for distributing an iOS app: -- *App Store*. This is the main approach for distributing iOS apps to users. Apps are submitted to the App Store through a portal called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this portal. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the App Store require approval from Apple. For more information, see [Publish an iOS app for App Store distribution](publish-app-store.md). +- *App Store*. This is the main approach for distributing iOS apps to users. Apps are submitted to the App Store through on online tool called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this tool. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the App Store require approval from Apple. For more information, see [Publish an iOS app for App Store distribution](publish-app-store.md). - *In-house*. This distribution mechanism is also known as enterprise distribution. It enables members of the Apple Developer Enterprise Program to distribute apps internally to other members of the same organization. This has the advantage of not requiring an App Store review, and has no limit on the number of devices on which an app can be installed. However, members of the Apple Developer Enterprise Program don't have access to App Store Connect, and therefore the licensee is responsible for distributing the app. For more information, see [Publish an iOS app for in-house distribution](publish-in-house.md). - *Ad-hoc*. iOS apps can be user-tested via ad-hoc distribution, which is available for the Apple Developer Program and the Apple Developer Enterprise Program. It allows an app to be deployed on up to 100 devices, for testing. A use case for ad-hoc distribution is distribution within a company when App Store Connect is not an option. For more information, see [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md). - *Custom apps for business*. Apple allows custom distribution of apps to businesses and education. For more information, see [Distributing Custom Apps](https://developer.apple.com/custom-apps/) on developer.apple.com and [Apple Business Manager User Guide](https://support.apple.com/guide/apple-business-manager/welcome/web) on support.apple.com. diff --git a/docs/ios/deployment/publish-ad-hoc.md b/docs/ios/deployment/publish-ad-hoc.md index cc98d157b3..4ff2f984d4 100644 --- a/docs/ios/deployment/publish-ad-hoc.md +++ b/docs/ios/deployment/publish-ad-hoc.md @@ -8,16 +8,16 @@ ms.date: 02/24/2023 Ad-hoc distribution is primarily used for testing apps within a wide group of people, and is available for the Apple Developer Program and the Apple Developer Enterprise Program. Another use case for ad-hoc distribution is distribution within a company when App Store Connect isn't an option. -Ad-hoc distribution has the advantage of not requiring App Store approval, with apps being installed with [Apple Configurator](https://apps.apple.com/app/id1037126344). However, it's limited to 100 devices per membership year, for both development and distribution, and the devices must be added to Apple's developer portal. +Ad-hoc distribution has the advantage of not requiring App Store approval, with apps being installed with [Apple Configurator](https://apps.apple.com/app/id1037126344). However, it's limited to 100 devices per membership year, for both development and distribution, and the devices must be added to your Apple Developer Account. Distributing an iOS app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. -To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. An ad-hoc distribution provisioning profile contains an App ID, a distribution certificate, and a list of the devices that can install the app. You can use the same App ID that you used when deploying your app to a device for testing. However, you will need to create a distribution certificate to identify yourself or your organization, if you don't already have one. +To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. An ad-hoc distribution provisioning profile contains an App ID, a distribution certificate, and a list of the devices that can install the app. You can use the same App ID that you used when deploying your app to a device for testing. However, you'll need to create a distribution certificate to identify yourself or your organization, if you don't already have one. The process for creating an ad-hoc distribution provisioning profile is as follows: 1. Create a distribution certificate. For more information, see [Create a distribution certificate](#create-a-distribution-certificate). -1. Add devices to Apple's developer portal. For more information, see [Add a device](#add-a-device). +1. Add devices to your Apple Developer Account. For more information, see [Add a device](#add-a-device). 1. Create an App ID. For more information, see [Create an App ID](#create-an-app-id). 1. Create a provisioning profile. For more information, see [Create a provisioning profile](#create-a-provisioning-profile). diff --git a/docs/ios/deployment/publish-app-store.md b/docs/ios/deployment/publish-app-store.md index 730b330d93..4dbbecd627 100644 --- a/docs/ios/deployment/publish-app-store.md +++ b/docs/ios/deployment/publish-app-store.md @@ -6,11 +6,11 @@ ms.date: 02/24/2023 # Publish an iOS app for App Store distribution -The most common approach to distributing iOS apps to users is through the App Store. Apps are submitted to the App Store through a portal called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this portal. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the App Store require approval from Apple. +The most common approach to distributing iOS apps to users is through the App Store. Apps are submitted to the App Store through an online tool called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this tool. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the App Store require approval from Apple. Distributing an iOS app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. -To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. A distribution provisioning profile contains an App ID and a distribution certificate. You can use the same App ID that you used when deploying your app to a device for testing. However, you will need to create a distribution certificate to identify yourself or your organization, if you don't already have one. +To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. A distribution provisioning profile contains an App ID and a distribution certificate. You can use the same App ID that you used when deploying your app to a device for testing. However, you'll need to create a distribution certificate to identify yourself or your organization, if you don't already have one. The process for creating an App Store distribution provisioning profile is as follows: diff --git a/docs/ios/deployment/publish-cli.md b/docs/ios/deployment/publish-cli.md index 52e1fd048f..80f42b97a0 100644 --- a/docs/ios/deployment/publish-cli.md +++ b/docs/ios/deployment/publish-cli.md @@ -41,7 +41,7 @@ For example, use the following command to build and sign an *.ipa* on a Mac: dotnet publish -f:net7.0-ios -c:Release /p:ArchiveOnBuild=true /p:RuntimeIdentifier=ios-arm64 /p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" /p:CodesignProvision="MyMauiApp" ``` -Publishing builds and signs the app, and then copies the *.ipa* to the *bin/Release/net7.0-ios/ios-arm64/publish/* folder. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md) +Publishing builds and signs the app, and then copies the *.ipa* to the *bin/Release/net7.0-ios/ios-arm64/publish/* folder. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md). For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish). diff --git a/docs/ios/deployment/publish-in-house.md b/docs/ios/deployment/publish-in-house.md index 486bb5648b..6b06ca950a 100644 --- a/docs/ios/deployment/publish-in-house.md +++ b/docs/ios/deployment/publish-in-house.md @@ -10,7 +10,7 @@ In-house distribution enables members of the Apple Developer Enterprise Program Distributing an iOS app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. -To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. An in-house distribution provisioning profile contains an App ID and a distribution certificate. You can use the same App ID that you used when deploying your app to a device for testing. However, you will need to create a distribution certificate to identify your organization, if you don't already have one. +To distribute a .NET Multi-platform App UI (.NET MAUI) iOS app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on an iOS device. An in-house distribution provisioning profile contains an App ID and a distribution certificate. You can use the same App ID that you used when deploying your app to a device for testing. However, you'll need to create a distribution certificate to identify your organization, if you don't already have one. The process for creating an in-house distribution provisioning profile is as follows: diff --git a/docs/ios/device-provisioning/automatic-provisioning.md b/docs/ios/device-provisioning/automatic-provisioning.md index fb97e3185f..8c527d3e41 100644 --- a/docs/ios/device-provisioning/automatic-provisioning.md +++ b/docs/ios/device-provisioning/automatic-provisioning.md @@ -6,16 +6,16 @@ ms.date: 11/28/2022 # Automatic provisioning for iOS apps -Automatic provisioning is the recommended approach for deploying a .NET Multi-platform App UI (.NET MAUI) iOS app to a device. With this approach, Visual Studio automatically creates and manages signing identifies, App IDs, and provisioning profiles. Before starting the automatic provisioning process, you should ensure that you've added your Apple developer account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). +Automatic provisioning is the recommended approach for deploying a .NET Multi-platform App UI (.NET MAUI) iOS app to a device. With this approach, Visual Studio automatically creates and manages signing identifies, App IDs, and provisioning profiles. Before starting the automatic provisioning process, you should ensure that you've added your Apple Developer Account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). -Once you've added your Apple developer account to Visual Studio, you can use any associated team. Certificates, App IDs, and profiles can then be created against the team. The team ID is also used to create a prefix for the App ID that will be included in the provisioning profile, which enables Apple to verify that an app can be deployed to a device. +Once you've added your Apple Developer Account to Visual Studio, you can use any associated team. Certificates, App IDs, and profiles can then be created against the team. The team ID is also used to create a prefix for the App ID that will be included in the provisioning profile, which enables Apple to verify that an app can be deployed to a device. > [!IMPORTANT] -> Before you begin, ensure that you've accepted any user license agreements in the [Apple Developer portal](https://developer.apple.com/account/) and [App Store Connect](https://appstoreconnect.apple.com/). +> Before you begin, ensure that you've accepted any user license agreements in your [Apple Developer Account](https://developer.apple.com/account/) and [App Store Connect](https://appstoreconnect.apple.com/). ## Enable automatic provisioning -Once you've added your Apple developer account to Visual Studio, you need to enable automatic provisioning for the .NET MAUI app project. +Once you've added your Apple Developer Account to Visual Studio, you need to enable automatic provisioning for the .NET MAUI app project. # [Visual Studio](#tab/vs) @@ -61,13 +61,13 @@ Once you've added your Apple developer account to Visual Studio, you need to ena When automatic provisioning is enabled, Visual Studio will re-run the automatic provisioning process if necessary when any of the following occur: -- An iOS device is plugged into your Mac. This automatically checks to see if the device is registered on the Apple's developer portal. If it isn't, it will add it and generate a new provisioning profile that contains it. +- An iOS device is plugged into your Mac. This automatically checks to see if the device is registered in your Apple Developer Account. If it isn't, it will add it and generate a new provisioning profile that contains it. - The Bundle ID of your app is changed. This updates the App ID and so a new provisioning profile containing this App ID is created. - A supported capability is enabled in the *Entitlements.plist* file. This capability will be added to the App ID and a new provisioning profile with the updated App ID is generated. Not all capabilities are currently supported. For more information about capabilities, see [Capabilities](~/ios/capabilities.md). ## Wildcard App IDs -By default automatic provisioning will attempt to create and use a wildcard App ID and provisioning profile instead of an explicit App ID based on the app's bundle identifier. Wildcard App IDs reduce the number of profiles and IDs to maintain in the Apple developer portal. For more information about wildcard App IDs, see [Create a development provisioning profile](manual-provisioning.md#create-a-development-provisioning-profile). +By default automatic provisioning will attempt to create and use a wildcard App ID and provisioning profile instead of an explicit App ID based on the app's bundle identifier. Wildcard App IDs reduce the number of profiles and IDs to maintain in your Apple Developer Account. For more information about wildcard App IDs, see [Create a development provisioning profile](manual-provisioning.md#create-a-development-provisioning-profile). In some cases, an app's entitlements require an explicit App ID. The following entitlements do not support wildcard App IDs: @@ -89,7 +89,7 @@ If your app uses one of these entitlements, Visual Studio will attempt to create ## Troubleshoot -It may take several hours for a new Apple developer account to be approved. You won't be able to enable automatic provisioning until the account has been approved. +It may take several hours for a new Apple Developer Account to be approved. You won't be able to enable automatic provisioning until the account has been approved. If the automatic provisioning process fails with the error message `Authentication Service Is Unavailable`, sign in to either [App Store Connect](https://appstoreconnect.apple.com/) or your [Apple Developer account](https://appleid.apple.com/account) to check that you have accepted the latest service agreements. diff --git a/docs/ios/device-provisioning/index.md b/docs/ios/device-provisioning/index.md index 5599c98a61..20e5bc48bd 100644 --- a/docs/ios/device-provisioning/index.md +++ b/docs/ios/device-provisioning/index.md @@ -32,4 +32,4 @@ When deploying an app to a device, a provisioning profile is also installed on t There are two approaches to provisioning your iOS device: - **Automatically**. Signing identities, App IDs, and provisioning profiles will be automatically created and managed by Visual Studio. This is the recommended approach for provisioning an iOS device. For more information, see [Automatic provisioning](automatic-provisioning.md). -- **Manually**. Signing identities, App IDs, and provisioning profiles will be created and managed in the [Apple Developer portal](https://developer.apple.com/account). For more information, see [Manual provisioning](manual-provisioning.md). +- **Manually**. Signing identities, App IDs, and provisioning profiles will be created and managed in your [Apple Developer Account](https://developer.apple.com/account). For more information, see [Manual provisioning](manual-provisioning.md). diff --git a/docs/ios/device-provisioning/manual-provisioning.md b/docs/ios/device-provisioning/manual-provisioning.md index c8006fd4eb..65c11d2fde 100644 --- a/docs/ios/device-provisioning/manual-provisioning.md +++ b/docs/ios/device-provisioning/manual-provisioning.md @@ -6,9 +6,9 @@ ms.date: 11/29/2022 # Manual provisioning for iOS apps -Manual provisioning is an approach for deploying a .NET Multi-platform App UI (.NET MAUI) iOS app to a device, where you have full control over the provisioning data that gets created. With this approach, you manually create and manage signing identities, App IDs, and provisioning profiles in the [Apple Developer portal](https://developer.apple.com/account), and then have to download this data into Visual Studio. Before starting the manual provisioning process, you should ensure that you've added your Apple developer account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). +Manual provisioning is an approach for deploying a .NET Multi-platform App UI (.NET MAUI) iOS app to a device, where you have full control over the provisioning data that gets created. With this approach, you manually create and manage signing identities, App IDs, and provisioning profiles in your [Apple Developer Account](https://developer.apple.com/account), and then have to download this data into Visual Studio. Before starting the manual provisioning process, you should ensure that you've added your Apple Developer Account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). -Development teams, certificates, and profiles can all be managed by accessing the [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/certificates/list) section of Apple's developer portal. +Development teams, certificates, and profiles can all be managed by accessing the [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/certificates/list) section of your Apple Developer Account. ## Create a signing certificate @@ -19,7 +19,7 @@ Development certificates and their associated keys establish your identity with > [!IMPORTANT] > You can only have two iOS development certificates at any one time. If you need to create any more, you will need to revoke an existing one. Any machine using a revoked certificate will not be able to sign their app. -Once you've added your Apple developer account to Visual Studio, you need to generate a signing certificate. +Once you've added your Apple Developer Account to Visual Studio, you need to generate a signing certificate. # [Visual Studio](#tab/vs) @@ -44,7 +44,7 @@ Once you've added your Apple developer account to Visual Studio, you need to gen ### Understanding certificate key pairs -A developer profile contains certificates, their associated keys, and any provisioning profiles associated with the Apple developer account. There are two versions of a developer profile—one exists in Apple's developer portal, and the other lives on a local machine. The difference between the two is the type of keys they contain: the profile on Apple's developer portal contains all of the public keys associated with your certificates, while the copy on your local machine contains all of the private keys. For certificates to be valid, the key pairs must match. +A developer profile contains certificates, their associated keys, and any provisioning profiles associated with the Apple Developer Account. There are two versions of a developer profile—one exists in your Apple Developer Account, and the other lives on a local machine. The difference between the two is the type of keys they contain: the profile in your Apple Developer Account contains all of the public keys associated with your certificates, while the copy on your local machine contains all of the private keys. For certificates to be valid, the key pairs must match. > [!WARNING] > Losing the certificate and associated keys can be incredibly disruptive, as it will require revoking existing certificates and re-provisioning any associated devices. After successfully setting up a development certificate, export a backup copy and store it in a safe place. For more information on how to do this, see [Export developer accounts](https://help.apple.com/xcode/mac/current/#/dev8a2822e0b) on help.apple.com. @@ -57,7 +57,7 @@ After creating a signing certificate, you must set up a development provisioning ### Create an App ID -After adding a device to Apple's developer portal, you should create an *App ID*. An App ID is similar to a reverse-DNS string, that uniquely identifies an app, and should be identical to the bundle identifier for your app. +After adding a device to your Apple Developer Account, you should create an *App ID*. An App ID is similar to a reverse-DNS string, that uniquely identifies an app, and should be identical to the bundle identifier for your app. > [!IMPORTANT] @@ -77,7 +77,7 @@ The recommended approach is to create a *wildcard App ID*, unless your app uses A wildcard App ID can be created with the following steps: -1. In a web browser, go to the [Identifiers](https://developer.apple.com/account/resources/identifiers/list) section of Apple's developer portal and click the **+** button. +1. In a web browser, go to the [Identifiers](https://developer.apple.com/account/resources/identifiers/list) section of your Apple Developer Account and click the **+** button. 1. In the **Register a new identifier** page, select **App IDs** and click the **Continue** button. 1. In the **Register a new identifier** page, select the **App** type and click the **Continue** button. 1. In the **Register an App ID** page, provide a **Description** and set the **Bundle ID** to **Wildcard**. Then, enter an App ID in the format `com.domainname.*` and click the **Continue** button: @@ -92,7 +92,7 @@ Once the App ID has been created, you should create a development provisioning p A development provisioning profile can be created with the following steps: -1. In a web browser, go to the [Profiles](https://developer.apple.com/account/resources/profiles/list) section of Apple's developer portal and click the **+** button. +1. In a web browser, go to the [Profiles](https://developer.apple.com/account/resources/profiles/list) section of your Apple Developer Account and click the **+** button. 1. In the **Register a New Provisioning Profile** page, in the **Development** section, select **iOS App Development** and click the **Continue** button: :::image type="content" source="media/manual-provisioning/provisioning-profile-ios.png" alt-text="Screenshot of creating a provisioning profile for iOS app development."::: @@ -117,7 +117,7 @@ A development provisioning profile can be created with the following steps: ## Download provisioning profiles in Visual Studio -After creating a development provisioning profile in Apple's developer portal, Visual Studio can download it so that it's available for signing your app. +After creating a development provisioning profile in your Apple Developer Account, Visual Studio can download it so that it's available for signing your app. # [Visual Studio](#tab/vs) diff --git a/docs/ios/entitlements.md b/docs/ios/entitlements.md index eaf041d1a0..c476137adc 100644 --- a/docs/ios/entitlements.md +++ b/docs/ios/entitlements.md @@ -8,7 +8,7 @@ ms.date: 01/13/2022 On iOS, .NET Multi-platform App UI (.NET MAUI) apps run in a sandbox that provides a set of rules that limit access between the app and system resources or user data. *Entitlements* are used to request the expansion of the sandbox to give your app additional capabilities, such as integration with Siri. Any entitlements used by your app must be specified in the app's *Entitlements.plist* file. For more information about entitlements, see [Entitlements](https://developer.apple.com/documentation/bundleresources/entitlements) on developer.apple.com. -In addition to specifying entitlements, the *Entitlements.plist* file is used to code sign the app. When code signing your app, the entitlements file is combined with information from your Apple developer account, and other project information to apply a final set of entitlements to your app. +In addition to specifying entitlements, the *Entitlements.plist* file is used to code sign the app. When code signing your app, the entitlements file is combined with information from your Apple Developer Account, and other project information to apply a final set of entitlements to your app. Entitlements are closely related to the concept of capabilities. They both request the expansion of the sandbox your app runs in, to give it additional capabilities. Entitlements are typically added when developing your app, while capabilities are typically added when code signing your app for distribution. However, when automatic provisioning is enabled, adding certain entitlements to your app will also update the capabilities for your app in its provisioning profile. For more information, see [Add capabilities with Visual Studio](~/ios/capabilities.md#add-capabilities-with-visual-studio). diff --git a/docs/ios/includes/add-a-device.md b/docs/ios/includes/add-a-device.md index 617669a257..ffdccae14d 100644 --- a/docs/ios/includes/add-a-device.md +++ b/docs/ios/includes/add-a-device.md @@ -5,7 +5,7 @@ ms.topic: include ### Add a device -When creating a provisioning profile, the profile must include which devices can run the app. Before selecting a device to be added to a provisioning profile you must first add the device to Apple's developer portal. This can be achieved with the following steps: +When creating a provisioning profile, the profile must include which devices can run the app. Before selecting a device to be added to a provisioning profile you must first add the device to your Apple Developer Account. This can be achieved with the following steps: 1. Connect the device to be provisioned to your local Mac with a USB cable. 1. Open Xcode, and navigate to **Window > Devices and Simulators**. @@ -14,7 +14,7 @@ When creating a provisioning profile, the profile must include which devices can :::image type="content" source="../device-provisioning/media/manual-provisioning/xcode-devices.png" alt-text="Xcode devices and simulator window with the iOS identifier string location highlighted."::: -1. In a web browser, go to the [Devices](https://developer.apple.com/account/resources/devices/list) section of Apple's developer portal and click the **+** button. +1. In a web browser, go to the [Devices](https://developer.apple.com/account/resources/devices/list) section of your Apple Developer Account and click the **+** button. 1. In the **Register a New Device** page, set the correct **Platform** and provide a name for the new device. Then paste the identifier from the clipboard into the **Device ID (UDID)** field, and click the **Continue** button: :::image type="content" source="../device-provisioning/media/manual-provisioning/add-device.png" alt-text="Register a device by naming it and entering its unique device identifier."::: diff --git a/docs/ios/includes/app-id.md b/docs/ios/includes/app-id.md index 241ef93ab5..4043985bc9 100644 --- a/docs/ios/includes/app-id.md +++ b/docs/ios/includes/app-id.md @@ -10,7 +10,7 @@ An App ID is required to identify the app that you are distributing. An App ID i There are two types of App ID: - Wildcard. A wildcard App ID allows you to use a single App ID to match multiple apps, and typically takes the form `com.domainname.*`. A wildcard App ID can be used to distribute multiple apps, and should be used for apps that do not enable app-specific capabilities. -- Explicit. An explicit App ID is unique to a single app, and typically takes the form `com.domainname.myid`. An explicit App ID allows the distribution of one app, with a matching bundle identifier.. Explicit App IDs are typically used for apps that enable app-specific capabilities such as Apple Pay, or Game Center. For more information about capabilities, see [Capabilities](~/ios/capabilities.md). +- Explicit. An explicit App ID is unique to a single app, and typically takes the form `com.domainname.myid`. An explicit App ID allows the distribution of one app, with a matching bundle identifier. Explicit App IDs are typically used for apps that enable app-specific capabilities such as Apple Pay, or Game Center. For more information about capabilities, see [Capabilities](~/ios/capabilities.md). To create a new App ID: diff --git a/docs/ios/includes/distribution-certificate.md b/docs/ios/includes/distribution-certificate.md index ba4c0c0c17..9af7d51dbf 100644 --- a/docs/ios/includes/distribution-certificate.md +++ b/docs/ios/includes/distribution-certificate.md @@ -5,7 +5,7 @@ ms.topic: include ## Create a distribution certificate -A distribution certificate is used to confirm your identity. Before creating a distribution certificate, you should ensure that you've added your Apple developer account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). +A distribution certificate is used to confirm your identity. Before creating a distribution certificate, you should ensure that you've added your Apple Developer Account to Visual Studio. For more information, see [Apple account management](~/ios/apple-account-management.md). You only need to create a distribution certificate if you don't already one. The distribution certificate must be created using the Apple ID for your Apple Developer Account. @@ -34,7 +34,7 @@ To create a distribution certificate: ### Understanding certificate key pairs -A distribution profile contains certificates, their associated keys, and any provisioning profiles associated with the Apple developer account. There are two versions of a distribution profile — one exists in Apple's developer portal, and the other lives on a local machine. The difference between the two is the type of keys they contain: the profile on Apple's developer portal contains all of the public keys associated with your certificates, while the copy on your local machine contains all of the private keys. For certificates to be valid, the key pairs must match. +A distribution profile contains certificates, their associated keys, and any provisioning profiles associated with your Apple Developer Account. There are two versions of a distribution profile — one exists in your Apple Developer Account, and the other lives on a local machine. The difference between the two is the type of keys they contain: the profile in your Apple Developer Account contains all of the public keys associated with your certificates, while the copy on your local machine contains all of the private keys. For certificates to be valid, the key pairs must match. > [!WARNING] > Losing the certificate and associated keys can be incredibly disruptive, as it will require revoking existing certificates and re-creating provisioning profiles. diff --git a/docs/ios/includes/download-profiles.md b/docs/ios/includes/download-profiles.md index f9b9666ad5..71febbb5cc 100644 --- a/docs/ios/includes/download-profiles.md +++ b/docs/ios/includes/download-profiles.md @@ -5,7 +5,7 @@ ms.topic: include ## Download provisioning profiles in Visual Studio -After creating a distribution provisioning profile in Apple's developer portal, Visual Studio can download it so that it's available for signing your app. +After creating a distribution provisioning profile in your Apple Developer Account, Visual Studio can download it so that it's available for signing your app. # [Visual Studio](#tab/vs) diff --git a/docs/ios/includes/publish-vs.md b/docs/ios/includes/publish-vs.md index c0b9f8e615..b978000bea 100644 --- a/docs/ios/includes/publish-vs.md +++ b/docs/ios/includes/publish-vs.md @@ -17,7 +17,7 @@ ms.topic: include :::image type="content" source="../deployment/media/publish/vs/bundle-signing.png" alt-text="Screenshot of bundle signing tab for iOS in Visual Studio."::: - These settings will ensure that Visual Studio will select the correct provisioning profile based on the bundle identifier in *Info.plist* (which is identical to the value of the **Application ID** property in your project file). Alternatively, set the **Signing identity** to the appropriate distribution certificate and **Provisioning profile** to the profile you created in the Apple developer portal. + These settings will ensure that Visual Studio will select the correct provisioning profile based on the bundle identifier in *Info.plist* (which is identical to the value of the **Application ID** property in your project file). Alternatively, set the **Signing identity** to the appropriate distribution certificate and **Provisioning profile** to the profile you created in your Apple Developer Account. 1. In **Solution Explorer**, right-click on your .NET MAUI app project and select **Publish...**: diff --git a/docs/ios/includes/publish-vsmac.md b/docs/ios/includes/publish-vsmac.md index 819494e544..409c0af7c7 100644 --- a/docs/ios/includes/publish-vsmac.md +++ b/docs/ios/includes/publish-vsmac.md @@ -15,7 +15,7 @@ ms.topic: include :::image type="content" source="../deployment/media/publish/vsmac/bundle-signing.png" alt-text="Screenshot of bundle signing tab for iOS in Visual Studio for Mac."::: - These settings will ensure that Visual Studio for Mac will select the correct provisioning profile based on the bundle identifier in *Info.plist* (which is identical to the value of the **Application ID** property in your project file). Alternatively, set the **Signing identity** to the appropriate distribution certificate and **Provisioning profile** to the profile you created in the Apple developer portal. + These settings will ensure that Visual Studio for Mac will select the correct provisioning profile based on the bundle identifier in *Info.plist* (which is identical to the value of the **Application ID** property in your project file). Alternatively, set the **Signing identity** to the appropriate distribution certificate and **Provisioning profile** to the profile you created in your Apple Developer Account. Select the **OK** button to close the **Project Properties** window. diff --git a/docs/macos/cli.md b/docs/mac-catalyst/cli.md similarity index 100% rename from docs/macos/cli.md rename to docs/mac-catalyst/cli.md diff --git a/docs/mac-catalyst/deployment/index.md b/docs/mac-catalyst/deployment/index.md new file mode 100644 index 0000000000..48a4e3aaed --- /dev/null +++ b/docs/mac-catalyst/deployment/index.md @@ -0,0 +1,43 @@ +--- +title: "Publish a .NET MAUI Mac Catalyst app" +description: "Learn about distribution approaches for .NET MAUI Mac Catalyst apps." +ms.date: 03/23/2023 +--- + +# Publish a .NET MAUI Mac Catalyst app + +> [!div class="op_single_selector"] +> +> - [Publish for Android](../../android/deployment/overview.md) +> - [Publish for iOS](../../ios/deployment/index.md +> - [Publish for macOS](index.md) +> - [Publish for Windows](../../windows/deployment/overview.md) + +Once a .NET Multi-platform App UI (.NET MAUI) Mac Catalyst app has been developed and tested, it can be packaged for distribution as an *.app* or a *.pkg* file. An *.app* file is a self-contained app that can be run without installation, whereas a *.pkg* is an app packaged in an installer. The following diagram shows the steps required to produce an app package for distribution: + +:::image type="content" source="media/maccat-distribution.png" alt-text="Steps required to prepare a .NET MAUI Mac Catalyst app for distribution." border="false"::: + +Publishing a .NET MAUI Mac Catalyst app builds on top of Apple's provisioning process, which requires you to have: + +- Created an Apple ID. For more information, see [Create Your Apple ID](https://appleid.apple.com/account). +- Enrolled your Apple ID in the Apple Developer Program, which you have to pay to join. Enrolling in the Apple Developer Program enables you to create a *provisioning profile*, which contains code signing information. +- A Mac on which you can build your app. + +Apple offers two developer program options: + +- *Apple Developer Program*. Regardless of whether you are an individual or represent an organization, the [Apple Developer Program](https://developer.apple.com/programs/) enables you to develop, test, and distribute apps. +- *Apple Developer Enterprise Program*, which is most suited to organizations that want to develop and distribute apps in-house only. Members of the [Apple Developer Enterprise Program](https://developer.apple.com/programs/enterprise/) do not have access to App Store Connect, and apps can't be published to the Mac App Store. + +> [!NOTE] +> To register for either of these programs, you must first have an [Apple ID](https://appleid.apple.com/). Then you can visit the [Apple Developer Program](https://developer.apple.com/programs/enroll/) to register for a program. + +Apple provides multiple approaches for distributing a Mac Catalyst app: + +- *Mac App Store*. This is the main approach for distributing Mac Catalyst apps to users. Apps are submitted to the Mac App Store through on online tool called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this tool. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the Mac App Store require approval from Apple. For more information, see [Publish a Mac Catalyst app for Mac App Store distribution](publish-app-store.md). +- *Outside the Mac App Store*. This distribution mechanism enables Mac Catalyst apps to be distributed outside the Mac App Store. It's available for the Apple Developer Program and the Apple Developer Enterprise Program, and enables your Mac Catalyst app to be downloaded from a location of your choosing. For more information, see [Publish a Mac Catalyst app for distribution outside the Mac App Store](publish-outside-app-store.md). +- *Ad-hoc*. Mac Catalyst apps can be user-tested via ad-hoc distribution, which is available for the Apple Developer Program and the Apple Developer Enterprise Program. It allows an app to be deployed on up to 100 devices, for testing. For more information, see [Publish a Mac Catalyst app for ad-hoc distribution](publish-ad-hoc.md). + +All approaches require that apps are provisioned using an appropriate *provisioning profile*. Provisioning profiles contain code signing and app identity information, as well as the intended distribution mechanism. For ad-hoc distribution, they also contain information about the devices the app can be deployed to. In addition, Mac Catalyst apps that are distributed outside the Mac App Store must be notarized by Apple. + +> [!IMPORTANT] +> When distributing a Blazor Hybrid app, the host platform must have a WebView. For more information, see [Keep the Web View current in deployed Blazor Hybrid apps](/aspnet/core/blazor/hybrid/security/security-considerations#keep-the-web-view-current-in-deployed-apps). diff --git a/docs/mac-catalyst/deployment/media/certificate-assistant.png b/docs/mac-catalyst/deployment/media/certificate-assistant.png new file mode 100644 index 0000000000..f2c52330bb Binary files /dev/null and b/docs/mac-catalyst/deployment/media/certificate-assistant.png differ diff --git a/docs/mac-catalyst/deployment/media/codesign.png b/docs/mac-catalyst/deployment/media/codesign.png new file mode 100644 index 0000000000..1474fa4a81 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/codesign.png differ diff --git a/docs/mac-catalyst/deployment/media/create-app-id.png b/docs/mac-catalyst/deployment/media/create-app-id.png new file mode 100644 index 0000000000..b0d931d2ac Binary files /dev/null and b/docs/mac-catalyst/deployment/media/create-app-id.png differ diff --git a/docs/mac-catalyst/deployment/media/maccat-distribution.png b/docs/mac-catalyst/deployment/media/maccat-distribution.png new file mode 100644 index 0000000000..4194a44df4 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/maccat-distribution.png differ diff --git a/docs/mac-catalyst/deployment/media/productbuild.png b/docs/mac-catalyst/deployment/media/productbuild.png new file mode 100644 index 0000000000..7a93b856c2 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/productbuild.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/add-device.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/add-device.png new file mode 100644 index 0000000000..748006aa1e Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/add-device.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/apple-developer-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/apple-developer-certificate.png new file mode 100644 index 0000000000..aae8f4fd80 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/apple-developer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/choose-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/choose-certificate.png new file mode 100644 index 0000000000..cedd341952 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/choose-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/chosen-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/chosen-certificate.png new file mode 100644 index 0000000000..f00cfa6d07 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/chosen-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/download-developer-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/download-developer-certificate.png new file mode 100644 index 0000000000..f203322642 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/download-developer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/generate-profile.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/generate-profile.png new file mode 100644 index 0000000000..872f0a1681 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/generate-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/keychain-access-developer-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/keychain-access-developer-certificate.png new file mode 100644 index 0000000000..2ff20f2f0f Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/keychain-access-developer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/provisioning-profile-devices.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/provisioning-profile-devices.png new file mode 100644 index 0000000000..8b11695739 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/provisioning-profile-devices.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/register-provisioning-profile.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/register-provisioning-profile.png new file mode 100644 index 0000000000..de9e966b8c Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/register-provisioning-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-app-id.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-app-id.png new file mode 100644 index 0000000000..1743df6175 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-app-id.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-certificate.png b/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-certificate.png new file mode 100644 index 0000000000..636bd46952 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-ad-hoc/select-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/apple-distribution-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/apple-distribution-certificate.png new file mode 100644 index 0000000000..2cee9b14fb Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/apple-distribution-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/appstore-generate-profile.png b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-generate-profile.png new file mode 100644 index 0000000000..01a9a12530 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-generate-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/appstore-register-provisioning-profile.png b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-register-provisioning-profile.png new file mode 100644 index 0000000000..8a3bbe333a Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-register-provisioning-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/appstore-select-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-select-certificate.png new file mode 100644 index 0000000000..32c2632311 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/appstore-select-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/catalyst-capability.png b/docs/mac-catalyst/deployment/media/publish-app-store/catalyst-capability.png new file mode 100644 index 0000000000..98ed3eacfe Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/catalyst-capability.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/choose-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/choose-certificate.png new file mode 100644 index 0000000000..7aa242430a Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/choose-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/chosen-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/chosen-certificate.png new file mode 100644 index 0000000000..955e81b18a Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/chosen-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/configure-bundle-id.png b/docs/mac-catalyst/deployment/media/publish-app-store/configure-bundle-id.png new file mode 100644 index 0000000000..ac1c841d92 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/configure-bundle-id.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/download-distribution-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/download-distribution-certificate.png new file mode 100644 index 0000000000..0740b9e0fd Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/download-distribution-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/download-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/download-installer-certificate.png new file mode 100644 index 0000000000..7d40ce6895 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/download-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-distribution-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-distribution-certificate.png new file mode 100644 index 0000000000..392de7a4b0 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-distribution-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-installer-certificate.png new file mode 100644 index 0000000000..2610815071 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/keychain-access-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/mac-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-app-store/mac-installer-certificate.png new file mode 100644 index 0000000000..3e35cd502c Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/mac-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/modify-app-capabilities.png b/docs/mac-catalyst/deployment/media/publish-app-store/modify-app-capabilities.png new file mode 100644 index 0000000000..3f2861aadb Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/modify-app-capabilities.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/save-catalyst-configuration.png b/docs/mac-catalyst/deployment/media/publish-app-store/save-catalyst-configuration.png new file mode 100644 index 0000000000..2d1b64fdbd Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/save-catalyst-configuration.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-app-store/select-app-id.png b/docs/mac-catalyst/deployment/media/publish-app-store/select-app-id.png new file mode 100644 index 0000000000..1743df6175 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-app-store/select-app-id.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/choose-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/choose-certificate.png new file mode 100644 index 0000000000..1a39244011 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/choose-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/chosen-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/chosen-certificate.png new file mode 100644 index 0000000000..12f88908d1 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/chosen-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-application-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-application-certificate.png new file mode 100644 index 0000000000..957834e80f Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-application-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-installer-certificate.png new file mode 100644 index 0000000000..6f00d1e653 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/developer-id-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-developer-id-application-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-developer-id-application-certificate.png new file mode 100644 index 0000000000..3410e23b49 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-developer-id-application-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-installer-certificate.png new file mode 100644 index 0000000000..ce7ad49ae4 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/download-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/generate-profile.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/generate-profile.png new file mode 100644 index 0000000000..9d436fdc1c Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/generate-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-developer-id-application-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-developer-id-application-certificate.png new file mode 100644 index 0000000000..755ddd7fe5 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-developer-id-application-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-installer-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-installer-certificate.png new file mode 100644 index 0000000000..c184920162 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/keychain-access-installer-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/register-provisioning-profile.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/register-provisioning-profile.png new file mode 100644 index 0000000000..9f9a50df7a Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/register-provisioning-profile.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-app-id.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-app-id.png new file mode 100644 index 0000000000..f87f73241f Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-app-id.png differ diff --git a/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-certificate.png b/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-certificate.png new file mode 100644 index 0000000000..df9e4465a2 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/publish-outside-app-store/select-certificate.png differ diff --git a/docs/mac-catalyst/deployment/media/register-identifier.png b/docs/mac-catalyst/deployment/media/register-identifier.png new file mode 100644 index 0000000000..4a112db23e Binary files /dev/null and b/docs/mac-catalyst/deployment/media/register-identifier.png differ diff --git a/docs/mac-catalyst/deployment/media/specify-bundle-id.png b/docs/mac-catalyst/deployment/media/specify-bundle-id.png new file mode 100644 index 0000000000..3555fae1bf Binary files /dev/null and b/docs/mac-catalyst/deployment/media/specify-bundle-id.png differ diff --git a/docs/mac-catalyst/deployment/media/xcode-account-details.png b/docs/mac-catalyst/deployment/media/xcode-account-details.png new file mode 100644 index 0000000000..f37abfe281 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/xcode-account-details.png differ diff --git a/docs/mac-catalyst/deployment/media/xcode-account-type.png b/docs/mac-catalyst/deployment/media/xcode-account-type.png new file mode 100644 index 0000000000..d38e7883c6 Binary files /dev/null and b/docs/mac-catalyst/deployment/media/xcode-account-type.png differ diff --git a/docs/mac-catalyst/deployment/media/xcode-accounts-dialog.png b/docs/mac-catalyst/deployment/media/xcode-accounts-dialog.png new file mode 100644 index 0000000000..4e19d06bca Binary files /dev/null and b/docs/mac-catalyst/deployment/media/xcode-accounts-dialog.png differ diff --git a/docs/mac-catalyst/deployment/media/xcode-sign-in.png b/docs/mac-catalyst/deployment/media/xcode-sign-in.png new file mode 100644 index 0000000000..7b2032494a Binary files /dev/null and b/docs/mac-catalyst/deployment/media/xcode-sign-in.png differ diff --git a/docs/mac-catalyst/deployment/publish-ad-hoc.md b/docs/mac-catalyst/deployment/publish-ad-hoc.md new file mode 100644 index 0000000000..9863e260b6 --- /dev/null +++ b/docs/mac-catalyst/deployment/publish-ad-hoc.md @@ -0,0 +1,264 @@ +--- +title: "Publish a .NET MAUI Mac Catalyst app for ad-hoc distribution" +description: "Learn how to provision and publish a .NET MAUI Mac Catalyst app for ad-hoc distribution to a limited number of registered devices." +ms.date: 03/20/2023 +--- + +# Publish a Mac Catalyst app for ad-hoc distribution + +When distributing Mac Catalyst apps outside the Mac App Store, you can also choose to distribute your app to a limited number of users on registered devices. This is known as *ad-hoc* distribution, and is primarily used for testing apps within a group of people. However, it's limited to 100 devices per membership year, and the devices must be added to your Apple Developer Account. Members of the Apple Developer Program and the Apple Developer Enterprise Program can use this distribution approach. + +Distributing a Mac Catalyst app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. + +To distribute a .NET Multi-platform App UI (.NET MAUI) Mac Catalyst app outside the Mac App Store with ad-hoc distribution, you'll need to build a *development provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on Macs. An ad-hoc development provisioning profile contains an App ID, a development certificate, and a list of the devices that can install the app. You'll need to create a development certificate to identify yourself or your organization, if you don't already have one. + +The process for provisioning a .NET MAUI Mac Catalyst app for ad-hoc distribution is as follows: + +1. Create a certificate signing request. For more information, see [Create a certificate signing request](#create-a-certificate-signing-request). +1. Create a development certificate. For more information, see [Create a development certificate](#create-a-development-certificate). +1. Create an App ID. For more information, see [Create an App ID](#create-an-app-id). +1. Add devices to your Apple Developer Account. For more information, see [Add devices](#add-devices). +1. Create a provisioning profile. For more information, see [Create a provisioning profile](#create-a-provisioning-profile). +1. Download your provisioning profile. For more information, see [Download your provisioning profile in Xcode](#download-your-provisioning-profile-in-xcode). + +> [!IMPORTANT] +> This article shows provisioning for ad-hoc distribution using an Apple Developer Account that's part of the Apple Developer Program. It can also be used for an Apple Developer Account that's part of the Apple Developer Enterprise Program, as the steps required are largely identical. + +Then, once provisioning is complete you should prepare your app for publishing, and then publish it with the following process: + +1. Optionally add entitlements to your app. For more information, see [Add entitlements](#add-entitlements). +1. Update the app's *Info.plist* file. For more information, see [Update Info.plist](#update-infoplist). +1. Publish your app using the command line. For more information, see [Publish using the command line](#publish-using-the-command-line). + +[!INCLUDE [Create a certificate signing request](../includes/certificate-signing-request.md)] + +## Create a development certificate + +The CSR allows you to generate a development certificate, which confirms your identity. The development certificate must be created using the Apple ID for your Apple Developer Account: + +1. In a web browser, login to your [Apple Developer Account](https://developer.apple.com/account/). +1. In your Apple Developer Account, select the **Certificates, IDs & Profiles** tab. +1. On the **Certificates, Identifiers & Profiles** page, select the **+** button to create a new certificate. +1. On the **Create a New Certificate** page, select the **Apple Development** radio button before selecting the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/apple-developer-certificate.png" alt-text="Create an Apple development certificate."::: + +1. On the **Create a New Certificate** page, select **Choose File**: + + :::image type="content" source="media/publish-ad-hoc/choose-certificate.png" alt-text="Upload your certificate signing request."::: + +1. In the **Choose Files to Upload** dialog, select the certificate request file you previously created (a file with a `.certSigningRequest` file extension) and then select **Upload**. +1. On the **Create a New Certificate** page, select the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/chosen-certificate.png" alt-text="Continue to generate your distribution certificate."::: + +1. On the **Download Your Certificate** page, select the **Download** button: + + :::image type="content" source="media/publish-ad-hoc/download-developer-certificate.png" alt-text="Download your distribution certificate."::: + + The certificate file (a file with a `.cer` extension) will be downloaded to your chosen location. + +1. On your Mac, double-click the downloaded certificate file to install the certificate to your keychain. The certificate appears in the **My Certificates** category in **Keychain Access**, and begins with **Apple Development**: + + :::image type="content" source="media/publish-ad-hoc/keychain-access-developer-certificate.png" alt-text="Keychain Access showing development certificate."::: + + > [!NOTE] + > Make a note of the full certificate name in Keychain Access. It will be required when signing your app. + +## Create a development profile + +An ad-hoc development provisioning profile enables your .NET MAUI Mac Catalyst app to be digitally signed, so that it can be installed on specific Macs. An ad-hoc development provisioning profile contains an App ID, a development certificate, and a list of the devices that can install the app. + +[!INCLUDE [Create an App ID](../includes/create-app-id.md)] + +### Add devices + +When creating a provisioning profile for ad-hoc distribution, the profile must include which devices can run the app. Before selecting the devices to be added to the provisioning profile you must first add devices to your Apple Developer Account. This can be achieved with the following steps: + +1. Select the **Apple > About this Mac** menu item. +1. In the **Overview** tab, select the **System Report...** button. +1. In the **System Report**, select the **Hardware** expander to see the hardware overview. The report displays the universally unique identifier (UUID) as **Hardware UUID** in macOS 10.15 and later, or **Provisioning UDID** in macOS 11.0 and later. +1. Select the **Hardware UUID** or **Provisioning UDID** value and copy it to the clipboard. +1. In a web browser, go to the [Devices](https://developer.apple.com/account/resources/devices/list) section of your Apple Developer Account and click the **+** button. +1. In the **Register a New Device** page, set the **Platform** to **macOS** and provide a name for the new device. Then paste the identifier from the clipboard into the **Device ID (UUID)** field, and click the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/add-device.png" alt-text="Register a device by naming it and entering its unique device identifier."::: + +1. In the **Register a New Device** page, review the information and then click the **Register** button. + +Repeat the above steps for any Macs that you want to deploy your .NET MAUI Mac Catalyst app to using ad-hoc distribution. + +### Create a provisioning profile + +Once the App ID has been created, you should create a development provisioning profile. This profile enables the app to be digitally signed so that it can be installed on specific Macs. + +To create a provisioning profile for ad-hoc distribution: + +1. In the Certificates, Identifiers & Profiles page of your Apple Developer Account, select the **Profiles** tab. +1. In the **Profiles** tab, click the **+** button to create a new profile. +1. In the **Register a New Provisioning Profile** page, select the **macOS App Development** radio button before clicking the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/register-provisioning-profile.png" alt-text="Register a provisioning profile for ad-hoc distribution."::: + +1. In the **Generate a Provisioning Profile** page, select the **Mac Catalyst** radio button. Then, in the **App ID** drop-down, select the App ID that you previously created before clicking the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/select-app-id.png" alt-text="Select your App ID."::: + +1. In the **Generate a Provisioning Profile** page, select the check box that corresponds to your development certificate before clicking the **Continue** button: + + :::image type="content" source="media/publish-ad-hoc/select-certificate.png" alt-text="Select your development certificate."::: + +1. In the **Generate a Provisioning Profile** page, select the devices that the app will be installed on and then click the **Continue** button. + + :::image type="content" source="media/publish-ad-hoc/provisioning-profile-devices.png" alt-text="Screenshot of adding a device to a provisioning profile."::: + +1. In the **Generate a Provisioning Profile** page, enter a name for the provisioning profile before clicking the **Generate** button: + + :::image type="content" source="media/publish-ad-hoc/generate-profile.png" alt-text="Generate the provisioning profile."::: + + > [!NOTE] + > Make a note of the provisioning profile name, as it will be required when signing your app. + +1. In the **Generate a Provisioning Profile** page, optionally click the **Download** button to download your provisioning profile. + + > [!NOTE] + > It's not necessary to download your provisioning profile now. Instead, you will do this in Xcode. + +[!INCLUDE [Download certificates and provisioning profiles in Xcode](../includes/download-profiles.md)] + +## Add entitlements + +Apple's App Sandbox restricts access to system resources and user data in Mac apps, to contain damage if an app becomes compromised. It must be enabled for Mac Catalyst apps that are distributed through the Mac App Store, and can optionally be enabled for Mac Catalyst apps that are distributed outside the Mac App Store. + +[!INCLUDE [Add entitlements](../includes/add-entitlements.md)] + +## Update Info.plist + +Before distributing your app, you should update its *Info.plist* file with additional information. + +> [!NOTE] +> While it's not a requirement to update your app's *Info.plist* file when distributing it for testing, these updates will be required when distributing the final tested version of your app. Therefore, it's best practice to perform these updates. + +[!INCLUDE [Update Info.plist](../includes/update-info-plist.md)] + +### Declare your app's use of encryption + +If your app uses encryption, and you plan to distribute it outside the United States or Canada, it's subject to US export compliance requirements. You can provide information about you app's use of encryption in its *Info.plist* file. + +[!INCLUDE [Declare your app's use of encryption](../includes/encryption.md)] + +## Publish using the command line + +To publish your Mac Catalyst app from the command line on a Mac, open a terminal and navigate to the folder for your .NET MAUI app project. Run the `dotnet publish` command, providing the following parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `-f` or `--framework` | The target framework, which is `net6.0-maccatalyst` or `net7.0-maccatalyst`. | +| `-c` or `--configuration` | The build configuration, which is `Release`. | +| `/p:MtouchLink` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `/p:CreatePackage` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `/p:EnableCodeSigning` | Set to `true` so that code signing is enabled. | +| `/p:CodesignKey` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `/p:CodesignProvision` | The provisioning profile to use when signing the app bundle. | +| `/p:CodesignEntitlements` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `/p:UseHardenedRuntime` | Set to `true` to enable the hardened runtime, which is required for Mac Catalyst apps that are distributed outside of the Mac App Store. | + +> [!WARNING] +> Attempting to publish a .NET MAUI solution will result in the `dotnet publish` command attempting to publish each project in the solution individually, which can cause issues when you've added other project types to your solution. Therefore, the `dotnet publish` command should be scoped to your .NET MAUI app project. + +Additional build parameters can be specified on the command line, if they aren't provided in a `` in your project file. The following table lists some of the common parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `/p:ApplicationTitle` | The user-visible name for the app. | +| `/p:ApplicationId` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `/p:ApplicationVersion` | The version of the build that identifies an iteration of the app. | +| `/p:ApplicationDisplayVersion` | The version number of the app. | +| `/p:RuntimeIdentifier` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for all of these parameters don't have to be provided on the command line. They can also be provided in the project file. When a parameter is provided on the command line and in the project file, the command line parameter takes precedence. For more information about providing build properties in your project file, see [Define build properties in your project file](#define-build-properties-in-your-project-file). + +For example, use the following command to build and sign a *.pkg* on a Mac, for ad-hoc distribution to users on registered devices: + +```dotnetcli +dotnet publish -f:net7.0-maccatalyst -c:Release /p:MtouchLink=SdkOnly /p:CreatePackage=true /p:EnableCodeSigning=true /p:CodesignKey="Apple Development: John Smith (AY2GDE9QM7)" /p:CodesignProvision="MyMauiApp (Ad-hoc)" /p:CodesignEntitlements="Platforms\MacCatalyst\Entitlements.plist" /p:UseHardenedRuntime=true +``` + +Publishing builds, signs, and packages the app, and then copies the *.pkg* to the *bin/Release/net7.0-maccatalyst/publish/* folder. If you publish the app using only a single architecture, it will be published to the *bin/Release/net7.0-maccatalyst/{architecture}/publish/* folder. + +During the signing process it maybe necessary to enter your login password and allow `codesign` to run: + +:::image type="content" source="media/codesign.png" alt-text="Allow codesign to sign your app on your Mac."::: + +For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish). + + + +## Define build properties in your project file + +An alternative to specifying build parameters on the command line is to specify them in your project file in a ``. The following table lists some of the common build properties: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `` | The user-visible name for the app. | +| `` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `` | The version of the build that identifies an iteration of the app. | +| `` | The version number of the app. | +| `` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `` | The provisioning profile to use when signing the app bundle. | +| `` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `` | Set to `true` so that code signing is enabled. | +| `` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | +| `` | Set to `true` to enable the hardened runtime, which is required for Mac Catalyst apps that are distributed outside of the Mac App Store. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for these build properties don't have to be provided in the project file. They can also be provided on the command line when you publish the app. This enables you to omit specific values from your project file. + +The following example shows a typical property group for building and signing your Mac Catalyst app for ad-hoc distribution to users on registered devices: + +```xml + + SdkOnly + True + true + Apple Development: John Smith (AY2GDE9QM7) + MyMauiApp (Ad-hoc) + Platforms\MacCatalyst\Entitlements.plist + true + +``` + +This example `` adds a condition check, preventing the settings from being processed unless the condition check passes. The condition check looks for two items: + +1. The build configuration is set to `Release`. +1. The target framework is set to something containing the text `net7.0-maccatalyst`. +1. The platform is set to `AnyCPU`. + +If any of these conditions fail, the settings aren't processed. More importantly, the `` and `` settings aren't set, preventing the app from being signed. + +After adding the above property group, the app can be published from the command line on a Mac by opening a terminal and navigating to the folder for your .NET MAUI app project. Then, run the following command: + +```dotnetcli +dotnet build -f:net7.0-maccatalyst -c:Release +``` + +Publishing builds, signs, and packages the app, and then copies the *.pkg* to the *bin/Release/net7.0-maccatalyst/publish/* folder. + +## Distribute your app for testing + +The *.pkg* can be distributed to users on registered devices, where it can be run by double-clicking on the *.pkg* file to install the app. + +For information about safely opening apps on a Mac, see [Open apps safely on your Mac](https://support.apple.com/HT202491) on support.apple.com. + +## See also + +- [Distributing your app to registered devices](https://developer.apple.com/documentation/xcode/distributing-your-app-to-registered-devices) on developer.apple.com +- [Preparing your app for distribution](https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution) on developer.apple.com +- [Hardened Runtime](https://developer.apple.com/documentation/security/hardened_runtime) on developer.apple.com diff --git a/docs/mac-catalyst/deployment/publish-app-store.md b/docs/mac-catalyst/deployment/publish-app-store.md new file mode 100644 index 0000000000..88fd9511fb --- /dev/null +++ b/docs/mac-catalyst/deployment/publish-app-store.md @@ -0,0 +1,245 @@ +--- +title: "Publish a .NET MAUI Mac Catalyst app for Mac App Store distribution" +description: "Learn how to provision and publish a .NET MAUI Mac Catalyst app for Mac App Store distribution." +ms.date: 03/23/2023 +--- + +# Publish a Mac Catalyst app for Mac App Store distribution + +The most common approach to distributing Mac Catalyst apps to users is through the Mac App Store. Apps are submitted to the Mac App Store through an online tool called *App Store Connect*. Only developers who belong to the Apple Developer Program have access to this tool. Members of the Apple Developer Enterprise Program do not have access. All apps submitted to the Mac App Store require approval from Apple. + +Distributing a Mac Catalyst app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. + +To distribute a .NET Multi-platform App UI (.NET MAUI) Mac Catalyst app, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on Macs. A distribution provisioning profile contains an App ID and a distribution certificate. You'll need to create a distribution certificate to identify yourself or your organization, if you don't already have one. In addition, you'll need to create a Mac installer certificate to sign your app's installer package for submission to the Mac App Store. + +The process for provisioning a .NET MAUI Mac Catalyst app for distribution through the Mac App Store is as follows: + +1. Create a certificate signing request. For more information, see [Create a certificate signing request](#create-a-certificate-signing-request). +1. Create a distribution certificate. For more information, see [Create a distribution certificate](#create-a-distribution-certificate). +1. Create an installer certificate. For more information, see [Create an installer certificate](#create-an-installer-certificate). +1. Create an App ID. For more information, see [Create an App ID](#create-an-app-id). +1. Configure the App ID. For more information, see [Configure the App ID](#configure-the-app-id). +1. Create a provisioning profile. For more information, see [Create a provisioning profile](#create-a-provisioning-profile). +1. Download your provisioning profile. For more information, see [Download your provisioning profile in Xcode](#download-your-provisioning-profile-in-xcode). + +Then, once provisioning is complete you should prepare your app for publishing and then publish it with the following process: + +1. Add required entitlements to your app. For more information, see [Add entitlements](#add-entitlements). +1. Update the app's *Info.plist* file. For more information, see [Update Info.plist](#update-infoplist). +1. Publish your app using the command line. For more information, see [Publish using the command line](#publish-using-the-command-line). + +[!INCLUDE [Create a certificate signing request](../includes/certificate-signing-request.md)] + +## Create a distribution certificate + +The CSR allows you to generate a distribution certificate, which confirms your identity. The distribution certificate must be created using the Apple ID for your Apple Developer Account: + +1. In a web browser, login to your [Apple Developer Account](https://developer.apple.com/account/). +1. In your Apple Developer Account, select the **Certificates, IDs & Profiles** tab. +1. On the **Certificates, Identifiers & Profiles** page, select the **+** button to create a new certificate. +1. On the **Create a New Certificate** page, select the **Apple Distribution** radio button before selecting the **Continue** button: + + :::image type="content" source="media/publish-app-store/apple-distribution-certificate.png" alt-text="Create an Apple distribution certificate."::: + +1. On the **Create a New Certificate** page, select **Choose File**: + + :::image type="content" source="media/publish-app-store/choose-certificate.png" alt-text="Upload your certificate signing request for your Apple distribution certificate."::: + +1. In the **Choose Files to Upload** dialog, select the certificate request file you previously created (a file with a `.certSigningRequest` file extension) and then select **Upload**. +1. On the **Create a New Certificate** page, select the **Continue** button: + + :::image type="content" source="media/publish-app-store/chosen-certificate.png" alt-text="Continue to generate your distribution certificate."::: + +1. On the **Download Your Certificate** page, select the **Download** button: + + :::image type="content" source="media/publish-app-store/download-distribution-certificate.png" alt-text="Download your Apple distribution certificate."::: + + The certificate file (a file with a `.cer` extension) will be downloaded to your chosen location. + +1. On your Mac, double-click the downloaded certificate file to install the certificate to your keychain. The certificate appears in the **My Certificates** category in **Keychain Access**, and begins with **Apple Distribution**: + + :::image type="content" source="media/publish-app-store/keychain-access-distribution-certificate.png" alt-text="Keychain Access showing distribution certificate."::: + + > [!NOTE] + > Make a note of the full certificate name in Keychain Access. It will be required when signing your app. + +[!INCLUDE [Create an installer certificate](../includes/installer-certificate.md)] + +## Create a distribution profile + +A distribution provisioning profile enables your .NET MAUI Mac Catalyst app to be digitally signed for release, so that it can be installed on another Mac. A provisioning profile for Mac App Store distribution contains an App ID and a distribution certificate. + +[!INCLUDE [Create an App ID](../includes/create-app-id.md)] + +### Configure the App ID + +By default, a Mac Catalyst app uses the same bundle ID as an iOS app so you can offer the apps together as a universal purchase on the Mac App Store. Alternatively, you can specify a unique bundle ID to offer the app as a separate product. + +To configure the App ID: + +1. In your Apple Developer Account, navigate to **Certificates, IDs & Profiles**. +1. On the **Certificates, Identifiers & Profiles** page, select the **Identifiers** tab. +1. On the **Identifiers** page, select the App ID you just created. +1. On the **Edit your App ID Configuration** page, scroll to the bottom of the page and enable the **Mac Catalyst** capability check-box. Then select the **Configure** button: + + :::image type="content" source="media/publish-app-store/catalyst-capability.png" alt-text="Enable the Mac Catalyst capability."::: + +1. In the **Configure Bundle ID for Mac Catalyst** popup, select the **Use existing Mac App ID** radio button. In the **App ID** drop-down, select either the App ID for your Mac Catalyst's partner iOS app, or the the App ID you've created if you're offering the Mac Catalyst app as a separate product. Then, select the **Save button**: + + :::image type="content" source="media/publish-app-store/configure-bundle-id.png" alt-text="Configure the Bundle ID for Mac Catalyst."::: + +1. In the **Edit your App ID Configuration** page, select the **Save** button: + + :::image type="content" source="media/publish-app-store/save-catalyst-configuration.png" alt-text="Save the Mac Catalyst configuration."::: + +1. In the **Modify App Capabilities** popup, select the **Confirm** button: + + :::image type="content" source="media/publish-app-store/modify-app-capabilities.png" alt-text="Modify the app capabilities."::: + +### Create a provisioning profile + +Once the App ID has been created and configured, you should create a distribution provisioning profile. This profile enables the app to be digitally signed for release so that it can be installed on Macs. + +To create a provisioning profile for Mac App Store distribution: + +1. In the Certificates, Identifiers & Profiles page of your Apple Developer Account, select the **Profiles** tab. +1. In the **Profiles** tab, click the **+** button to create a new profile. +1. In the **Register a New Provisioning Profile** page, select the **Mac App Store** radio button before clicking the **Continue** button: + + :::image type="content" source="media/publish-app-store/appstore-register-provisioning-profile.png" alt-text="Register a provisioning profile for app store distribution."::: + +1. In the **Generate a Provisioning Profile** page, select the **Mac Catalyst** radio button. Then, in the **App ID** drop-down, select the App ID that you previously created before clicking the **Continue** button: + + :::image type="content" source="media/publish-app-store/select-app-id.png" alt-text="Select your App ID."::: + + > [!NOTE] + > The App ID will be in the **Enabled App IDs with an associated application identifier** section. + +1. In the **Generate a Provisioning Profile** page, select the radio button that corresponds to your distribution certificate before clicking the **Continue** button: + + :::image type="content" source="media/publish-app-store/appstore-select-certificate.png" alt-text="Select your distribution certificate."::: + +1. In the **Generate a Provisioning Profile** page, enter a name for the provisioning profile before clicking the **Generate** button: + + :::image type="content" source="media/publish-app-store/appstore-generate-profile.png" alt-text="Generate the provisioning profile."::: + + > [!NOTE] + > Make a note of the provisioning profile name, as it will be required when signing your app. + +1. In the **Generate a Provisioning Profile** page, optionally click the **Download** button to download your provisioning profile. + + > [!NOTE] + > It's not necessary to download your provisioning profile now. Instead, you will do this in Xcode. + +[!INCLUDE [Download certificates and provisioning profiles in Xcode](../includes/download-profiles.md)] + +## Add entitlements + +Apple's App Sandbox restricts access to system resources and user data in Mac apps, to contain damage if an app becomes compromised. It must be enabled for Mac Catalyst apps that are distributed through the Mac App Store. + +[!INCLUDE [Add entitlements](../includes/add-entitlements.md)] + +## Update Info.plist + +Before publishing your app, you should update its *Info.plist* file with additional information to ensure that the app can be uploaded to the Mac App Store, and to help ensure a smooth Mac App Store review process. + +[!INCLUDE [Update Info.plist](../includes/update-info-plist.md)] + +### Set the app category + +Categories help users discover your app on the Mac App Store. You can set the app's primary category in your *Info.plist* file: + +```xml +LSApplicationCategoryType +public.app-category.utilities +``` + +For more information, see [LSApplicationCategoryType](https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype) on developer.apple.com. + +> [!NOTE] +> Your app's primary category must match the primary category you set in App Store Connect. + +### Declare your app's use of encryption + +If your app uses encryption, and you plan to distribute it outside the United States or Canada, it's subject to US export compliance requirements. Every time you submit a version of your app to App Store Connect, it undergoes an encryption export regulations compliance review. To avoid App Store Connect asking you questions to guide you through the review, you can provide the required information in your app's *Info.plist* file. + +[!INCLUDE [Declare your app's use of encryption](../includes/encryption.md)] + +## Publish using the command line + +To publish your Mac Catalyst app from the command line on a Mac, open a terminal and navigate to the folder for your .NET MAUI app project. Run the `dotnet publish` command, providing the following parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `-f` or `--framework` | The target framework, which is `net6.0-maccatalyst` or `net7.0-maccatalyst`. | +| `-c` or `--configuration` | The build configuration, which is `Release`. | +| `/p:MtouchLink` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `/p:CreatePackage` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `/p:EnableCodeSigning` | Set to `true` so that code signing is enabled. | +| `/p:EnablePackageSigning` | Set to `true` so that the package that's created gets signed. | +| `/p:CodesignKey` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `/p:CodesignProvision` | The provisioning profile to use when signing the app bundle. | +| `/p:CodesignEntitlements` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `/p:PackageSigningKey` | The package signing key to use when signing the package. Set to the name of your installer certificate, as displayed in Keychain Access. | + +[!INCLUDE [Additional build parameters](../includes/additional-build-parameters.md)] + +For example, use the following command to build and sign a *.pkg* on a Mac, for distribution through the Mac App Store: + +```dotnetcli +dotnet publish -f:net7.0-maccatalyst -c:Release /p:MtouchLink=SdkOnly /p:CreatePackage=true /p:EnableCodeSigning=true /p:EnablePackageSigning=true /p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" /p:CodesignProvision="MyMauiApp" /p:CodesignEntitlements="Platforms\MacCatalyst\Entitlements.plist" /p:PackageSigningKey="3rd Party Mac Developer Installer: John Smith (AY2GDE9QM7)" +``` + +[!INCLUDE [Publishing output](../includes/publishing-output.md)] + +## Define build properties in your project file + +An alternative to specifying build parameters on the command line is to specify them in your project file in a ``. The following table lists some of the common build properties: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `` | The user-visible name for the app. | +| `` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `` | The version of the build that identifies an iteration of the app. | +| `` | The version number of the app. | +| `` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `` | The provisioning profile to use when signing the app bundle. | +| `` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `` | Set to `true` so that code signing is enabled. | +| `` | Set to `true` so that the package that's created gets signed. | +| `` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `` | The package signing key to use when signing the package. Set to the name of your installer certificate, as displayed in Keychain Access. | +| `` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for these build properties don't have to be provided in the project file. They can also be provided on the command line when you publish the app. This enables you to omit specific values from your project file. + +The following example shows a typical property group for building and signing your Mac Catalyst app for Mac App Store distribution: + +```xml + + SdkOnly + True + true + true + Apple Distribution: John Smith (AY2GDE9QM7) + MyMauiApp + Platforms\MacCatalyst\Entitlements.plist + 3rd Party Mac Developer Installer: John Smith (AY2GDE9QM7) + +``` + +[!INCLUDE [Publishing based on a property group](../includes/publishing-property-group.md)] + +## Upload to the Mac App Store + +To distribute your app through the Mac App Store, or TestFlight, you'll need to create an app record in App Store Connect. This record includes all the information about the app as it will appear in the App Store and all of the information needed to manage the app throughout the distribution process. For more information, see [Create an app record](https://developer.apple.com/help/app-store-connect/create-an-app-record/add-a-new-app) on developer.apple.com. + +[Transporter](https://apps.apple.com/us/app/transporter/id1450874784?mt=12) can be used to submit your app to the Mac App Store. It will also help to identify errors with app packages that stop successful submission. + +## See also + +- [Preparing your app for distribution](https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution) on developer.apple.com diff --git a/docs/mac-catalyst/deployment/publish-outside-app-store.md b/docs/mac-catalyst/deployment/publish-outside-app-store.md new file mode 100644 index 0000000000..ed63f94d7e --- /dev/null +++ b/docs/mac-catalyst/deployment/publish-outside-app-store.md @@ -0,0 +1,340 @@ +--- +title: "Publish a .NET MAUI Mac Catalyst app for distribution outside the Mac App Store" +description: "Learn how to provision, publish, and notarize a .NET MAUI Mac Catalyst app for distribution outside the Mac App Store." +ms.date: 03/23/2023 +--- + +# Publish a Mac Catalyst app for distribution outside the Mac App Store + +An alternative to distributing Mac Catalyst apps through the Mac App Store is to distribute them outside the Mac App Store. With this approach, your Mac Catalyst app can be hosted at a location of your choosing for download. Members of the Apple Developer Program and the Apple Developer Enterprise Program can use this distribution approach. + +Distributing a Mac Catalyst app requires that the app is provisioned using a *provisioning profile*. Provisioning profiles are files that contain code signing information, as well as the identity of the app and its intended distribution mechanism. + +To distribute a .NET Multi-platform App UI (.NET MAUI) Mac Catalyst app outside the Mac App Store, you'll need to build a *distribution provisioning profile* specific to it. This profile enables the app to be digitally signed for release so that it can be installed on Macs. A distribution provisioning profile contains an App ID and a developer ID application certificate. You'll need to create a developer ID application certificate to identify yourself or your organization, if you don't already have one. In addition, you'll need to create a developer ID installer certificate to sign your app's installer package. + +The process for provisioning a .NET MAUI Mac Catalyst app for distribution outside the Mac App Store is as follows: + +1. Create two certificate signing requests. For more information, see [Create a certificate signing request](#create-a-certificate-signing-request). +1. Create a developer ID application certificate. For more information, see [Create a developer ID application certificate](#create-a-developer-id-application-certificate). +1. Create a developer ID installer certificate. For more information, see [Create a developer ID installer certificate](#create-a-developer-id-installer-certificate). +1. Create an App ID. For more information, see [Create an App ID](#create-an-app-id). +1. Create a provisioning profile. For more information, see [Create a provisioning profile](#create-a-provisioning-profile). +1. Download your provisioning profile. For more information, see [Download your provisioning profile in Xcode](#download-your-provisioning-profile-in-xcode). + +> [!IMPORTANT] +> This article shows provisioning for distribution outside the Mac App Store using an Apple Developer Account that's part of the Apple Developer Program. It can also be used for an Apple Developer Account that's part of the Apple Developer Enterprise Program, as the steps required are largely identical. + +Then, once provisioning is complete you should prepare your app for publishing, publish it, and notarize it with the following process: + +1. Optionally add entitlements to your app. For more information, see [Add entitlements](#add-entitlements). +1. Update the app's *Info.plist* file. For more information, see [Update Info.plist](#update-infoplist). +1. Disable code signature verification for your app. For more information, see [Disable code signature verification](#disable-code-signature-verification). +1. Publish your app using the command line. For more information, see [Publish using the command line](#publish-using-the-command-line). +1. Notarize your app. For more information, see [Notarize your app](#notarize-your-app). + +[!INCLUDE [Create a certificate signing request](../includes/certificate-signing-request.md)] + +Repeat this process to create a second certificate signing request. The first CSR will be used to create a developer ID application certificate. The second will be used to create a developer ID installer certificate. + +> [!IMPORTANT] +> You can't use the same certificate signing request to create a developer ID application certificate and a developer ID installer certificate. + +## Create a developer ID application certificate + +The CSR allows you to generate a developer ID certificate, which confirms your identity. The developer ID certificate must be created using the Apple ID for your Apple Developer Account: + +1. In a web browser, login to your [Apple Developer Account](https://developer.apple.com/account/). +1. In your Apple Developer Account, select the **Certificates, IDs & Profiles** tab. +1. On the **Certificates, Identifiers & Profiles** page, select the **+** button to create a new certificate. +1. On the **Create a New Certificate** page, select the **Developer ID Application** radio button before selecting the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/developer-id-application-certificate.png" alt-text="Create a Developer ID Application certificate."::: + +1. On the **Create a New Certificate** page, select the **G2 Sub-CA** radio button, and then select **Choose File**: + + :::image type="content" source="media/publish-outside-app-store/choose-certificate.png" alt-text="Upload your certificate signing request for a Developer ID Application certificate."::: + +1. In the **Choose Files to Upload** dialog, select the first certificate request file you previously created (a file with a `.certSigningRequest` file extension) and then select **Upload**. +1. On the **Create a New Certificate** page, select the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/chosen-certificate.png" alt-text="Continue to generate your distribution certificate."::: + +1. On the **Download Your Certificate** page, select the **Download** button: + + :::image type="content" source="media/publish-outside-app-store/download-developer-id-application-certificate.png" alt-text="Download your Developer ID Application certificate."::: + + The certificate file (a file with a `.cer` extension) will be downloaded to your chosen location. + +1. On your Mac, double-click the downloaded certificate file to install the certificate to your keychain. The certificate appears in the **My Certificates** category in **Keychain Access**, and begins with **Developer ID Application**: + + :::image type="content" source="media/publish-outside-app-store/keychain-access-developer-id-application-certificate.png" alt-text="Keychain Access showing Developer ID Application certificate."::: + + > [!NOTE] + > Make a note of the full certificate name in Keychain Access. It will be required when signing your app. + +## Create a developer ID installer certificate + +The CSR allows you to generate a developer ID installer certificate, which is required to sign your app's installer package. The installer certificate must be created using the Apple ID for your Apple Developer Account: + +1. In your Apple Developer Account, select the **Certificates, IDs & Profiles** tab. +1. On the **Certificates, Identifiers & Profiles** page, select the **+** button to create a new certificate. +1. On the **Create a New Certificate** page, select the **Developer ID Installer** radio button before selecting the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/developer-id-installer-certificate.png" alt-text="Create a Developer ID Installer certificate."::: + +1. On the **Create a New Certificate** page, select the **G2 Sub-CA** radio button, and then select **Choose File**: + + :::image type="content" source="media/publish-outside-app-store/choose-certificate.png" alt-text="Upload your certificate signing request for a Developer ID Installer certificate."::: + +1. In the **Choose Files to Upload** dialog, select the second certificate request file you previously created (a file with a `.certSigningRequest` file extension) and then select **Upload**. +1. On the **Create a New Certificate** page, select the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/chosen-certificate.png" alt-text="Continue to generate your installer certificate."::: + +1. On the **Download Your Certificate** page, select the **Download** button: + + :::image type="content" source="media/publish-outside-app-store/download-installer-certificate.png" alt-text="Download your distribution certificate."::: + + The certificate file (a file with a `.cer` extension) will be downloaded to your chosen location. + +1. On your Mac, double-click the downloaded certificate file to install the certificate to your keychain. The certificate appears in the **My Certificates** category in **Keychain Access**, and begins with **Developer ID Installer**: + + :::image type="content" source="media/publish-outside-app-store/keychain-access-installer-certificate.png" alt-text="Keychain Access showing installer certificate."::: + + > [!NOTE] + > Make a note of the full certificate name in Keychain Access. It will be required when signing your app. + +## Create a distribution profile + +A distribution provisioning profile enables your .NET MAUI Mac Catalyst app to be digitally signed for release, so that it can be installed on another Mac. A provisioning profile for distribution outside the Mac App Store contains an App ID and a developer ID application certificate. + +[!INCLUDE [Create an App ID](../includes/create-app-id.md)] + +### Create a provisioning profile + +Once the App ID has been created, you should create a distribution provisioning profile. This profile enables the app to be digitally signed for release so that it can be installed on Macs. + +To create a provisioning profile for distribution outside the Mac App Store: + +1. In the Certificates, Identifiers & Profiles page of your Apple Developer Account, select the **Profiles** tab. +1. In the **Profiles** tab, click the **+** button to create a new profile. +1. In the **Register a New Provisioning Profile** page, select the **Developer ID** radio button before clicking the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/register-provisioning-profile.png" alt-text="Register a provisioning profile distribution outside the App Store."::: + +1. In the **Generate a Provisioning Profile** page, select the **Mac Catalyst** radio button. Then, in the **App ID** drop-down, select the App ID that you previously created before clicking the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/select-app-id.png" alt-text="Select your App ID."::: + +1. In the **Generate a Provisioning Profile** page, select the radio button that corresponds to your distribution certificate before clicking the **Continue** button: + + :::image type="content" source="media/publish-outside-app-store/select-certificate.png" alt-text="Select your distribution certificate."::: + +1. In the **Generate a Provisioning Profile** page, enter a name for the provisioning profile before clicking the **Generate** button: + + :::image type="content" source="media/publish-outside-app-store/generate-profile.png" alt-text="Generate the provisioning profile."::: + + > [!NOTE] + > Make a note of the provisioning profile name, as it will be required when signing your app. + +1. In the **Generate a Provisioning Profile** page, optionally click the **Download** button to download your provisioning profile. + + > [!NOTE] + > It's not necessary to download your provisioning profile now. Instead, you will do this in Xcode. + +[!INCLUDE [Download certificates and provisioning profiles in Xcode](../includes/download-profiles.md)] + +## Add entitlements + +Apple's App Sandbox restricts access to system resources and user data in Mac apps, to contain damage if an app becomes compromised. It can optionally be enabled for Mac Catalyst apps that are distributed outside the Mac App Store. + +[!INCLUDE [Add entitlements](../includes/add-entitlements.md)] + +## Update Info.plist + +Before publishing your app, you should update its *Info.plist* file with additional information. + +[!INCLUDE [Update Info.plist](../includes/update-info-plist.md)] + +### Declare your app's use of encryption + +If your app uses encryption, and you plan to distribute it outside the United States or Canada, it's subject to US export compliance requirements. You can provide information about you app's use of encryption in its *Info.plist* file. + +[!INCLUDE [Declare your app's use of encryption](../includes/encryption.md)] + + +## Disable code signature verification + +Currently, when you attempt to publish a .NET MAUI Mac Catalyst app for distribution outside the Mac App Store, provided you've met the provisioning requirements, you'll receive an error about `codesign` exiting with code 3: + +``` +/usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/16.2.1040/tools/msbuild/iOS/Xamarin.Shared.targets(1930,3): error MSB6006: "codesign" exited with code 3. [/Users/davidbritch/Projects/MyMauiApp/MyMauiApp/MyMauiApp.csproj::TargetFramework=net7.0-maccatalyst] +``` + +While `codesign` succeeds in signing your app, the `_CodesignVerify` target fails to verify the code signature: + +``` +test-requirement: code failed to satisfy specified code requirement(s) +``` + +Because of this failure, a *.pkg* file isn't produced. + +Therefore, it's currently necessary to add the following build target to the end of your project file to disable verification of the code signature: + +```xml + + ... + + + <_RequireCodeSigning>false + + + +``` + +## Publish using the command line + +To publish your Mac Catalyst app from the command line on a Mac, open a terminal and navigate to the folder for your .NET MAUI app project. Run the `dotnet publish` command, providing the following parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `-f` or `--framework` | The target framework, which is `net6.0-maccatalyst` or `net7.0-maccatalyst`. | +| `-c` or `--configuration` | The build configuration, which is `Release`. | +| `/p:MtouchLink` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `/p:CreatePackage` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `/p:EnableCodeSigning` | Set to `true` so that code signing is enabled. | +| `/p:EnablePackageSigning` | Set to `true` so that the package that's created gets signed. | +| `/p:CodesignKey` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `/p:CodesignProvision` | The provisioning profile to use when signing the app bundle. | +| `/p:CodesignEntitlements` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `/p:PackageSigningKey` | The package signing key to use when signing the package. Set to the name of your installer certificate, as displayed in Keychain Access. | +| `/p:UseHardenedRuntime` | Set to `true` to enable the hardened runtime, which is required for Mac Catalyst apps that are distributed outside of the Mac App Store. | + +> [!WARNING] +> Attempting to publish a .NET MAUI solution will result in the `dotnet publish` command attempting to publish each project in the solution individually, which can cause issues when you've added other project types to your solution. Therefore, the `dotnet publish` command should be scoped to your .NET MAUI app project. + +Additional build parameters can be specified on the command line, if they aren't provided in a `` in your project file. The following table lists some of the common parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `/p:ApplicationTitle` | The user-visible name for the app. | +| `/p:ApplicationId` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `/p:ApplicationVersion` | The version of the build that identifies an iteration of the app. | +| `/p:ApplicationDisplayVersion` | The version number of the app. | +| `/p:RuntimeIdentifier` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for all of these parameters don't have to be provided on the command line. They can also be provided in the project file. When a parameter is provided on the command line and in the project file, the command line parameter takes precedence. For more information about providing build properties in your project file, see [Define build properties in your project file](#define-build-properties-in-your-project-file). + +For example, use the following command to build and sign a *.pkg* on a Mac, for distribution outside the Mac App Store: + +```dotnetcli +dotnet publish -f:net7.0-maccatalyst -c:Release /p:MtouchLink=SdkOnly /p:CreatePackage=true /p:EnableCodeSigning=true /p:EnablePackageSigning=true /p:CodesignKey="Developer ID Application: John Smith (AY2GDE9QM7)" /p:CodesignProvision="MyMauiApp (Non-App Store)" /p:CodesignEntitlements="Platforms\MacCatalyst\Entitlements.plist" /p:PackageSigningKey="Developer ID Installer: John Smith (AY2GDE9QM7)" /p:UseHardenedRuntime=true +``` + +[!INCLUDE [Publishing output](../includes/publishing-output.md)] + +## Define build properties in your project file + +An alternative to specifying build parameters on the command line is to specify them in your project file in a ``. The following table lists some of the common build properties: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `` | The user-visible name for the app. | +| `` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `` | The version of the build that identifies an iteration of the app. | +| `` | The version number of the app. | +| `` | The name of the code signing key. Set to the name of your distribution certificate, as displayed in Keychain Access. | +| `` | The path to the entitlements file that specifies the entitlements the app requires. Set to `Platforms\MacCatalyst\Entitlements.plist`. | +| `` | The provisioning profile to use when signing the app bundle. | +| `` | Set to `true` so that a package (*.pkg*) is created for the app at the end of the build. | +| `` | Set to `true` so that code signing is enabled. | +| `` | Set to `true` so that the package that's created gets signed. | +| `` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `` | The package signing key to use when signing the package. Set to the name of your installer certificate, as displayed in Keychain Access. | +| `` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | +| `` | Set to `true` to enable the hardened runtime, which is required for Mac Catalyst apps that are distributed outside of the Mac App Store. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for these build properties don't have to be provided in the project file. They can also be provided on the command line when you publish the app. This enables you to omit specific values from your project file. + +The following example shows a typical property group for building and signing your Mac Catalyst app for distribution outside the Mac App Store: + +```xml + + SdkOnly + True + true + true + Developer ID Application: John Smith (AY2GDE9QM7) + MyMauiApp (Non-App Store) + Platforms\MacCatalyst\Entitlements.plist + Developer ID Installer: John Smith (AY2GDE9QM7) + true + +``` + +[!INCLUDE [Publishing based on a property group](../includes/publishing-property-group.md)] + +## Notarize your app + +macOS includes a technology called *Gatekeeper*, which helps to ensure that only trusted software runs on a Mac. When a user downloads and opens an installer package, or an app, Gatekeeper verifies that the software is from an identified developer. It does this by checking for a Developer ID certificate, and checking that the software is notarized by Apple to be free of known malicious content and hasn't been altered. Therefore, after provisioning and publishing your app you should submit it to Apple to be notarized. Apple's notary service automatically scans your developer ID-signed app and performs security checks. When notarization succeeds, your software is assigned a ticket to let Gatekeeper know that it's been notarized. + +Apps can be submitted to Apple's notary service with the `notarytool` command line tool: + +```zsh +xcrun notarytool submit {my_package_filename} --wait --apple-id {my_apple_id} --password {my_app_specific_password} --team-id {my_team_id} +``` + +An example of using the `notarytool` tool to sign a .NET MAUI Mac Catalyst *.pkg* file is shown below: + +```zsh +xcrun notarytool submit MyMauiApp-1.0.pkg --wait --apple-id johm.smith@provider.com --password fqtk-cprr-gqdt-bvyo --team-id AY2GDE9QM7 +``` + +The `wait` flag tells `notarytool` to exit only after the notary service finishes processing the submission, therefore removing the need to poll the service for its status. The `apple-id`, `password`, and `team-id` arguments are used to supply your App Store Connect credentials. Because App Store Connect requires two-factor authentication, you must create an app-specific password for `notarytool`. For information about creating an app-specific password, see [Sign in to apps with your Apple ID using app-specific passwords](https://support.apple.com/en-us/HT204397) on developer.apple.com. + +After you submit your app to Apple, the notarization process typically takes less than an hour. + +> [!NOTE] +> Notarization completes for most apps within 5 minutes. For information about avoiding long response times from the notary service, see [Avoid long notarization response times and size limits](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow?) on developer.apple.com. + +Provided that notarization succeeds, the notary service generates a ticket for the signed installer package and the app bundle inside it. + +For more information about notarization, see [Notarizing macOS software before distribution](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution). For other approaches to submitting your app to Apple's notary service, see [Upload your app to the notarization service](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow) on developer.apple.com. For information about resolving common notarization issues, see [Resolving common notarization issues](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues). + +### Staple the ticket to your app + +Notarization produces a ticket for the signed installer package and the app bundle inside it, that tell Gatekeeper that your app is notarized. Once notarization completes, when users attempt to run your app on macOS 10.14 or later, Gatekeeper locates the ticket online. + +After notarization has succeeded, you should attach the ticket to your app using the `stapler` tool. This ensures that Gatekeeper can find the ticket even when a network connection isn't available. Run the following command to attach the ticket to your *.pkg*: + +```zsh +xcrun stapler staple {filename}.pkg +``` + +The `stapler` tool retrieves the ticket and attaches it to the installer package. You'll receive a message telling you that the staple and validate action worked, provided that stapling succeeds. + +### Validate notarization + +If you want to validate notarization, you can do so with the following command: + +```zsh +xcrun stapler validate mypackage.pkg +``` + +## Distribute your app + +The signed and notarized *.pkg* can be safely distributed outside the Mac App Store at a location of your choosing, such as a web server. + +For information about safely opening apps on a Mac, see [Open apps safely on your Mac](https://support.apple.com/HT202491) on support.apple.com. + +## See also + +- [Preparing your app for distribution](https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution) on developer.apple.com +- [Hardened Runtime](https://developer.apple.com/documentation/security/hardened_runtime) on developer.apple.com +- [Customizing the notarization workflow](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow) on developer.apple.com diff --git a/docs/mac-catalyst/deployment/publish-unsigned.md b/docs/mac-catalyst/deployment/publish-unsigned.md new file mode 100644 index 0000000000..7b2595e569 --- /dev/null +++ b/docs/mac-catalyst/deployment/publish-unsigned.md @@ -0,0 +1,77 @@ +--- +title: "Publish an unsigned .NET MAUI Mac Catalyst app" +description: "Learn how to package and publish an unsigned .NET MAUI Mac Catalyst app." +ms.date: 03/23/2023 +--- + +# Publish an unsigned .NET MAUI Mac Catalyst app + +To publish an unsigned .NET Multi-platform App UI (.NET MAUI) Mac Catalyst app, open a terminal and navigate to the folder for your app project. Run the `dotnet publish` command, providing the following parameters: + +| Parameter | Value | +|------------------------------|-----------------------------------------------------------------------------------------------------| +| `-f` or `--framework` | The target framework, which is `net6.0-maccatalyst` or `net7.0-maccatalyst`. | +| `-c` or `--configuration` | The build configuration, which is `Release`. | +| `/p:MtouchLink` | The link mode for the project, which can be `None`, `SdkOnly`, or `Full`. | +| `/p:CreatePackage` | An optional parameter that controls whether to create an .app or a .pkg. Use `false` for an *.app*. | + +> [!WARNING] +> Attempting to publish a .NET MAUI solution will result in the `dotnet publish` command attempting to publish each project in the solution individually, which can cause issues when you've added other project types to your solution. Therefore, the `dotnet publish` command should be scoped to your .NET MAUI app project. + +Additional build parameters can be specified on the command line. The following table lists some of the common parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `/p:ApplicationTitle` | The user-visible name for the app. | +| `/p:ApplicationId` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `/p:ApplicationVersion` | The version of the build that identifies an iteration of the app. | +| `/p:ApplicationDisplayVersion` | The version number of the app. | +| `/p:RuntimeIdentifier` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | + +::: moniker range="=net-maui-6.0" + +For example, use the following command to create an *.app*: + +```dotnetcli +dotnet publish -f:net6.0-maccatalyst -c:Release /p:CreatePackage=false +``` + +Use the following command to create a *.pkg*: + +```dotnetcli +dotnet publish -f:net6.0-maccatalyst -c:Release +``` + +Publishing builds the app, and then copies the *.app* to the *bin/Release/net6.0-maccatalyst/* folder or the *.pkg* to the *bin/Release/net6.0-maccatalyst/publish/* folder. If you publish the app using only a single architecture, the *.app* will be published to the *bin/Release/net6.0-maccatalyst/{architecture}/* folder while the *.pkg* will be published to the *bin/Release/net6.0-maccatalyst/{architecture}/publish/* folder. + +::: moniker-end + +::: moniker range="=net-maui-7.0" + +For example, use the following command to create an *.app*: + +```dotnetcli +dotnet publish -f:net7.0-maccatalyst -c:Release /p:CreatePackage=false +``` + +Use the following command to create a *.pkg*: + +```dotnetcli +dotnet publish -f:net7.0-maccatalyst -c:Release +``` + +Publishing builds the app, and then copies the *.app* to the *bin/Release/net7.0-maccatalyst/* folder or the *.pkg* to the *bin/Release/net7.0-maccatalyst/publish/* folder. If you publish the app using only a single architecture, the *.app* will be published to the *bin/Release/net7.0-maccatalyst/{architecture}/* folder while the *.pkg* will be published to the *bin/Release/net7.0-maccatalyst/{architecture}/publish/* folder. + +::: moniker-end + +For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish). + +## Run the unsigned app + +By default, *.app* and *.pkg* files that are downloaded from the internet can't be run by double-clicking on them. For more information, see [Open a Mac app from an unidentified developer](https://support.apple.com/en-gb/guide/mac-help/mh40616/mac) on support.apple.com. + +To ensure that a *.pkg* installs the app to your *Applications* folder, copy the *.pkg* to outside of your build artifacts folder and delete the *bin* and *obj* folders before double-clicking on the *.pkg*. + +## See also + +- [Open apps safely on your Mac](https://support.apple.com/en-gb/HT202491) diff --git a/docs/mac-catalyst/includes/add-entitlements.md b/docs/mac-catalyst/includes/add-entitlements.md new file mode 100644 index 0000000000..5dd2879831 --- /dev/null +++ b/docs/mac-catalyst/includes/add-entitlements.md @@ -0,0 +1,36 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +This can be accomplished by adding an *Entitlements.plist* file to the *Platforms/MacCatalyst* folder of your .NET MAUI app project: + +```xml + + + + + com.apple.security.app-sandbox + + + +``` + +The App Sandbox entitlement is defined using the `com.apple.security.app-sandbox` key, of type `boolean`. For information about App Sandbox, see [Protecting user data with App Sandbox](https://developer.apple.com/documentation/security/app_sandbox/protecting_user_data_with_app_sandbox) on developer.apple.com. For information about the App Sandbox entitlement, see [App Sandbox Entitlement](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_app-sandbox). + +If your app opens outgoing network connections, you'll also need to add the `com.apple.security.network.client` key, of type `boolean`, to your *Entitlements.plist* file: + +```xml + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + +``` + +For information about the outgoing network connections entitlement, see [com.apple.security.network.client](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_network_client) on developer.apple.com. diff --git a/docs/mac-catalyst/includes/additional-build-parameters.md b/docs/mac-catalyst/includes/additional-build-parameters.md new file mode 100644 index 0000000000..3d30afe787 --- /dev/null +++ b/docs/mac-catalyst/includes/additional-build-parameters.md @@ -0,0 +1,22 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +> [!WARNING] +> Attempting to publish a .NET MAUI solution will result in the `dotnet publish` command attempting to publish each project in the solution individually, which can cause issues when you've added other project types to your solution. Therefore, the `dotnet publish` command should be scoped to your .NET MAUI app project. + +Additional build parameters can be specified on the command line, if they aren't provided in a `` in your project file. The following table lists some of the common parameters: + +| Parameter | Value | +|------------------------------|-------------------------------------------------------------------------------------------------| +| `/p:ApplicationTitle` | The user-visible name for the app. | +| `/p:ApplicationId` | The unique identifier for the app, such as `com.companyname.mymauiapp`. | +| `/p:ApplicationVersion` | The version of the build that identifies an iteration of the app. | +| `/p:ApplicationDisplayVersion` | The version number of the app. | +| `/p:RuntimeIdentifier` | The runtime identifier (RID) for the project. Release builds of .NET MAUI Mac Catalyst apps default to using `maccatalyst-x64` and `maccatalyst-arm64` as runtime identifiers, to support universal apps. To support only a single architecture, specify `maccatalyst-x64` or `maccatalyst-arm64`. | + +For a full list of build properties, see [Project file properties](https://github.com/xamarin/xamarin-macios/wiki/Project-file-properties). + +> [!IMPORTANT] +> Values for all of these parameters don't have to be provided on the command line. They can also be provided in the project file. When a parameter is provided on the command line and in the project file, the command line parameter takes precedence. For more information about providing build properties in your project file, see [Define build properties in your project file](#define-build-properties-in-your-project-file). diff --git a/docs/mac-catalyst/includes/certificate-signing-request.md b/docs/mac-catalyst/includes/certificate-signing-request.md new file mode 100644 index 0000000000..d36f254aca --- /dev/null +++ b/docs/mac-catalyst/includes/certificate-signing-request.md @@ -0,0 +1,21 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +## Create a certificate signing request + +Before you create a distribution certificate, you'll first need to create a certificate signing request (CSR) in Keychain Access on a Mac: + +1. On your Mac, launch Keychain Access. +1. In Keychain Access, select the **Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority...** menu item. +1. In the **Certificate Assistant** dialog, enter an email address in the **User Email Address** field. +1. In the **Certificate Assistant** dialog, enter a name for the key in the **Common Name** field. +1. In the **Certificate Assistant** dialog, leave the **CA Email Address** field empty. +1. In the **Certificate Assistant** dialog, choose the **Saved to disk** radio button and select **Continue**: + + :::image type="content" source="../deployment/media/certificate-assistant.png" alt-text="Certificate assistant dialog."::: + +1. Save the certificate signing request to a known location. +1. In the **Certificate Assistant** dialog, select the **Done** button. +1. Close Keychain Access. diff --git a/docs/mac-catalyst/includes/create-app-id.md b/docs/mac-catalyst/includes/create-app-id.md new file mode 100644 index 0000000000..308cacfad4 --- /dev/null +++ b/docs/mac-catalyst/includes/create-app-id.md @@ -0,0 +1,45 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +### Create an App ID + +An App ID is required to identify the app that you are distributing. An App ID is similar to a reverse-DNS string, that uniquely identifies an app, and should be identical to the bundle identifier for your app. You can use the same App ID that you used when deploying your app to a device for testing. + +There are two types of App ID: + +- Wildcard. A wildcard App ID allows you to use a single App ID to match multiple apps, and typically takes the form `com.domainname.*`. A wildcard App ID can be used to distribute multiple apps, and should be used for apps that do not enable app-specific capabilities. +- Explicit. An explicit App ID is unique to a single app, and typically takes the form `com.domainname.myid`. An explicit App ID allows the distribution of one app, with a matching bundle identifier. Explicit App IDs are typically used for apps that enable app-specific capabilities such as Apple Pay, or Game Center. For more information about capabilities, see [Capabilities](~/ios/capabilities.md). + +To create a new App ID: + +1. In your Apple Developer Account, navigate to **Certificates, IDs & Profiles**. +1. On the **Certificates, Identifiers & Profiles** page, select the **Identifiers** tab. +1. On the **Identifiers** page, select the **+** button to create a new App ID. +1. On the **Register a new identifier** page, select the **App IDs** radio button before selecting the **Continue** button: + + :::image type="content" source="../deployment/media/create-app-id.png" alt-text="Create an App ID."::: + +1. On the **Register a new identifier** page, select **App** before selecting the **Continue** button: + + :::image type="content" source="../deployment/media/register-identifier.png" alt-text="Register an App ID."::: + +1. On the **Register an App ID** page, enter a description, and select either the **Explicit** or **Wildcard** Bundle ID radio button. Then, enter the Bundle ID for your app in reverse DS format: + + :::image type="content" source="../deployment/media/specify-bundle-id.png" alt-text="Specify the bundle identifier for the app."::: + + + > [!IMPORTANT] + > The Bundle ID you enter must correspond to the **Bundle identifier** in the *Info.plist* file in your app project. + > + > The bundle identifier for a .NET MAUI app is stored in the project file as the **Application ID** property: + > - In Visual Studio, in **Solution Explorer** right-click on your .NET MAUI app project and select **Properties**. Then, navigate to the **MAUI Shared > General** tab. The **Application ID** field lists the bundle identifier. + > - In Visual Studio for Mac, in the **Solution Window**, right-click on your .NET MAUI app project and select **Properties**. Then, in the **Project Properties** window, select the **Build > App Info** tab. The **Application ID** field lists the bundle identifier. + > + > When the value of the **Application ID** field is updated, the value of the **Bundle identifier** in the **Info.plist** will be automatically updated. + + +1. On the **Register an App ID** page, select any capabilities that the app uses. Any capabilities must be configured both on this page and in the *Entitlements.plist* file in your app project. For more information see [Capabilities](~/ios/capabilities.md) and [Entitlements](~/ios/entitlements.md). +1. On the **Register an App ID** page, select the **Continue** button. +1. On the **Confirm your App ID** page, select the **Register** button. diff --git a/docs/mac-catalyst/includes/download-profiles.md b/docs/mac-catalyst/includes/download-profiles.md new file mode 100644 index 0000000000..275f71f78d --- /dev/null +++ b/docs/mac-catalyst/includes/download-profiles.md @@ -0,0 +1,31 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +## Download your provisioning profile in Xcode + +After creating a provisioning profile in your Apple Developer Account, Xcode can download it so that it's available for signing your app: + +1. On your Mac, launch Xcode. +1. In Xcode, select the **Xcode > Preferences...** menu item. +1. In the **Preferences** dialog, select the **Accounts** tab. +1. In the **Accounts** tab, click the **+** button to add your Apple Developer Account to Xcode: + + :::image type="content" source="../deployment/media/xcode-accounts-dialog.png" alt-text="Xcode Accounts dialog in preferences."::: + +1. In the account type popup, select **Apple ID** and then click the **Continue** button: + + :::image type="content" source="../deployment/media/xcode-account-type.png" alt-text="Xcode select the type of account you'd like to add popup."::: + +1. In the sign in popup, enter your Apple ID and click the **Next** button. +1. In the sign in popup, enter your Apple ID password and click the **Next** button: + + :::image type="content" source="../deployment/media/xcode-sign-in.png" alt-text="Xcode Apple account sign-in."::: + +1. In the **Accounts** tab, click the **Manage Certificates...** button to ensure that your distribution certificate has been downloaded. +1. In the **Accounts** tab, click the **Download Manual Profiles** button to download your provisioning profiles: + + :::image type="content" source="../deployment/media/xcode-account-details.png" alt-text="Xcode Apple Developer Program account details."::: + +1. Wait for the download to complete and then close Xcode. diff --git a/docs/mac-catalyst/includes/encryption.md b/docs/mac-catalyst/includes/encryption.md new file mode 100644 index 0000000000..23dc4b6d4b --- /dev/null +++ b/docs/mac-catalyst/includes/encryption.md @@ -0,0 +1,13 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +This is accomplished by adding the `ITSAppUsesNonExemptEncryption` key to your app's *Info.plist* with a `boolean` value that indicates whether your app uses encryption: + +```xml +ITSAppUsesNonExemptEncryption + +``` + +For more information, see [Complying with Encryption Export Regulations](https://developer.apple.com/documentation/security/complying_with_encryption_export_regulations) on developer.apple.com. diff --git a/docs/mac-catalyst/includes/installer-certificate.md b/docs/mac-catalyst/includes/installer-certificate.md new file mode 100644 index 0000000000..c41fb3ced8 --- /dev/null +++ b/docs/mac-catalyst/includes/installer-certificate.md @@ -0,0 +1,36 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +## Create an installer certificate + +The CSR allows you to generate an installer certificate, which is required to sign your app's installer package for submission to the Mac App Store. The installer certificate must be created using the Apple ID for your Apple Developer Account: + +1. In your Apple Developer Account, select the **Certificates, IDs & Profiles** tab. +1. On the **Certificates, Identifiers & Profiles** page, select the **+** button to create a new certificate. +1. On the **Create a New Certificate** page, select the **Mac Installer Distribution** radio button before selecting the **Continue** button: + + :::image type="content" source="../deployment/media/publish-app-store/mac-installer-certificate.png" alt-text="Create a Mac Installer distribution certificate."::: + +1. On the **Create a New Certificate** page, select **Choose File**: + + :::image type="content" source="../deployment/media/publish-app-store/choose-certificate.png" alt-text="Upload your certificate signing request for the Mac installer certificate."::: + +1. In the **Choose Files to Upload** dialog, select the certificate request file you previously created (a file with a `.certSigningRequest` file extension) and then select **Upload**. +1. On the **Create a New Certificate** page, select the **Continue** button: + + :::image type="content" source="../deployment/media/publish-app-store/chosen-certificate.png" alt-text="Continue to generate your installer certificate."::: + +1. On the **Download Your Certificate** page, select the **Download** button: + + :::image type="content" source="../deployment/media/publish-app-store/download-installer-certificate.png" alt-text="Download your Mac installer certificate."::: + + The certificate file (a file with a `.cer` extension) will be downloaded to your chosen location. + +1. On your Mac, double-click the downloaded certificate file to install the certificate to your keychain. The certificate appears in the **My Certificates** category in **Keychain Access**, and begins with **3rd Party Mac Developer Installer**: + + :::image type="content" source="../deployment/media/publish-app-store/keychain-access-installer-certificate.png" alt-text="Keychain Access showing installer certificate."::: + + > [!NOTE] + > Make a note of the full certificate name in Keychain Access. It will be required when signing your app. diff --git a/docs/mac-catalyst/includes/publishing-output.md b/docs/mac-catalyst/includes/publishing-output.md new file mode 100644 index 0000000000..8517d31e5b --- /dev/null +++ b/docs/mac-catalyst/includes/publishing-output.md @@ -0,0 +1,15 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +Publishing builds, signs, and packages the app, and then copies the *.pkg* to the *bin/Release/net7.0-maccatalyst/publish/* folder. If you publish the app using only a single architecture, it will be published to the *bin/Release/net7.0-maccatalyst/{architecture}/publish/* folder. + +During the signing process it maybe necessary to enter your login password and allow `codesign` and `productbuild` to run: + +:::image type="content" source="../deployment/media/codesign.png" alt-text="Allow codesign to sign your app on your Mac."::: +:::image type="content" source="../deployment/media/productbuild.png" alt-text="Allow productbuild to sign your app on your Mac."::: + +For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish). + + diff --git a/docs/mac-catalyst/includes/publishing-property-group.md b/docs/mac-catalyst/includes/publishing-property-group.md new file mode 100644 index 0000000000..6e396d3d4b --- /dev/null +++ b/docs/mac-catalyst/includes/publishing-property-group.md @@ -0,0 +1,20 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +This example `` adds a condition check, preventing the settings from being processed unless the condition check passes. The condition check looks for two items: + +1. The build configuration is set to `Release`. +1. The target framework is set to something containing the text `net7.0-maccatalyst`. +1. The platform is set to `AnyCPU`. + +If any of these conditions fail, the settings aren't processed. More importantly, the ``, ``, and `` settings aren't set, preventing the app from being signed. + +After adding the above property group, the app can be published from the command line on a Mac by opening a terminal and navigating to the folder for your .NET MAUI app project. Then, run the following command: + +```dotnetcli +dotnet build -f:net7.0-maccatalyst -c:Release +``` + +Publishing builds, signs, and packages the app, and then copies the *.pkg* to the *bin/Release/net7.0-maccatalyst/publish/* folder. diff --git a/docs/mac-catalyst/includes/update-info-plist.md b/docs/mac-catalyst/includes/update-info-plist.md new file mode 100644 index 0000000000..bfb791df92 --- /dev/null +++ b/docs/mac-catalyst/includes/update-info-plist.md @@ -0,0 +1,53 @@ +--- +ms.topic: include +ms.date: 03/23/2023 +--- + +### Specify the user interface idiom + +A Mac Catalyst app can run in the iPad or Mac user interface idiom: + +- The iPad user interface idiom tells macOS to scale the app's user interface to match the Mac display environment while preserving iPad-like appearance. +- The Mac user interface idiom doesn't scale the app's user interface to match the Mac display environment. Some controls change their size and appearance, and interacting with them feels identical to interacting with `AppKit` controls. + +By default, .NET MAUI Mac Catalyst apps use the iPad user interface idiom. If this is your desired behavior, ensure that the app's *Info.plist* file only specifies 2 as the value of the `UIDeviceFamily` key: + +```xml +UIDeviceFamily + + 2 + +``` + +To adopt the Mac user interface idiom, update the app's *Info.plist* file to specify 6 as the value of the `UIDeviceFamily` key: + +```xml +UIDeviceFamily + + 6 + +``` + +For more information about Mac Catalyst user interface idioms, see [Choosing a user interface idiom for your Mac app](https://developer.apple.com/documentation/uikit/mac_catalyst/choosing_a_user_interface_idiom_for_your_mac_app?language=objc) on developer.apple.com. + +### Set the default language and region for the app + +Set the `CFBundleDevelopmentRegion` key in your app's *Info.plist* to a `string` that represents the localization native development region: + +```xml +CFBundleDevelopmentRegion +en +``` + +The value of the key should be a language designator, with an optional region designator. For more information, see [CFBundleDevelopmentRegion](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundledevelopmentregion) on developer.apple.com. + +### Set the copyright key + +Set the `NSHumanReadableCopyright` key in your app's *Info.plist* to a `string` that represents the human-readable copyright notice for your app: + +```xml +NSHumanReadableCopyright +MyMauiApp © 2023 +``` + +For more information, see [NSHumanReadableCopyright](https://developer.apple.com/documentation/bundleresources/information_property_list/nshumanreadablecopyright) on developer.apple.com. diff --git a/docs/macos/media/cli/maccatalyst-running-app.png b/docs/mac-catalyst/media/cli/maccatalyst-running-app.png similarity index 100% rename from docs/macos/media/cli/maccatalyst-running-app.png rename to docs/mac-catalyst/media/cli/maccatalyst-running-app.png diff --git a/docs/macos/deployment/overview.md b/docs/macos/deployment/overview.md deleted file mode 100644 index 3bfc521de7..0000000000 --- a/docs/macos/deployment/overview.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -title: "Publish a .NET MAUI app for macOS" -description: "Learn how to package and publish a macOS .NET MAUI app." -ms.date: 04/25/2022 ---- - -# Publish a .NET MAUI app for macOS - -> [!div class="op_single_selector"] -> -> - [Publish for Android](../../android/deployment/overview.md) -> - [Publish for iOS](../../ios/deployment/index.md) -> - [Publish for macOS](overview.md) -> - [Publish for Windows](../../windows/deployment/overview.md) - -When distributing your .NET Multi-platform App UI (.NET MAUI) app for macOS, you generate an *.app* or a *.pkg* file. An *.app* file is a self-contained app that can be run without installation, whereas a *.pkg* is an app packaged in an installer. - -> [!IMPORTANT] -> Blazor Hybrid apps require a WebView on the host platform. For more information, see [Keep the Web View current in deployed Blazor Hybrid apps](/aspnet/core/blazor/hybrid/security/security-considerations#keep-the-web-view-current-in-deployed-apps). - -## Publish an unsigned app - -At this time, publishing is only supported through the .NET command line interface. - -To publish your app, open a terminal and navigate to the folder for your .NET MAUI app project. Run the `dotnet build` command, providing the following parameters: - - - -| Parameter | Value | -|------------------------------|-------------------------------------------------------------------------------------------------| -| `-f` or `--framework` | The target framework, which is `net6.0-maccatalyst` or `net7.0-maccatalyst`. | -| `-c` or `--configuration` | The build configuration, which is `Release`. | -| `/p:CreatePackage` | An optional parameter that controls whether to create an .app or a .pkg. Use `true` for a .pkg. | - -> [!WARNING] -> Attempting to publish a .NET MAUI solution will result in the `dotnet publish` command attempting to publish each project in the solution individually, which can cause issues when you've added other project types to your solution. Therefore, the `dotnet publish` command should be scoped to your .NET MAUI app project. - -::: moniker range="=net-maui-6.0" - -For example, use the following command to create an *.app*: - -```console -dotnet build -f:net6.0-maccatalyst -c:Release -``` - -Use the following command to create a *.pkg*: - -```console -dotnet build -f:net6.0-maccatalyst -c:Release /p:CreatePackage=true -``` - -Publishing builds the app, and then copies the *.app* or *.pkg* to the *bin/Release/net6.0-maccatalyst/maccatalyst-x64* folder. - -::: moniker-end - -::: moniker range="=net-maui-7.0" - -For example, use the following command to create an *.app*: - -```console -dotnet build -f:net7.0-maccatalyst -c:Release -``` - -Use the following command to create a *.pkg*: - -```console -dotnet build -f:net7.0-maccatalyst -c:Release /p:CreatePackage=true -``` - -Publishing builds the app, and then copies the *.app* or *.pkg* to the *bin/Release/net7.0-maccatalyst/maccatalyst-x64* folder. - -::: moniker-end - -For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish). - -## Run the unsigned app - -By default, *.app* and *.pkg* files that are downloaded from the internet can't be run by double-clicking on them. For more information, see [Open a Mac app from an unidentified developer](https://support.apple.com/en-gb/guide/mac-help/mh40616/mac). - -To ensure that a *.pkg* installs the app to your *Applications* folder, copy the *.pkg* to outside of your build artifacts folder and delete the *bin* and *obj* folders before double-clicking on the *.pkg*. - -## See also - -- [GitHub discussion and feedback: .NET MAUI macOS target publishing/archiving](https://github.com/dotnet/maui/issues/5399) -- [Open apps safely on your Mac](https://support.apple.com/en-gb/HT202491) diff --git a/docs/whats-new/dotnet-docs-maui-2022-05-01.md b/docs/whats-new/dotnet-docs-maui-2022-05-01.md index 8acd34530e..2ec4dd6b3a 100644 --- a/docs/whats-new/dotnet-docs-maui-2022-05-01.md +++ b/docs/whats-new/dotnet-docs-maui-2022-05-01.md @@ -36,8 +36,8 @@ Welcome to what's new in the .NET Multi-platform App UI (.NET MAUI) docs for May - [Provision an iOS app for app store distribution](../ios/deployment/index.md) - [Remote iOS Simulator for Windows](../ios/remote-simulator.md) - [Pair to Mac for iOS development](../ios/pair-to-mac.md) -- [Build a Mac Catalyst app with .NET CLI](../macos/cli.md) -- [Publish a .NET MAUI app for macOS](../macos/deployment/overview.md) +- [Build a Mac Catalyst app with .NET CLI](../mac-catalyst/cli.md) +- [Publish a .NET MAUI app for macOS](../mac-catalyst/deployment/index.md) - [Entry input method editor options on Android](../android/platform-specifics/entry-ime-options.md) - [Android platform-specifics](../android/platform-specifics/index.md) - [ListView fast scrolling on Android](../android/platform-specifics/listview-fast-scrolling.md) diff --git a/docs/whats-new/dotnet-docs-maui-2022-11-01.md b/docs/whats-new/dotnet-docs-maui-2022-11-01.md index 3f617d3d58..9b1774f207 100644 --- a/docs/whats-new/dotnet-docs-maui-2022-11-01.md +++ b/docs/whats-new/dotnet-docs-maui-2022-11-01.md @@ -37,8 +37,8 @@ Welcome to what's new in the .NET Multi-platform App UI (.NET MAUI) docs from No ### Updated articles -- [Build a Mac Catalyst app with .NET CLI](../macos/cli.md) -- [Publish a .NET MAUI app for macOS](../macos/deployment/overview.md) +- [Build a Mac Catalyst app with .NET CLI](../mac-catalyst/cli.md) +- [Publish a .NET MAUI app for macOS](../mac-catalyst/deployment/index.md) ## Platform integration @@ -58,8 +58,8 @@ Welcome to what's new in the .NET Multi-platform App UI (.NET MAUI) docs from No - [Build an iOS app with .NET CLI](../ios/cli.md) - [Publish a .NET MAUI app for iOS](../ios/deployment/index.md) -- [Build a Mac Catalyst app with .NET CLI](../macos/cli.md) -- [Publish a .NET MAUI app for macOS](../macos/deployment/overview.md) +- [Build a Mac Catalyst app with .NET CLI](../mac-catalyst/cli.md) +- [Publish a .NET MAUI app for macOS](../mac-catalyst/deployment/index.md) ## User interface diff --git a/docs/windows/deployment/overview.md b/docs/windows/deployment/overview.md index 1236043290..a73abd8ed5 100644 --- a/docs/windows/deployment/overview.md +++ b/docs/windows/deployment/overview.md @@ -10,7 +10,7 @@ ms.date: 10/12/2022 > > - [Publish for Android](../../android/deployment/overview.md) > - [Publish for iOS](../../ios/deployment/index.md) -> - [Publish for macOS](../../macos/deployment/overview.md) +> - [Publish for macOS](../../mac-catalyst/deployment/index.md) > - [Publish for Windows](overview.md) When distributing your .NET Multi-platform App UI (.NET MAUI) app for Windows, you can publish the app and its dependencies to a folder for deployment to another system. Publishing a .NET MAUI app for Windows creates an MSIX app package, which has numerous benefits for the users installing your app. For more information about the benefits of MSIX, see [What is MSIX?](/windows/msix/overview). diff --git a/docs/windows/deployment/publish-cli.md b/docs/windows/deployment/publish-cli.md index b1f6457bd7..c44376928a 100644 --- a/docs/windows/deployment/publish-cli.md +++ b/docs/windows/deployment/publish-cli.md @@ -10,7 +10,7 @@ ms.date: 10/12/2022 > > - [Publish for Android](../../android/deployment/publish-cli.md) > - [Publish for iOS](../../ios/deployment/index.md) -> - [Publish for macOS](../../macos/deployment/overview.md) +> - [Publish for macOS](../../mac-catalyst/deployment/index.md) > - [Publish for Windows](publish-cli.md) When distributing your .NET Multi-platform App UI (.NET MAUI) app for Windows, you can publish the app and its dependencies to a folder for deployment to another system. You can also package the app into an MSIX package, which has numerous benefits for the users installing your app. For more information about the benefits of MSIX, see [What is MSIX?](/windows/msix/overview)