Skip to content

swift: commit the TailcatKit scheme xcodebuild builds with - #195

Merged
bradfitz merged 1 commit into
mainfrom
bradfitz/swift-scheme-flake
Nov 22, 2026
Merged

bradfitz merged 1 commit into
mainfrom
bradfitz/swift-scheme-flake

Conversation

@bradfitz

Copy link
Copy Markdown
Member

The swift macOS CI job has been failing about 40% of runs since it
landed, always in the "compile Swift for iOS" step:

xcodebuild: error: The workspace named "swift" does not contain a
scheme named "TailcatKit".

Right before the error xcodebuild logs IDERunContextManager warnings,
"could not delete old scheme: Cannot modify data because the process
disallows saving". xcodebuild auto-generates schemes for Swift
packages on demand, and that generation is what flakes.

Running xcodebuild -list first (7b82bc2) didn't help: the -list
output shows the scheme, and the build invocation seconds later
still fails to find it.

Commit the TailcatKit scheme to .swiftpm/xcode/xcshareddata/xcschemes
so xcodebuild reads it from disk instead of generating one, and carve
that file out of the .swiftpm ignore. Verified with the exact CI
commands on macOS 26 with Xcode 26.4: the device and simulator builds
both pass with the committed scheme.

The swift macOS CI job has been failing about 40% of runs since it
landed, always in the "compile Swift for iOS" step:

    xcodebuild: error: The workspace named "swift" does not contain a
    scheme named "TailcatKit".

Right before the error xcodebuild logs IDERunContextManager warnings,
"could not delete old scheme: Cannot modify data because the process
disallows saving". xcodebuild auto-generates schemes for Swift
packages on demand, and that generation is what flakes.

Running xcodebuild -list first (7b82bc2) didn't help: the -list
output shows the scheme, and the build invocation seconds later
still fails to find it.

Commit the TailcatKit scheme to .swiftpm/xcode/xcshareddata/xcschemes
so xcodebuild reads it from disk instead of generating one, and carve
that file out of the .swiftpm ignore. Verified with the exact CI
commands on macOS 26 with Xcode 26.4: the device and simulator builds
both pass with the committed scheme.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz
bradfitz merged commit 038415d into main Nov 22, 2026
10 checks passed
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

Successfully merging this pull request may close these issues.

1 participant