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

[SR-12956] swift test --parallel: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest #4535

Closed
benlangmuir opened this issue Jun 8, 2020 · 4 comments
Labels

Comments

@benlangmuir
Copy link
Member

Previous ID SR-12956
Radar rdar://problem/64122849
Original Reporter @benlangmuir
Type Bug
Environment

macOS 10.15.5
swift-5.3-DEVELOPMENT-SNAPSHOT-2020-06-06-a

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: e0622f28fe458c4a1cbc5468682742dc

Issue Description:

Trying to run tests with --parallel is failing in the latest toolchain from Swift.org (without --parallel is working fine). The failing reference is from swiftpm-xctest-helper.

$ export TOOLCHAINS="org.swift.53202006061a"

$ swift package init --type library

$ swift test
[6/6] Linking pkgPackageTests
Test Suite 'All tests' started at 2020-06-08 09:39:18.309
Test Suite 'pkgPackageTests.xctest' started at 2020-06-08 09:39:18.311
Test Suite 'pkgTests' started at 2020-06-08 09:39:18.311
Test Case '-[pkgTests.pkgTests testExample]' started.
Test Case '-[pkgTests.pkgTests testExample]' passed (0.071 seconds).
Test Suite 'pkgTests' passed at 2020-06-08 09:39:18.382.
     Executed 1 test, with 0 failures (0 unexpected) in 0.071 (0.071) seconds
Test Suite 'pkgPackageTests.xctest' passed at 2020-06-08 09:39:18.382.
     Executed 1 test, with 0 failures (0 unexpected) in 0.071 (0.071) seconds
Test Suite 'All tests' passed at 2020-06-08 09:39:18.382.
     Executed 1 test, with 0 failures (0 unexpected) in 0.071 (0.073) seconds

$ swift test --parallel
error: signalled(6): DEVELOPER_DIR=/Xcodes/11.4/Xcode.app/Contents/Developer HOME=/Users/blangmuir LESS=-R __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 DISPLAY=/private/tmp/com.apple.launchd.uoKDaZGX9Z/org.macosforge.xquartz:0 EDITOR=vim TERM=xterm-256color TOOLCHAINS=org.swift.53202006061a PAGER=less LANG=en_US.UTF-8 _=/usr/bin/swift LOGNAME=blangmuir LSCOLORS=Gxfxcxdxbxegedabagacad XPC_SERVICE_NAME=0 PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/appleinternal/bin:/opt/apple/bin:/opt/xbs/bin:/opt/X11/bin:/opt/distcc-r796/bin:/Users/blangmuir/bin:/Users/blangmuir/homebrew/bin XPC_FLAGS=0x0 ZSH=/Users/blangmuir/.oh-my-zsh CPATH=/usr/local/include TERM_SESSION_ID=C461A214-3C13-44B9-9481-4F4D8F70EAB9 PWD=/tmp/pkg SHLVL=1 GIT_CEILING_DIRECTORIES=::/Users/blangmuir OLDPWD=/tmp TERM_PROGRAM=Apple_Terminal LIBRARY_PATH=/usr/local/lib SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.ZvdfFJ7IvH/Listeners SHELL=/bin/zsh USER=blangmuir SDKROOT=/System/Volumes/Data/Xcodes/11.4/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk DYLD_LIBRARY_PATH=/System/Volumes/Data/Xcodes/11.4/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib DYLD_FRAMEWORK_PATH=/System/Volumes/Data/Xcodes/11.4/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks TERM_PROGRAM_VERSION=433 TMPDIR=/var/folders/bc/6yb9j0z56_xdjnb7k0znv6840000gn/T/ /Users/blangmuir/Library/Developer/Toolchains/swift-5.3-DEVELOPMENT-SNAPSHOT-2020-06-06-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper /private/tmp/pkg/.build/x86_64-apple-macosx/debug/pkgPackageTests.xctest /var/folders/bc/6yb9j0z56_xdjnb7k0znv6840000gn/T/TemporaryFile.DN7J0F output:
    dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
      Referenced from: /Users/blangmuir/Library/Developer/Toolchains/swift-5.3-DEVELOPMENT-SNAPSHOT-2020-06-06-a.xctoolchain/usr/libexec/swift/pm/swiftpm-xctest-helper
      Reason: image not found
@benlangmuir
Copy link
Member Author

@swift-ci create

@benlangmuir
Copy link
Member Author

swift-5.2.4-RELEASE: fails the same way

swift-5.1-RELEASE: succeeds

@swift-ci
Copy link
Contributor

Comment by Jason Wray (JIRA)

This still reproduces using swift-5.3.2-RELEASE, but not with any Xcode toolchains. Seems like a duplicate of SR-12510.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@benlangmuir
Copy link
Member Author

benlangmuir commented Apr 25, 2022

Works in 5.5

@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants