icon

Generate Cordova build configuration

Generate a build.json file specifying code signing parameters for the Cordova Archive Step.

"To sign a Cordova app, you need a build.json file with the appropriate code signing settings. This Step creates that file based on your inputs, and passes it on to the Cordova Archive or Ionic Archive Step that builds your app. The Step takes code signing settings for both iOS and Android projects.

Configuring the Step

Before you start, make sure you have either the Certificate and profile installer Step or the iOS Auto Provisioning Step in your Workflow. Either one is required for code signing iOS apps.

You also need to upload the appropriate iOS code signing files (certificate and provisioning profile), and an Android keystore file.

  1. Set the build configuration type in the Build configuration input. The input value must be the same as the value of the Build command configuration input of the Cordova Archive Step.
  2. Configure the Step for iOS apps with the following inputs:
    • Code Sign Identity: enter a Developer or a Distribution identity.
    • Provisioning Profile: enter the appropriate Provisioning Profile.
    • Packaging Type: this controls what type of build is generated by Xcode. Make sure it matches the type of code signing files you want to use for the build.
  3. Configure the Step for Android apps with the following inputs:
    • Keystore password
    • Alias
    • Private key password

If all goes well, the Step should export the $BITRISE_CORDOVA_BUILD_CONFIGURATION Environment Variable that is used by the Cordova Archive Step.

Useful links

Related Steps

Similar steps

Activates Bitrise Remote Build Cache for subsequent Bazel builds in the workflows.

Activates Bitrise Remote Build Cache add-on for subsequent Gradle builds in the workflow

Activates Bitrise Remote Build Cache add-on for subsequent Xcode builds in the workflow

Starts a new build with the specified Workflow(s).