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 ErrorHierarchy, reference main (cae565), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 07:54:24 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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/EmilioPelaez/ErrorHierarchy.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
[3/8] Compiling ErrorHierarchy AlertableError.swift
[4/8] Compiling ErrorHierarchy ErrorHandlerViewModifier.swift
[5/8] Compiling ErrorHierarchy ErrorEnvironmentValues.swift
[6/8] Compiling ErrorHierarchy View+ErrorHandling.swift
[7/8] Emitting module ErrorHierarchy
[8/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
BUILD FAILURE 6.2 macosSpm