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

XCTest not found #406

Open
ffried opened this issue May 5, 2022 · 2 comments
Open

XCTest not found #406

ffried opened this issue May 5, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ffried
Copy link
Contributor

ffried commented May 5, 2022

Describe the bug
Running swift test in a SPM package using the swift environment set up using this action fails with:

dyld: Library not loaded: @rpath/XCTest.framework/Versions/A/XCTest
      Referenced from: /Users/runner/hostedtoolcache/swift-macOS/5.6/x64/usr/libexec/swift/pm/swiftpm-xctest-helper
      Reason: image not found

I'm not sure if this is an issue with this action (or rather the Swift environment it sets up) or if Apple's toolchains are broken this way.

Workflow configuration (please complete the following information):

  • Platform (runs-on): macos-11
  • Swift version (swift-version): 5.6, which resolves to 5.6.1 now, but it also fails on 5.6.0 and 5.5 (which resolves to 5.5.3).
@ffried ffried added the bug Something isn't working label May 5, 2022
@fwal
Copy link
Collaborator

fwal commented May 9, 2022

Hi @ffried, thanks for your report.

Looking into it but as this is Xcode related, perhaps a faster solution would be to use another action that's tailored towards Xcode, for example mxcl-xcodebuild

@ffried
Copy link
Contributor Author

ffried commented May 9, 2022

@fwal I'm not sure this is Xcode related. The same swift test runs fine on Linux when using this action to setup Swift.
Using setup-xcode to select an Xcode version works fine. However, on macOS-11 I'll only get Xcode 13.2 - which includes Swift 5.5.
With this action I can install Swift 5.6, but am not able to use it because of this error.

NeedleInAJayStack added a commit to NeedleInAJayStack/swift-haystack that referenced this issue Dec 27, 2022
NeedleInAJayStack added a commit to NeedleInAJayStack/swift-haystack that referenced this issue Dec 28, 2022
NeedleInAJayStack added a commit to NeedleInAJayStack/swift-haystack that referenced this issue Dec 28, 2022
Changes to `maxim-lobanov/setup-xcode`
See issue: swift-actions/setup-swift#406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants