Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0d66c15
Initial commit.
davidbritch Mar 13, 2023
567ef1a
Remove content.
davidbritch Mar 13, 2023
e3ca313
Edits.
davidbritch Mar 13, 2023
9813b7f
Installer certificate generation.
davidbritch Mar 13, 2023
e7efff3
Fix build.
davidbritch Mar 13, 2023
1e4d3e0
Edit.
davidbritch Mar 13, 2023
45ee7ae
Create and configure App IDs.
davidbritch Mar 13, 2023
feca7ff
Provisioning profiles.
davidbritch Mar 13, 2023
6c86538
Fix image links.
davidbritch Mar 13, 2023
674ce56
Publish using the CLI.
davidbritch Mar 14, 2023
0a576ab
Fix TOC.
davidbritch Mar 14, 2023
8b5870e
Edits.
davidbritch Mar 14, 2023
05e92e7
Edits.
davidbritch Mar 14, 2023
57e28d5
Move images.
davidbritch Mar 16, 2023
76748fe
Fix build errors.
davidbritch Mar 16, 2023
a0654ba
Fix image links.
davidbritch Mar 16, 2023
736bfef
Create a developer ID certificate.
davidbritch Mar 16, 2023
b891661
Create a developer ID installer certificate.
davidbritch Mar 16, 2023
1c24d6f
Create an app ID.
davidbritch Mar 16, 2023
04683f9
Create a distribution profile
davidbritch Mar 16, 2023
38447f0
Fix image links.
davidbritch Mar 16, 2023
f320a1d
Add entitlements.
davidbritch Mar 16, 2023
72002b7
Update Info.plist
davidbritch Mar 16, 2023
6f488fd
Define build properties
davidbritch Mar 16, 2023
d8a028c
Disable code signature verification
davidbritch Mar 16, 2023
711bcd6
Edits.
davidbritch Mar 16, 2023
49a4a80
Add to TOC.
davidbritch Mar 16, 2023
a57de75
Notarizing your app.
davidbritch Mar 17, 2023
39d0f15
Fix bookmarks.
davidbritch Mar 17, 2023
303b83b
Edits.
davidbritch Mar 17, 2023
ab118da
Edits.
davidbritch Mar 17, 2023
26fcdeb
Edit.
davidbritch Mar 17, 2023
10bdae5
Apple developer portal > Apple Developer Account
davidbritch Mar 20, 2023
cb6f3a8
Create a developer cert.
davidbritch Mar 20, 2023
da826c5
Create a developer profile
davidbritch Mar 20, 2023
8346327
Provisioning profile.
davidbritch Mar 20, 2023
9c65ac7
Fix broken links.
davidbritch Mar 20, 2023
cf7ad47
The rest of it.
davidbritch Mar 20, 2023
67ed73c
Mac Catalyst publishing overview.
davidbritch Mar 20, 2023
1debc58
Fix image link.
davidbritch Mar 20, 2023
d07a012
Refreshed publish unsigned app content.
davidbritch Mar 20, 2023
51e0148
Fix selectors.
davidbritch Mar 20, 2023
2d76c6b
Edit.
davidbritch Mar 20, 2023
dd41929
macOS folder renamed to mac-catalyst
davidbritch Mar 21, 2023
12c414a
Fix build.
davidbritch Mar 21, 2023
24c9fb3
Edits.
davidbritch Mar 21, 2023
56bc238
More include files.
davidbritch Mar 21, 2023
9fadbad
Fix image links.
davidbritch Mar 21, 2023
4764b26
Remove app id configuration.
davidbritch Mar 22, 2023
cfefe88
Two CSRs required.
davidbritch Mar 22, 2023
7f000e5
Edits.
davidbritch Mar 22, 2023
fde9cbe
Remove configure your app id.
davidbritch Mar 22, 2023
7bd5874
Edits.
davidbritch Mar 22, 2023
aaa3a7c
Edits.
davidbritch Mar 22, 2023
b22bb30
Edits.
davidbritch Mar 22, 2023
f225433
Edits.
davidbritch Mar 22, 2023
dabd6c5
Replace hard tabs.
davidbritch Mar 23, 2023
ec9abe1
Redirects.
davidbritch Mar 23, 2023
fa3dc28
Fix duplicate alt text.
davidbritch Mar 23, 2023
10947b9
Merge branch 'main' into dabritch-mac-publishing
davidbritch Mar 23, 2023
35588de
Edit.
davidbritch Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
16 changes: 13 additions & 3 deletions docs/TOC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/android/deployment/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion docs/android/deployment/publish-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/deployment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions docs/ios/apple-account-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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:

Expand All @@ -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:

Expand All @@ -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:

Expand All @@ -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:

Expand All @@ -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.

Expand All @@ -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.
18 changes: 9 additions & 9 deletions docs/ios/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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.

Expand All @@ -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`:
Expand All @@ -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:

Expand All @@ -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.":::
Expand Down Expand Up @@ -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.
Expand Down
Loading