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

Error missing cordova_plugins.js for ios after clean if android platform added first

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.3.0
    • Fix Version/s: 6.3.2
    • Component/s: cordova-lib
    • Labels:

      Description

      Cordova CLI v6.3.0, Cordova Android v5.2.1, Cordova iOS v4.2.0 on Mac OS X 10.11.6.

      Performing run/emulate/build for the iOS platform fails if you have added the Android platform first.

      For example, this works (note iOS platform added first):

      $ cordova create myapp
      $ cd my app
      $ platform add ios
      $ platform add android
      $ cordova clean ios
      $ cordova emulate ios

      But, this does not work (note Android platform added first):

      $ cordova create myapp
      $ cd my app
      $ platform add android
      $ platform add ios
      $ cordova clean ios
      $ cordova emulate ios
      Executing: cordova emulate ios
      Fatal error: Error: ENOENT: no such file or directory, open '/Users/graememawson/Cordova/myapp/platforms/ios/www/cordova_plugins.js’

        Attachments

        1. log_success.txt
          27 kB
          Graeme Mawson
        2. log_failure.txt
          27 kB
          Graeme Mawson

          Issue Links

            Activity

              People

              • Assignee:
                vladimir.kotikov Vladimir Kotikov
                Reporter:
                gmawson Graeme Mawson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: