# Ionic archive v2.0.0

**URL:** <https://discuss.bitrise.io/t/ionic-archive-v2-0-0/7357>\
**Category:** Changelog\
**Created:** [December 14, 2018, 12:15pm UTC](https://discuss.bitrise.io/t/ionic-archive-v2-0-0/7357 "2018-12-14T12:15:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [December 14, 2018, 12:15pm UTC](https://discuss.bitrise.io/t/ionic-archive-v2-0-0/7357/1 "2018-12-14T12:15:59Z")

</div>

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](https://forum.ionicframework.com/t/how-to-build-ionic-cordova-with-xcode-10/142044))  
If `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](https://issues.apache.org/jira/browse/CB-12242)).

### Migration guide

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.

1. If using ionic-prepare step, update that to version 1._._
2. 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 (`run_ionic_prepare: “false”`).

> **[bitrise-community/steps-ionic-archive](https://github.com/bitrise-community/steps-ionic-archive/releases/2.0.0)**
>
> Contribute to bitrise-community/steps-ionic-archive development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 14, 2019, 12:16pm UTC](https://discuss.bitrise.io/t/ionic-archive-v2-0-0/7357/2 "2019-03-14T12:16:00Z")

</div>

Closed on March 14, 2019, 12:16pm UTC

This topic was automatically closed after 90 days. New replies are no longer allowed.
