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

`cordova prepare` should build project with relative paths to custom frameworks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.3.0
    • None
    • cordova-cli
    • None

    Description

      Thanks so much for adding the new "custom frameworks" feature for plugins in 3.3.0.

      I've found an issue with it though. When you build/prepare the iOS project, the path to the iOS framework is absolute.

      That's not cool, because if I commit the `platforms` directory to version control (which I don't like to do, but I currently have to due to other build issues), anyone else who checks it out in a different location the framework will not be found.

      Basically, I have a plugin like so:

      /plugins/
      /com.idblueplugin
      /src
      /ios
      /frameworks
      /IDBLUE.framework
      plugin.xml

      Inside plugin.xml I have a reference to the framework:

      <framework src="src/ios/frameworks/IDBLUE.framework" custom="true" />

      When I build the project, I would expect it should create a relative path to that custom framework:

      FRAMEWORK_SEARCH_PATHS = (
      "$(inherited)",
      "../../platforms/ios",
      );

      But instead it creates an absolute path like this:

      FRAMEWORK_SEARCH_PATHS = (
      "$(inherited)",
      "/Users/asgeo1/Projects/myproject/cordova/platforms/ios",
      );

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asgeo1 Adam George
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: