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

Podfile gets overwriten and some dependencies disappear

    XMLWordPrintableJSON

Details

    Description

      When you install some plugins that use CocoaPods, some of the libraries disappear from the Podfile.

      Steps to reproduce:

      1. cordova create testPods
      2. cd testPods
      3. cordova platform add ios
      4. cordova plugin add https://github.com/aerogear/aerogear-cordova-push/
      5. Open platforms/ios/Podfile and check that pod 'AeroGear-Push', '1.2.0' is there
      6. cordova plugin add https://github.com/jcesarmobile/cordova-plugin-tesseract-ocr
      7. Open platforms/ios/Podfile and check that pod 'TesseractOCRiOS', '~> 4.0.0' is there, but pod 'AeroGear-Push', '1.2.0' is gone

      Expected:
      have both
      pod 'AeroGear-Push', '1.2.0'
      pod 'TesseractOCRiOS', '~> 4.0.0'

      It's curious that if you install them in the opossite order, this doesn't happen

      In both cases, the pods.json file has the information of both pods

      This doesn't happen with all plugins, so looks like an edge case. I found this two plugins where the problem is present, but it was also reported on Slack.

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              jcesarmobile jcesarmobile
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: