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

Plugin features don't get written to iOS-specific config.xml

    XMLWordPrintableJSON

    Details

      Description

      When running `cordova prepare` or `cordova platform add ios` after adding plugins, the platform-specific config.xml file for iOS (`platforms/ios/NAME/config.xml`) doesn't have `<feature>` tags, which effectively prevents any installed plugin from working.

      The tags do get added when installing plugins after the iOS platform was created.

      How to reproduce - this creates a working config.xml:

      	cordova create test
      	cd test
      	cordova platform add ios
      	cordova plugin add cordova-plugin-device --save
      

      This creates a broken config.xml (resulting in `Plugin 'Device' not found, or is not a CDVPlugin.` error when running on a an iPhone):

      	cordova create test
      	cd test
      	cordova plugin add cordova-plugin-device --save
      	cordova platform add ios
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                blade.sk Matus Koprda
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: