The option to run
cordova platform add <platform> was removed. These commands are not suited to be run on a CI environment, and should be ran during development. Instead,
cordova prepare <platform> is called, which restores cordova platforms and plugins.
Adding a default options flag for cordova to use the legacy XCode build system, as cordova does not yet officially support the new one. (https://github.com/apache/cordova-ios/issues/407)
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).
If platform rm or add is needed to be run during the build, add a script step before the corodva-archive step for this functionality.
Moving from v1 to v2:
- If using cordova-prepare step, update it to version 1.
- Make sure to remove the input parameters add_platform, readd_platform.