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

Restoring platforms and plugins causes plugin install to be triggered twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • cordova-lib
    • None

    Description

      Using the basic starter app with the following config.xml:

      <?xml version='1.0' encoding='utf-8'?>
      <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
          <name>HelloCordova</name>
          <content src="index.html" />
          <access origin="*" />
          <engine name="ios" version="3.8.0" />
          <feature name="Device">
              <param name="id" value="org.apache.cordova.device" />
          </feature>
      </widget>
      

      Running cordova prepare ios without a platforms or plugins directory produces this output:

      Restoring platform ios@3.8.0 referenced on config.xml
      Adding ios project...
      iOS project created with cordova-ios@3.8.0
      Discovered org.apache.cordova.device in config.xml. Installing to the project
      Fetching plugin "org.apache.cordova.device" via plugin registry
      Installing "org.apache.cordova.device" for ios
      Plugin "org.apache.cordova.device" already installed on ios.

      It looks like Cordova is trying to install the plugin twice.

      Attachments

        Activity

          People

            TimBarham Tim Barham
            cjpearson Connor Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: