The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncMonitor, reference 0.4.0 (6130e2), with Swift 6.3 for Linux on 24 Jun 2026 19:50:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/samsonjs/AsyncMonitor.git
Reference: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/samsonjs/AsyncMonitor
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 6130e27 Prepare for release 0.4.0
Cloned https://github.com/samsonjs/AsyncMonitor.git
Revision (git rev-parse @):
6130e27a3d52a4d6e9830c0a09484161bccb1d74
SUCCESS checkout https://github.com/samsonjs/AsyncMonitor.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/samsonjs/AsyncMonitor.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:b51ca78cca69bdb7bac6de0087100152780ea26ceb84ad1b05e1a88cce39888e
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling AsyncMonitor AsyncMonitor.swift
[4/9] Compiling AsyncMonitor AsyncCancellable.swift
[5/9] Emitting module AsyncMonitor
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:42:18: error: cannot find type 'NSKeyValueObservingOptions' in scope
 40 |     func values<Value: Sendable>(
 41 |         for keyPath: KeyPath<Self, Value>,
 42 |         options: NSKeyValueObservingOptions = []
    |                  `- error: cannot find type 'NSKeyValueObservingOptions' in scope
 43 |     ) -> AsyncStream<Value> {
 44 |         let (stream, continuation) = AsyncStream<Value>.makeStream()
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:102:18: error: cannot find type 'NSKeyValueObservingOptions' in scope
100 |     func monitorValues<Value: Sendable>(
101 |         for keyPath: KeyPath<Self, Value>,
102 |         options: NSKeyValueObservingOptions = [],
    |                  `- error: cannot find type 'NSKeyValueObservingOptions' in scope
103 |         changeHandler: @escaping (Value) -> Void
104 |     ) -> any AsyncCancellable {
[6/9] Compiling AsyncMonitor AnyAsyncCancellable.swift
[7/9] Compiling AsyncMonitor NSObject+AsyncKVO.swift
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:42:18: error: cannot find type 'NSKeyValueObservingOptions' in scope
 40 |     func values<Value: Sendable>(
 41 |         for keyPath: KeyPath<Self, Value>,
 42 |         options: NSKeyValueObservingOptions = []
    |                  `- error: cannot find type 'NSKeyValueObservingOptions' in scope
 43 |     ) -> AsyncStream<Value> {
 44 |         let (stream, continuation) = AsyncStream<Value>.makeStream()
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:102:18: error: cannot find type 'NSKeyValueObservingOptions' in scope
100 |     func monitorValues<Value: Sendable>(
101 |         for keyPath: KeyPath<Self, Value>,
102 |         options: NSKeyValueObservingOptions = [],
    |                  `- error: cannot find type 'NSKeyValueObservingOptions' in scope
103 |         changeHandler: @escaping (Value) -> Void
104 |     ) -> any AsyncCancellable {
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:45:20: error: cannot find type 'NSKeyValueObservation' in scope
 43 |     ) -> AsyncStream<Value> {
 44 |         let (stream, continuation) = AsyncStream<Value>.makeStream()
 45 |         let token: NSKeyValueObservation? = self.observe(keyPath, options: options) { object, _ in
    |                    `- error: cannot find type 'NSKeyValueObservation' in scope
 46 |             continuation.yield(object[keyPath: keyPath])
 47 |         }
/host/spi-builder-workspace/Sources/AsyncMonitor/NSObject+AsyncKVO.swift:45:50: error: value of type 'Self' has no member 'observe'
 43 |     ) -> AsyncStream<Value> {
 44 |         let (stream, continuation) = AsyncStream<Value>.makeStream()
 45 |         let token: NSKeyValueObservation? = self.observe(keyPath, options: options) { object, _ in
    |                                                  `- error: value of type 'Self' has no member 'observe'
 46 |             continuation.yield(object[keyPath: keyPath])
 47 |         }
[8/9] Compiling AsyncMonitor AsyncSequence+Extensions.swift
[9/9] Compiling AsyncMonitor ValueLocker.swift
BUILD FAILURE 6.3 linux