The option to run
ionic cordova platform [rm | add] <platform> was removed. These commands are not suited to be run on a CI environment, and should be ran during development. Instead,
ionic cordova prepare --no-build is called, which restores cordova platforms and plugins.
Added a default options flag for ionic to use the legacy XCode build system, as cordova does not yet officially support the new one. (https://forum.ionicframework.com/t/how-to-build-ionic-cordova-with-xcode-10/142044)
yarn.lock is present in the working directly, yarn is used to install cordova and ionic packages (if related parameters are present). This can conflict with platform add command tough (https://issues.apache.org/jira/browse/CB-12242).
Moving from v1 to v2
If platform rm or add is needed to be run during the build, add a script step before the ionic-archive step for this functionality.
- If using ionic-prepare step, update that to version 1..
- Make sure to remove the input parameters readd_platform, cordova_ios_version, cordova_android_version. If the ionic-prepare step is used, add a new input parameter run_ionic_prepare and set it to false (