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

plugman - source-file framework=true - Build Error - can't find library during Linker phase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugman
    • None
    • plugman 0.7.6
      Cordova master/2.8.0

    Description

      This is separate from CB-3429 (which is fixed), and is apparent when you actually try to build the project.

      Plugin tested with: https://github.com/shazron/TestFlightPlugin using plugman 0.7.6

      The plugin installs fine, but when building, there is a linker error "library TestFlight not found -lTestFlight".

      When manually adding a library to the Link Binary With Libraries section, there is an additional step that Xcode automatically adds to your project, namely adding the path of the library to the "Library Search Paths" of the project's build settings. See "LIBRARY_SEARCH_PATHS.png" attached.

      Attached also is PBXPROJ.png where it shows how the setting looks like in the Debug and Release configurations.

      Basically the fix is to add to the LIBRARY_SEARCH_PATHS build setting, and add the path of the .a itself, but substitute $(SRCROOT) for the path of the project.

      Attachments

        1. Screen Shot 2013-05-21 at 11.26.54 AM.png
          28 kB
          Filip Maj
        2. PBXPROJ.png
          271 kB
          Shazron Abdullah
        3. LIBRARY_SEARCH_PATHS.png
          362 kB
          Shazron Abdullah

        Activity

          People

            filmaj Filip Maj
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: