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

Linking error when building tests with code coverage enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Environment:

      Swift 5.2 release toolchain on macOS 10.15 (SIP enabled)

      Description

      Running /Library/Developer/Toolchains/swift-5.2-RELEASE.xctoolchain/usr/bin/swift test --enable-code-coverage --list-tests with the 5.2 toolchain results in the following error:

      error: signalled(6): <env variables printed here> 

      {{dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest}}
      Referenced from: /Library/Developer/Toolchains/swift-5.2-RELEASE.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper
       Reason: image not found

       

      This used to work fine with Swift 5.1 toolchain

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            egor.zhdan Egor Zhdan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: