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

Plugman plugin.xml iOS source-file error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • None
    • cordova-plugman
    • None

    Description

      When creating a plugin and adding a platform to it, for iOS, Plugman creates the following plugin.xml:

      <?xml version='1.0' encoding='utf-8' ?>
      <plugin id="com.sap.me" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
        <name>test4</name>
        <js-module name="test4" src="www/test4.js">
          <clobbers target="cordova.plugins.test4" />
        </js-module>
        <platform name="ios">
          <config-file parent="/*" target="config.xml">
            <feature name="test4">
              <param name="ios-package" value="test4" />
            </feature>
          </config-file>
          <source-file src="src/ios/CDVtest4.m" />
        </platform>
      </plugin>
      

      Notice that it points to the following source file:

          <source-file src="src/ios/CDVtest4.m" />
      

      However, the source folder doesn't contain that file, it has the following: src/ios/test4.m. The file names don't match, this won't work.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            jwargo John M. Wargo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: