swiftlang / swiftlang/github-workflows

macOS Testing is broken with nightly toolchain

Open
#312 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
115
Forks
57
Avg merge
1d 8h
Merged PRs (30d)
3

Description

It appears the macOS run is broken, at least for runs that use a nightly toolchain. The "Install Swift toolchain via Swiftly" step fails with:

Run swiftly install main-snapshot
  swiftly install main-snapshot
  swiftly use main-snapshot
  shell: /bin/bash -e {0}
  env:
    DEVELOPER_DIR: /Applications/Xcode_26.4.app/Contents/Developer
    SWIFTLY_HOME_DIR: /Users/runner/.swiftly
    SWIFTLY_BIN_DIR: /Users/runner/.swiftly/bin
    SWIFTLY_TOOLCHAINS_DIR: /Users/runner/.swiftly/toolchains
Error: RunProgramError(exitCode: 1, program: "/usr/bin/xcrun", arguments: ["--show-sdk-path", "--sdk", "macosx"])
Swiftly is currently unlinked and will not manage the active toolchain. You can
run
the following command to link swiftly to the active toolchain:

    $ swiftly link


Fetching the latest main branch snapshot...
Error: Process completed with exit code 1.

https://github.com/swiftlang/swift-foundation/actions/runs/32396783384/job/96515349154

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions job and inspect the macOS workflow's "Install Swift toolchain via Swiftly" step, including the xcrun SDK lookup and Swiftly link error. Verify the failure with the nightly toolchain and confirm that a macOS nightly run completes successfully after the workflow fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, swift
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.