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

Missing Plugin source file on iOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • None
    • cordova-plugman
    • Mac OSX 10.9, plugman 0.17.0, cordova 3.3.0-0.1.1, xcode 5

    Description

      Bug
      ========
      1. cordova create cordova-issue com.example.cordova.issue cordova-issue
      2. cd cordova-issue/ && cordova platform add ios && cordova build && cordova plugin add org.apache.cordova.device
      3. Open the project in xcode5, and you will find CDVDevice.h and CDVDevice.m are missing.

      Reason
      ========
      It is caused by [cordova-plugman.git] / src / platforms / ios.js.
      In the parseProjectFile function, it searches for "config.xml" using "glob.sync", and then filter the file path list, and then use the first file in the remaining list.

      When the name of the project, 3rd parameter in the "cordova create" command, starts with a lowercased letter after "b", it will not be list as the first item among all the candidates, and the "*/build/*"-like file paths are not filtered out.

      Quick Fix
      ========
      Filter all the file candidates contain "/build/".

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            AthenaLightened xu.li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: