Build Information
Failed to build ErrorHierarchy, reference main (cae565
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 19:35:55 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/EmilioPelaez/ErrorHierarchy.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EmilioPelaez/ErrorHierarchy
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at cae5655 Add Deprecation Notice
Cloned https://github.com/EmilioPelaez/ErrorHierarchy.git
Revision (git rev-parse @):
cae565507af8150572feab6c8934516e2a385b9c
SUCCESS checkout https://github.com/EmilioPelaez/ErrorHierarchy.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": "errorhierarchy",
"name": "ErrorHierarchy",
"url": "https://github.com/EmilioPelaez/ErrorHierarchy.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ErrorHierarchy",
"dependencies": [
]
}
]
}
Fetching https://github.com/EmilioPelaez/ErrorHierarchy.git
[1/210] Fetching errorhierarchy
Fetched https://github.com/EmilioPelaez/ErrorHierarchy.git from cache (0.64s)
Creating working copy for https://github.com/EmilioPelaez/ErrorHierarchy.git
Working copy of https://github.com/EmilioPelaez/ErrorHierarchy.git resolved at main (cae5655)
warning: '.resolve-product-dependencies': dependency 'errorhierarchy' 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/EmilioPelaez/ErrorHierarchy.git
https://github.com/EmilioPelaez/ErrorHierarchy.git
{
"dependencies" : [
],
"manifest_display_name" : "ErrorHierarchy",
"name" : "ErrorHierarchy",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ErrorHierarchy",
"targets" : [
"ErrorHierarchy"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ErrorHierarchy",
"module_type" : "SwiftTarget",
"name" : "ErrorHierarchy",
"path" : "Sources/ErrorHierarchy",
"product_memberships" : [
"ErrorHierarchy"
],
"sources" : [
"AlertableError.swift",
"AlertableErrorHandlerModifier.swift",
"ErrorEnvironmentValues.swift",
"ErrorHandlerViewModifier.swift",
"View+ErrorHandling.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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
[3/8] Compiling ErrorHierarchy ErrorEnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/ErrorEnvironmentValues.swift:25:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | struct ErrorClosureEnvironmentKey: EnvironmentKey {
25 | static var defaultValue: (Error) -> Void = { error in
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | assertionFailure("Unhandled Error \(error)")
27 | }
[4/8] Compiling ErrorHierarchy AlertableError.swift
[5/8] Emitting module ErrorHierarchy
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/ErrorEnvironmentValues.swift:25:13: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | struct ErrorClosureEnvironmentKey: EnvironmentKey {
25 | static var defaultValue: (Error) -> Void = { error in
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 | assertionFailure("Unhandled Error \(error)")
27 | }
[6/8] Compiling ErrorHierarchy View+ErrorHandling.swift
[7/8] Compiling ErrorHierarchy AlertableErrorHandlerModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/AlertableErrorHandlerModifier.swift:47:6: error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct AlertableErrorHandlerModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
38 |
39 | @State var alertError: AnyAlertableError?
:
42 | }
43 |
44 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | if #available(iOS 15.0, *) {
46 | receiver(content: content)
47 | .alert(alertError?.title ?? "Error", isPresented: showAlert, presenting: alertError) { _ in
| |- error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | Button(action: dismissAlert) {
49 | Text("Okay")
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/AlertableErrorHandlerModifier.swift:45:30: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
35 | }
36 |
37 | struct AlertableErrorHandlerModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
38 |
39 | @State var alertError: AnyAlertableError?
:
42 | }
43 |
44 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | receiver(content: content)
47 | .alert(alertError?.title ?? "Error", isPresented: showAlert, presenting: alertError) { _ in
[8/8] Compiling ErrorHierarchy ErrorHandlerViewModifier.swift
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
[2/7] Compiling ErrorHierarchy ErrorEnvironmentValues.swift
[3/7] Compiling ErrorHierarchy ErrorHandlerViewModifier.swift
[4/7] Emitting module ErrorHierarchy
[5/7] Compiling ErrorHierarchy AlertableErrorHandlerModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/AlertableErrorHandlerModifier.swift:47:6: error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
35 | }
36 |
37 | struct AlertableErrorHandlerModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
38 |
39 | @State var alertError: AnyAlertableError?
:
42 | }
43 |
44 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | if #available(iOS 15.0, *) {
46 | receiver(content: content)
47 | .alert(alertError?.title ?? "Error", isPresented: showAlert, presenting: alertError) { _ in
| |- error: 'alert(_:isPresented:presenting:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | Button(action: dismissAlert) {
49 | Text("Okay")
/Users/admin/builder/spi-builder-workspace/Sources/ErrorHierarchy/AlertableErrorHandlerModifier.swift:45:30: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
35 | }
36 |
37 | struct AlertableErrorHandlerModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
38 |
39 | @State var alertError: AnyAlertableError?
:
42 | }
43 |
44 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | receiver(content: content)
47 | .alert(alertError?.title ?? "Error", isPresented: showAlert, presenting: alertError) { _ in
[6/7] Compiling ErrorHierarchy AlertableError.swift
[7/7] Compiling ErrorHierarchy View+ErrorHandling.swift
BUILD FAILURE 6.1 macosSpm