Build Information
Failed to build AsyncMonitor, reference 0.3.1 (d622d3
), with Swift 6.0 for macOS (SPM) on 26 May 2025 05:23:45 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/samsonjs/AsyncMonitor.git
Reference: 0.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/samsonjs/AsyncMonitor
* tag 0.3.1 -> FETCH_HEAD
HEAD is now at d622d32 Update Readme.md
Cloned https://github.com/samsonjs/AsyncMonitor.git
Revision (git rev-parse @):
d622d32134e6f4bfa5de3f0cd3a33a98a8154b7a
SUCCESS checkout https://github.com/samsonjs/AsyncMonitor.git at 0.3.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/samsonjs/AsyncMonitor.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling AsyncMonitor ValueLocker.swift
[4/9] Compiling AsyncMonitor AsyncCancellable.swift
[5/9] Compiling AsyncMonitor AnyAsyncCancellable.swift
[6/9] Compiling AsyncMonitor NSObject+AsyncKVO.swift
[7/9] Emitting module AsyncMonitor
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:26:46: error: 'Failure' is only available in macOS 15.0 or newer
11 | /// .store(in: &cancellables)
12 | /// ```
13 | public final class AsyncMonitor: Hashable, AsyncCancellable {
| `- note: add @available attribute to enclosing class
14 | let task: Task<Void, Never>
15 |
:
22 | /// - block: A closure to execute for each element yielded by the sequence.
23 | @available(iOS 18, *)
24 | public init<Element: Sendable>(
| `- note: add @available attribute to enclosing initializer
25 | isolation: isolated (any Actor)? = #isolation,
26 | sequence: any AsyncSequence<Element, Never>,
| `- error: 'Failure' is only available in macOS 15.0 or newer
27 | performing block: @escaping (Element) async -> Void
28 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncSequence+Extensions.swift:2:57: error: 'Failure' is only available in macOS 15.0 or newer
1 | @available(iOS 18, *)
2 | public extension AsyncSequence where Element: Sendable, Failure == Never {
| | `- error: 'Failure' is only available in macOS 15.0 or newer
| `- note: add @available attribute to enclosing extension
3 | /// Observes the elements yielded by this sequence and executes the given closure with each element.
4 | ///
[8/9] Compiling AsyncMonitor AsyncSequence+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncSequence+Extensions.swift:2:57: error: 'Failure' is only available in macOS 15.0 or newer
1 | @available(iOS 18, *)
2 | public extension AsyncSequence where Element: Sendable, Failure == Never {
| | `- error: 'Failure' is only available in macOS 15.0 or newer
| `- note: add @available attribute to enclosing extension
3 | /// Observes the elements yielded by this sequence and executes the given closure with each element.
4 | ///
[9/9] Compiling AsyncMonitor AsyncMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:26:46: error: 'Failure' is only available in macOS 15.0 or newer
11 | /// .store(in: &cancellables)
12 | /// ```
13 | public final class AsyncMonitor: Hashable, AsyncCancellable {
| `- note: add @available attribute to enclosing class
14 | let task: Task<Void, Never>
15 |
:
22 | /// - block: A closure to execute for each element yielded by the sequence.
23 | @available(iOS 18, *)
24 | public init<Element: Sendable>(
| `- note: add @available attribute to enclosing initializer
25 | isolation: isolated (any Actor)? = #isolation,
26 | sequence: any AsyncSequence<Element, Never>,
| `- error: 'Failure' is only available in macOS 15.0 or newer
27 | performing block: @escaping (Element) async -> Void
28 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:32:17: error: call can throw, but the error is not handled
30 | _ = isolation // use capture trick to inherit isolation
31 |
32 | for await element in sequence {
| `- error: call can throw, but the error is not handled
33 | await block(element)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:32:13: error: errors thrown from here are not handled
30 | _ = isolation // use capture trick to inherit isolation
31 |
32 | for await element in sequence {
| `- error: errors thrown from here are not handled
33 | await block(element)
34 | }
BUILD FAILURE 6.0 macosSpm