Skip to content

Commit

Permalink
docs(app-store): update release build to include capacitor steps (#3324)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Harris <rtpharry@hotmail.com>
  • Loading branch information
brandyscarney and rtpHarry authored Dec 15, 2023
1 parent f4d8e1a commit 74cf281
Showing 1 changed file with 46 additions and 0 deletions.
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

1 comment on commit 74cf281

@vercel
Copy link

@vercel vercel bot commented on 74cf281 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-git-main-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app
ionic-docs-ionic1.vercel.app

Please sign in to comment.