diff --git a/docs/deployment/app-store.md b/docs/deployment/app-store.md index 63958ba6920..f0e624be44c 100644 --- a/docs/deployment/app-store.md +++ b/docs/deployment/app-store.md @@ -3,6 +3,9 @@ title: iOS App Store Deployment sidebar_label: iOS App Store --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + Publish to iOS App Store: Apple App Store Deployment for Ionic + + +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 +``` + + + + If the iOS platform is not already added, be sure to add it: ```shell @@ -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. ::: + + + ## 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.