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

Installation of plugins does not work for iOS - config.xml feature lines not added

    XMLWordPrintableJSON

Details

    Description

      Installation of iOS plugins does not work for iOS.

      Update: does not work in 3.1 cordova either.

      When installing the plugin via "cordova plugin add", the plugins fail to install correctly to the iOS platform:

      • source code (.js, .m, .h and .bundle) files are not copied over
      • proper frameworks are not being added to the project
      • config.xml file is not updated with plugin information

      Tried it on Device, Contacts and Dialogs and some other plugins.
      Update: tried on network-information plugin with cordova 3.1

      the workaround is to perform the above steps manually. but it is not documented anywhere.

      Note: it worked for me during one test, when the project was fresh. However after making a few minor changes and running "cordova prepare" or "cordova build" a few times, it stops working for iOS - i.e. you cannot add plugins without issues above. Android works fine.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              olegforyou Oleg
              Votes:
              6 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 72h
                  72h
                  Remaining:
                  Remaining Estimate - 72h
                  72h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified