Skip to content

Commit 74cf281

Browse files
docs(app-store): update release build to include capacitor steps (#3324)
Co-authored-by: Matthew Harris <rtpharry@hotmail.com>
1 parent f4d8e1a commit 74cf281

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/deployment/app-store.md

+46
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: iOS App Store Deployment
33
sidebar_label: iOS App Store
44
---
55

6+
import Tabs from '@theme/Tabs';
7+
import TabItem from '@theme/TabItem';
8+
69
<head>
710
<title>Publish to iOS App Store: Apple App Store Deployment for Ionic</title>
811
<meta
@@ -24,6 +27,46 @@ To enroll in the Apple Developer Program, follow the instructions [listed here](
2427

2528
## Generating a release build
2629

30+
<Tabs groupId="runtime">
31+
<TabItem value="capacitor" label="Capacitor" default>
32+
33+
If the iOS platform is not already added, be sure to add it:
34+
35+
```shell
36+
ionic cap add ios
37+
```
38+
39+
With the platform added, run the build command with the `--prod` flag:
40+
41+
```shell
42+
ionic build --prod
43+
```
44+
45+
This will generate the minified code for the web portion of an app.
46+
47+
For this first build, and after you make any binary changes like adding a plugin, use the sync command:
48+
49+
```shell
50+
npx cap sync ios
51+
```
52+
53+
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:
54+
55+
```shell
56+
npx cap copy ios
57+
```
58+
59+
From here, the project is now managed as if it was a native Xcode app (because it is).
60+
61+
Open the project in `./ios/` to start Xcode:
62+
63+
```shell
64+
npx cap open ios
65+
```
66+
67+
</TabItem>
68+
<TabItem value="cordova" label="Cordova">
69+
2770
If the iOS platform is not already added, be sure to add it:
2871

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

90+
</TabItem>
91+
</Tabs>
92+
4793
## Generating Signing Certs
4894

4995
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.

0 commit comments

Comments
 (0)