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

Search path for custom framework is duplicated multiple times in FRAMEWORK_SEARCH_PATHS section

    XMLWordPrintableJSON

    Details

      Description

      This issue was originally reported as a part of CB-10108:

      It's leaves dupes (see snippet ahead) everytime the plugin is processed, and although it doesn't really cause any issues on compilation or runtime, it's still a bug.

      FRAMEWORK_SEARCH_PATHS = (
      	"$(inherited)",
      	"\"Tippz/Plugins/cordova-plugin-facebook4\"",
      	"\"Tippz/Plugins/cordova-plugin-facebook4\"",
      	"\"Tippz/Plugins/cordova-plugin-facebook4\"",
      	"\"Tippz/Plugins/cordova-plugin-facebook4\"",
      	"\"Tippz/Plugins/cordova-plugin-facebook4\"",
      );
      

      This could be easily reproduced by creating a blank project with iOS platform added (versions doesn't matter, but i have a stable repro with cordova@5.4.1 and ios@3.9.2) and adding any plugin, that contains more than one custom framework (for examle cordova-plugin-facebook4)

      The cause of the issue is the node-xcode module, which doesn't checks, if the same path is in FRAMEWORK_SEARCH_PATHS already, when adds a new custom framework to project.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vladimir.kotikov Vladimir Kotikov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: