Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1276

swift tests fail to link library during test build when name doesn't match tested target

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Component/s: Package Manager
    • Labels:
      None
    • Environment:

      xcode 7.3
      10.11.4 (15E65)
      swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a
      Same thing happens with 3-24 snapshotp

      Description

      I added some test to a fork of the sample playing card.
      https://github.com/masters3d/example-package-playingcard
      It builds okay but the test do not link.
      Log.
      https://gist.github.com/masters3d/658fbaf009ef3b85b8509bf9dc6b2857

      This seems similar to https://bugs.swift.org/browse/SR-151
      but this is just happens for the test build.

      Steps to reproduce:
      swift build -v // See gist log.
      swift test // See gist log.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            masters3d Chéyo Jiménez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: