Skip to content
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

Running swift test --list-tests from 5.7 development build of swift fails #5548

Closed
adam-fowler opened this issue May 23, 2022 · 3 comments
Closed

Comments

@adam-fowler
Copy link

adam-fowler commented May 23, 2022

If you run swift test --list-tests using the 5.7 development build of swift from May 18th 2022 it returns the following error.

Building for debugging...
Build complete! (0.19s)
error: signalled(6): /Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper /Users/adamfowler/Developer/server/hummingbird-project/hummingbird/.build/arm64-apple-macosx/debug/hummingbirdPackageTests.xctest /var/folders/6v/zhyq15kx1fz1d9hjv1zq9n8c0000gn/T/TemporaryFile.Bt4RzY output:
    dyld[64999]: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
      Referenced from: /Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper
      Reason: tried: '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../lib/XCTest.framework/Versions/A/XCTest' (no such file), '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../../../lib/swift/macosx/XCTest.framework/Versions/A/XCTest' (no such file), '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../lib/swift/macosx/XCTest.framework/Versions/A/XCTest' (no such file), '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../lib/XCTest.framework/Versions/A/XCTest' (no such file), '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../../../lib/swift/macosx/XCTest.framework/Versions/A/XCTest' (no such file), '/Library/Developer/Toolchains/swift-5.7-DEVELOPMENT-SNAPSHOT-2022-05-18-a.xctoolchain/usr/libexec/swift/pm/../lib/swift/macosx/XCTest.framework/Versions/A/XCTest' (no such file), '/System/Library/Frameworks/XCTest.framework/Versions/A/XCTest' (no such file)

Oddly enough swift test works fine.

Swift & OS version (output of swift --version && uname -a)

Apple Swift version 5.7-dev (LLVM 9fde71b269b42b8, Swift ddc46e1f5bd885d)
Target: arm64-apple-macosx12.0
Darwin Adams-MBP-M1-Max.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T6000 arm64

@ktoso
Copy link
Contributor

ktoso commented Jun 15, 2022

This seems to work on both released beta-1 and recent nightly:

-> % TOOLCHAIN=/Library/Developer/Toolchains/swift-PR-59397-199.xctoolchain/ $TOOLCHAIN/usr/bin/swift  --version
swift-driver version: 1.55.1 Apple Swift version 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2)
Target: arm64-apple-macosx13.0

it seems to work fine; maybe was just an issue that got fixed along the way?

@adam-fowler
Copy link
Author

Could it be because I'm running on Monterey, or don't have Xcode 14 beta installed

@adam-fowler
Copy link
Author

Looks like you need to run on a machine with macOS 13 installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants