Ionic archive v1.1.0

We released a new version (1.1.0) of Ionic archive step.

Changes:

  • NEW INPUT: cordova_ios_version - The version of cordova-ios plugin you want to use
  • NEW INPUT: cordova_android_version - The version of cordova-android plugin you want to use
  • manage go dependencies with dep
2 Likes

Hi @godreikrisztian !

I need to set the cordova-ios version in my workflow, and “Ionic Archive 1.1.0” has a bug.

If I use the master string, the cordova-ios is installed correctly.
If I try to use the version number (for example, I need 4.5.3), the plugin is not installed and the error below is displayed.
I also tried with quotes “4.5.3”.

Building project

$ ionic “cordova” “platform” “rm” “ios”

cordova platform remove ios --save
:heavy_check_mark: Running command - done!
Removing platform ios from config.xml file…
Removing ios from cordova.platforms array in package.json
$ ionic “cordova” “platform” “rm” "android"
cordova platform remove android --save
:heavy_check_mark: Running command - done!
Removing platform android from config.xml file…
Removing android from cordova.platforms array in package.json
$ ionic “cordova” “platform” “add” "ios@4.5.3"
cordova platform add ios@4.5.3 --save
:heavy_multiplication_x: Running command - failed!
[ERROR] Exception: Using cordova-fetch for cordova-ios@4.5.3
Error: Failed to fetch platform cordova-ios@4.5.3
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for cordova-ios@4.5.3
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/vagrant/.npm/_logs/2017-10-26T10_30_20_536Z-debug.log

command failed, error: exit status 1

Can help me?

Hi @ipirangamobile,
thanks for the report!

The cordova platform add ios@4.5.3 --save command format seems to be good. However it seems the cordova-ios plugin version 4.5.3 is not yet published as an npm package (the release of cordova-ios .4.5.3 is created 14 hours ago).

If you call cordova platform add ios@4.5.3 --save npm says:

npm ERR! notarget No compatible version found: cordova-ios@4.5.3
npm ERR! notarget Valid install targets:

and it lists the valid versions, 4.5.3 is not listed. But cordova platform add ios@4.5.2 --save works great, so the command seems to be good.

1 Like

Tks!
Works with 4.5.2.

1 Like