Cordova Archive
Creates an archive of your Cordova project by calling cordova prepare and then cordova compile, using your Cordova build configuration.
The Step creates an archive of your Cordova project: it prepares the project by calling cordova prepare and then archives it by calling cordova compile with the Cordova CLI.
If you want to perform code signing on your app, the Step requires the Generate Cordova build configuration Step: this Step provides the configuration for the Cordova Archive Step.
Configuring the Step
The Step needs to know the platform (iOS, Android, or both), the mode (release or debug), and the target (device or emulator) of your build. You decide whether you want the Step to run the cordova prepare command or you want to use the Cordova Prepare Step.
-
In the Platform to use in cordova-cli commands input, set the platforms you need.
-
In the Build command configuration input, set the build mode for the app.
This can be either
releaseordebug. -
In the Build command target input, set whether you want to build the app for a device or an emulator.
-
If you use the Cordova Prepare Step, set the Should
cordova preparebe executed beforecordova compile? input tofalse. -
If you want to deploy your app, the Build configuration path to describe code signing properties input should be set to
$BITRISE_CORDOVA_BUILD_CONFIGURATION.This Environment Variable is exposed by the Generate Cordova build configuration Step.
Troubleshooting
- If you run a
releasebuild, make sure that your code signing configurations are correct. The Step will fail if the Generate Cordova build configuration Step does not have the required code signing inputs - for example, if you mean to deploy an iOS app to the App Store, you need a Distribution code signing identity. And of course check the code signing files that you uploaded to Bitrise!

