Skip to content

docs(app-store.md): refactor guide to use capacitor commands #3302

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

Closed
wants to merge 1 commit into from
Closed
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
28 changes: 21 additions & 7 deletions docs/deployment/app-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,36 @@ To enroll in the Apple Developer Program, follow the instructions [listed here](
If the iOS platform is not already added, be sure to add it:

```shell
ionic cordova platform add ios
ionic cap add ios
```

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

```shell
ionic cordova build ios --prod
ionic build --prod
```

This will generate the minified code for the web portion of an app and copy it over the iOS code base.
This will generate the minified code for the web portion of an app.

From here, open the `.xcworkspace` file in `./platforms/ios/` to start Xcode.
For this first build, and after you make any binary changes like adding a plugin, use the sync command:

:::tip
You can also have a release build generated automatically by using the `--release` flag.
:::
```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
```

## Generating Signing Certs

Expand Down