The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SemanticVersion, reference main (d8070b), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 08:36:01 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/smumriak/SemanticVersion.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.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.2 macosSpm