New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-12510] Linking error when building tests with code coverage enabled #54952
Comments
@swift-ci create |
Comment by Jason Wray (JIRA) This reproduces for me using the current 5.3.2 toolchain from swift.org, but evidently not with toolchains that come with Xcode. |
This appears to work for me in 5.5, maybe it can be closed? |
Just tried this with the 5.6.1 toolchain from swift.org, and it failed with a similar error message for me:
|
I cannot reproduce using the original command |
Environment
Swift 5.2 release toolchain on macOS 10.15 (SIP enabled)
Additional Detail from JIRA
md5: ce8de84096ed138cb95c934dbc217c1b
Issue 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
The text was updated successfully, but these errors were encountered: