Building with other Apache Cordova Versions (updated)

VoltBuilder always uses the current default version of the Apache Cordova libraries. However, you can override this to use a different version as needed.

First, to see what version VoltBuilder is currently using, look in the log. You’ll see the platforms, plugins, Apache Cordova and Xcode (if you’re building for iOS) versions.

Cordova Packages:

    cli: 10.0.0
        common: 4.0.2
        create: 3.0.0
        lib: 10.0.0
            common: 4.0.2
            fetch: 3.0.0
            serve: 4.0.0

Project Installed Platforms:

    ios: 6.1.1

Project Installed Plugins:

    cordova-plugin-camera: 4.1.0
    cordova-plugin-device: 2.0.3
    cordova-plugin-dialogs: 2.0.2
    cordova-plugin-geolocation: 4.0.2
    cordova-plugin-native-spinner: 1.1.3
    cordova-plugin-printer: 0.8.0
    cordova-plugin-safariviewcontroller: 1.6.0
    cordova-plugin-screen-orientation: 3.0.2
    cordova-plugin-statusbar: 2.4.3
    cordova-plugin-uniquedeviceid: 1.3.2
    cordova-sqlite-evcore-extbuild-free: 0.12.1

Environment:

    OS: macOS Catalina 10.15.6 (19G73) (darwin 19.6.0) x64
    Node: v12.18.3
    npm: 6.14.7

ios Environment:

    xcodebuild:
Xcode 11.6
Build version 11E708

Notice that it’s using ios 6.1.1 as the platform. That’s the current one.

You can specify a different one. For example, this uses the previous one: (you don’t want to do this: your app will probably not be accepted by Apple)

<engine name="ios" spec="5.1.1" />

Similarly, to use another version of Android, add this line to your config.xml:

<engine name="android" spec="9.0.0" />

Apache Cordova Android 9.0.0 was released on Jun 29, 2020. More info here: https://cordova.apache.org/announcements/2020/06/29/cordova-android-9.0.0.html

Join Our Newsletter
Stay up to date on all of the latest news and updates for VoltBuilder