Build Information
Failed to build SemanticVersion, reference main (d8070b), with Swift 6.3 for macOS (SPM) on 20 Apr 2026 19:59:51 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/smumriak/SemanticVersion.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/smumriak/SemanticVersion
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d8070b9 Type annotation for regex builder because swift 5.9 fails to infer types in reasonable time
Cloned https://github.com/smumriak/SemanticVersion.git
Revision (git rev-parse @):
d8070b9edb47c0f526128b8e08e87c7709d10ed9
SUCCESS checkout https://github.com/smumriak/SemanticVersion.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "semanticversion",
"name": "SemanticVersion",
"url": "https://github.com/smumriak/SemanticVersion.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SemanticVersion",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/smumriak/SemanticVersion.git
[1/32] Fetching semanticversion
Fetched https://github.com/smumriak/SemanticVersion.git from cache (0.57s)
Creating working copy for https://github.com/smumriak/SemanticVersion.git
Working copy of https://github.com/smumriak/SemanticVersion.git resolved at main (d8070b9)
warning: '.resolve-product-dependencies': dependency 'semanticversion' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/smumriak/SemanticVersion.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SemanticVersion
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:244:66: error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site [#ResultBuilderMethods]
242 | }
243 |
244 | let preReleaseIdentifier: ChoiceOf<Substring> = ChoiceOf {
| `- error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site [#ResultBuilderMethods]
245 | "0"
246 | positiveNumber
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:233:30: error: trailing closure passed to parameter of type 'String' that does not accept a closure
231 | }
232 |
233 | static let regex = Regex {
| `- error: trailing closure passed to parameter of type 'String' that does not accept a closure
234 | // Swift compiler has troubles type checking this builder. 5.8.1 takes 30 seconds to do it on my PC. 5.9 errors out with "failed to type check in reasonable type"
235 | // One could think this is a problem of the past, but actually no. With proper type annotation made by hand build takes only 3 seconds. 10 times better
_StringProcessing.Regex.init:2:8: note: 'init(_:)' declared here
1 | generic struct Regex {
2 | public init(_ pattern: String) throws}
| `- note: 'init(_:)' declared here
3 |
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[4/4] Compiling SemanticVersion SemanticVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:244:66: error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site [#ResultBuilderMethods]
242 | }
243 |
244 | let preReleaseIdentifier: ChoiceOf<Substring> = ChoiceOf {
| `- error: result builder 'AlternationBuilder' does not implement any 'buildBlock' or a combination of 'buildPartialBlock(first:)' and 'buildPartialBlock(accumulated:next:)' with sufficient availability for this call site [#ResultBuilderMethods]
245 | "0"
246 | positiveNumber
/Users/admin/builder/spi-builder-workspace/Sources/SemanticVersion/SemanticVersion.swift:233:30: error: trailing closure passed to parameter of type 'String' that does not accept a closure
231 | }
232 |
233 | static let regex = Regex {
| `- error: trailing closure passed to parameter of type 'String' that does not accept a closure
234 | // Swift compiler has troubles type checking this builder. 5.8.1 takes 30 seconds to do it on my PC. 5.9 errors out with "failed to type check in reasonable type"
235 | // One could think this is a problem of the past, but actually no. With proper type annotation made by hand build takes only 3 seconds. 10 times better
_StringProcessing.Regex.init:2:8: note: 'init(_:)' declared here
1 | generic struct Regex {
2 | public init(_ pattern: String) throws}
| `- note: 'init(_:)' declared here
3 |
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
BUILD FAILURE 6.3 macosSpm