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

Running `cordova build` a 2nd time regenerates config.xml with the installed plugins missing (ios only)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • Master, 3.4.0
    • cordova-cli
    • None

    Description

      When running `cordova build`, it incorrectly generates the config.xml, such that my plugins are not listed and therefor won't work.

      (BTW, I'm talking about the config.xml in platforms/ios/myproject/config.xml - not platforms/ios/www/config.xml - NB - can't these have different names? It's too confusing).

      It only does this in certain situations. Let me try an explain:

      I have installed several cordova plugins into my CLI project. i.e.

      → cordova git:(master) × cordova plugin list
      [ 'com.phonegap.plugins.barcodescanner',
      'com.sagetechnology.plugins.idblue',
      'org.apache.cordova.console',
      'org.apache.cordova.device',
      'org.apache.cordova.dialogs',
      'org.apache.cordova.globalization',
      'org.apache.cordova.network-information',
      'org.apache.cordova.splashscreen' ]

      If I then add the ios platform, it will correctly generate the iOS project with a correct config.xml.

      If I then run `cordova build`, everything is still OK.

      However, if I then immediately run `cordova build` a 2nd time, it stuffs up the config.xml file, and regenerates it with my installed plugins missing.

      It only started doing this after I updated to Cordova 3.2.0.

      Attachments

        Issue Links

          Activity

            People

              drkemp David Kemp
              asgeo1 Adam George
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: