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-15445] swift test fails using Swift 5.5.2 on macOS 11: Library not loaded: @rpath/libswift_Concurrency.dylib #57750

Closed
PSchmiedmayer opened this issue Nov 5, 2021 · 3 comments
Labels

Comments

@PSchmiedmayer
Copy link

PSchmiedmayer commented Nov 5, 2021

Previous ID SR-15445
Radar rdar://problem/85209998
Original Reporter @PSchmiedmayer
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 79c694f9e1cb7f294767383a9b8af7e6

Issue Description:

Running swift test in the Apodini repo’s PR#374 setting the deployment target to macOS 11 results in the following error with Swift 5.5.2 on macOS 11:

Merging module ApodiniTests
 Linking ApodiniPackageTests
 Build complete!
 xctest[14418:40935] The bundleApodiniPackageTests.xctestcouldnt be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
 xctest[14418:40935] (dlopen_preflight(/Users/runner/work/Apodini/Apodini/.build/x86_64-apple-macosx/debug/ApodiniPackageTests.xctest/Contents/MacOS/ApodiniPackageTests): Library not loaded: @rpath/libswift_Concurrency.dylib
 Referenced from: /Users/runner/work/Apodini/Apodini/.build/x86_64-apple-macosx/debug/ApodiniPackageTests.xctest/Contents/MacOS/ApodiniPackageTests
 Reason: image not found)

The issue also seems to happen on normal executables as discussed in this Swift Forums thread:https://forums.swift.org/t/swift-5-5-2-xcode-13-2-beta-fails-to-link-libswift-concurrency-dylib/53263

Unfortunately the workaround detailed in the "Update 2" response doesn't work for us as we need to run tests.

An easy to reproduce example that builds faster can be found at https://github.com/Apodini/Template-Repository.

@DougGregor
Copy link
Member

DougGregor commented Nov 9, 2021

@swift-ci create

@DougGregor
Copy link
Member

DougGregor commented Nov 10, 2021

@PSchmiedmayer
Copy link
Author

PSchmiedmayer commented Nov 10, 2021

@DougGregor Thanks a lot for taking a look at the issue, addressing it In the PR, and solving it so fast!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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