Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13397

`cordova build` does not regenerate `platforms` directories

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None
    • Environment:

      Mac OS X 10.12.6

      Description

      If the `platforms` directory is deleted from a Cordova project, running `cordova build` fails to restore it from the `config.xml` file, as it should, and instead gives the error message:

      Error: No platforms added to this project. Please use `cordova platform add <platform>`.

      Running `cordova prepare` does however correctly restore it. However, since the documentation for `cordova build` clearly indicates that it is equivalent to running `cordova prepare` + `cordova compile`, this should not be the case.

      Note: `cordova build` is able to restore the `plugins` directory without any problems.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexreg Alexander Regueiro
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: