Search docs/

ionic capacitor build

Build an Ionic project for a given platform

ionic capacitor build <platform> [options]

ionic capacitor build will do the following:

  • Perform ionic build
  • Copy web assets into the specified native platform
  • Open the IDE for your native project (Xcode for iOS, Android Studio for Android)

Once the web assets and configuration are copied into your native project, you can build your app using the native IDE. Unfortunately, programmatically building the native project is not yet supported.

To configure your native project, see the common configuration docs as well as low-level configuration for iOS and Android.

ionic capacitor build ionic capacitor build androidionic capacitor build ios

入力データ

platform

Description

The platform to build for (e.g. android, ios)

オプション

--no-build

Description

Do not invoke Ionic build

--no-open

Description

Do not invoke Capacitor open

--prod

Description

Flag to use the production configuration

詳細オプション

--configuration=<conf>

Description

Specify the configuration to use.

Aliases-c

--source-map

Description

Output source maps

--watch

Description

Rebuild when files change