The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncMonitor, reference 0.3.1 (d622d3), with Swift 6.1 for macOS (SPM) on 26 May 2025 05:22:43 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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
========================================
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": "asyncmonitor",
      "name": "AsyncMonitor",
      "url": "https://github.com/samsonjs/AsyncMonitor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncMonitor",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/samsonjs/AsyncMonitor.git
[1/93] Fetching asyncmonitor
Fetched https://github.com/samsonjs/AsyncMonitor.git from cache (0.60s)
Creating working copy for https://github.com/samsonjs/AsyncMonitor.git
Working copy of https://github.com/samsonjs/AsyncMonitor.git resolved at 0.3.1 (d622d32)
warning: '.resolve-product-dependencies': dependency 'asyncmonitor' 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/samsonjs/AsyncMonitor.git
https://github.com/samsonjs/AsyncMonitor.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AsyncMonitor",
  "name" : "AsyncMonitor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncMonitor",
      "targets" : [
        "AsyncMonitor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncMonitorTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncMonitorTests",
      "path" : "Tests/AsyncMonitorTests",
      "sources" : [
        "AnyAsyncCancellableTests.swift",
        "AsyncCancellableTests.swift",
        "AsyncMonitorTests.swift",
        "AsyncSequence+Just.swift",
        "NSObject+AsyncKVOTests.swift",
        "ReadmeExamples.swift",
        "TestCancellable.swift"
      ],
      "target_dependencies" : [
        "AsyncMonitor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncMonitor",
      "module_type" : "SwiftTarget",
      "name" : "AsyncMonitor",
      "path" : "Sources/AsyncMonitor",
      "product_memberships" : [
        "AsyncMonitor"
      ],
      "sources" : [
        "AnyAsyncCancellable.swift",
        "AsyncCancellable.swift",
        "AsyncMonitor.swift",
        "AsyncSequence+Extensions.swift",
        "NSObject+AsyncKVO.swift",
        "ValueLocker.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
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
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/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 |             }
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/8] 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 |     ///
[3/8] Compiling AsyncMonitor ValueLocker.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling AsyncMonitor AnyAsyncCancellable.swift
[5/8] Compiling AsyncMonitor AsyncCancellable.swift
[6/8] Compiling AsyncMonitor NSObject+AsyncKVO.swift
[7/8] 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/8] 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.1 macosSpm