The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncMonitor, reference 0.3.1 (d622d3), with Swift 6.2 for macOS (SPM) on 24 Jun 2025 05:38:29 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/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.2
Building package at path:  $PWD
https://github.com/samsonjs/AsyncMonitor.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/9] Compiling AsyncMonitor AnyAsyncCancellable.swift
[4/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 |     ///
[5/9] Compiling AsyncMonitor ValueLocker.swift
[6/9] Compiling AsyncMonitor AsyncCancellable.swift
[7/9] Compiling AsyncMonitor NSObject+AsyncKVO.swift
[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 |             }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:50:42: warning: capture of non-sendable type 'Sequence.AsyncIterator.Type' in an isolated closure
48 |         self.task = Task {
49 |             do {
50 |                 for try await element in sequence {
   |                                          `- warning: capture of non-sendable type 'Sequence.AsyncIterator.Type' in an isolated closure
51 |                     await block(element)
52 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:50:42: warning: capture of non-sendable type 'Sequence.Type' in an isolated closure
48 |         self.task = Task {
49 |             do {
50 |                 for try await element in sequence {
   |                                          `- warning: capture of non-sendable type 'Sequence.Type' in an isolated closure
51 |                     await block(element)
52 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncMonitor/AsyncMonitor.swift:45:9: warning: capture of non-sendable type 'Sequence.Type' in an isolated closure
43 |     @available(iOS, introduced: 17, obsoleted: 18)
44 |     public init<Element: Sendable, Sequence>(
45 |         sequence: sending Sequence,
   |         `- warning: capture of non-sendable type 'Sequence.Type' in an isolated closure
46 |         @_inheritActorContext performing block: @escaping @Sendable (Element) async -> Void
47 |     ) where Sequence: AsyncSequence, Element == Sequence.Element {
BUILD FAILURE 6.2 macosSpm