Build Information
Failed to build SemanticVersion, reference main (d8070b
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 16:38:00 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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",
"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",
"dependencies": [
]
}
]
}
Fetching https://github.com/smumriak/SemanticVersion.git
[1/32] Fetching semanticversion
Fetched https://github.com/smumriak/SemanticVersion.git from cache (0.56s)
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.1
Building package at path: $PWD
https://github.com/smumriak/SemanticVersion.git
https://github.com/smumriak/SemanticVersion.git
{
"dependencies" : [
],
"manifest_display_name" : "SemanticVersion",
"name" : "SemanticVersion",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SemanticVersion",
"targets" : [
"SemanticVersion"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SemanticVersionTests",
"module_type" : "SwiftTarget",
"name" : "SemanticVersionTests",
"path" : "Tests/SemanticVersionTests",
"sources" : [
"SemanticVersionTests.swift"
],
"target_dependencies" : [
"SemanticVersion"
],
"type" : "test"
},
{
"c99name" : "SemanticVersion",
"module_type" : "SwiftTarget",
"name" : "SemanticVersion",
"path" : "Sources/SemanticVersion",
"product_memberships" : [
"SemanticVersion"
],
"sources" : [
"SemanticVersion.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.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
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
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 |
[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
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
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 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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
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
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 |
[3/3] 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
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
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 |
BUILD FAILURE 6.1 macosSpm