Skip to content

docs(app-store): update release build to include capacitor steps #3324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
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
46 changes: 46 additions & 0 deletions docs/deployment/app-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: iOS App Store Deployment
sidebar_label: iOS App Store
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<head>
<title>Publish to iOS App Store: Apple App Store Deployment for Ionic</title>
<meta
Expand All @@ -24,6 +27,46 @@ To enroll in the Apple Developer Program, follow the instructions [listed here](

## Generating a release build

<Tabs groupId="runtime">
<TabItem value="capacitor" label="Capacitor" default>

If the iOS platform is not already added, be sure to add it:

```shell
ionic cap add ios
```

With the platform added, run the build command with the `--prod` flag:

```shell
ionic build --prod
```

This will generate the minified code for the web portion of an app.

For this first build, and after you make any binary changes like adding a plugin, use the sync command:

```shell
npx cap sync ios
```

This will also copy the minified web code over. However, if your build is only source change then you can just copy the minified web files using:

```shell
npx cap copy ios
```

From here, the project is now managed as if it was a native Xcode app (because it is).

Open the project in `./ios/` to start Xcode:

```shell
npx cap open ios
```

</TabItem>
<TabItem value="cordova" label="Cordova">

If the iOS platform is not already added, be sure to add it:

```shell
Expand All @@ -44,6 +87,9 @@ From here, open the `.xcworkspace` file in `./platforms/ios/` to start Xcode.
You can also have a release build generated automatically by using the `--release` flag.
:::

</TabItem>
</Tabs>

## Generating Signing Certs

Generating certificates for iOS is a bit of an involved process, so be sure to check [Apple's official documentation](https://help.apple.com/xcode/mac/current/#/dev3a05256b8) on what certificates are and how to generate them.
Expand Down