The Swift Package Index logo.Swift Package Index

Build Information

Failed to build genui-agent-client-swift, reference 0.1.0 (8b2155), with Swift 6.2 for Wasm on 17 Jul 2026 16:05:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliczsh/genui-agent-client-swift.git
Reference: 0.1.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/kiliczsh/genui-agent-client-swift
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 8b2155e Depend on genui-agent-protocol by version and add SPI badges
Cloned https://github.com/kiliczsh/genui-agent-client-swift.git
Revision (git rev-parse @):
8b2155ed18d10012a3316cad18c980449ade8cce
SUCCESS checkout https://github.com/kiliczsh/genui-agent-client-swift.git at 0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/kiliczsh/genui-agent-client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/kiliczsh/genui-agent-protocol.git
[1/45] Fetching genui-agent-protocol
Fetched https://github.com/kiliczsh/genui-agent-protocol.git from cache (0.33s)
Computing version for https://github.com/kiliczsh/genui-agent-protocol.git
Computed https://github.com/kiliczsh/genui-agent-protocol.git at 0.1.0 (0.48s)
Creating working copy for https://github.com/kiliczsh/genui-agent-protocol.git
Working copy of https://github.com/kiliczsh/genui-agent-protocol.git resolved at 0.1.0
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/11] Compiling GenUIAgentTransport AgentTransport.swift
[7/11] Emitting module GenUIAgentTransport
[9/14] Compiling GenUIAgentProtocol Commands.swift
[10/14] Emitting module GenUIAgentProtocol
[11/14] Compiling GenUIAgentProtocol ProtocolModels.swift
[12/14] Compiling GenUIAgentProtocol Events.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/15] Emitting module GenUIWebSocketTransport
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: value of type '_' expected to be instance of class or class-constrained type
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
[14/15] Compiling GenUIWebSocketTransport URLSessionWebSocketTransport.swift
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private var socket: URLSessionWebSocketTask?
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 | public actor URLSessionWebSocketTransport: AgentTransport {
 8 |     private let session: URLSession
 9 |     private var socket: URLSessionWebSocketTask?
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |     private var messageStream: AsyncThrowingStream<Data, Error>?
11 |     private var messageContinuation:
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         session = URLSession(configuration: configuration)
17 |     }
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:15:59: error: value of type '_' expected to be instance of class or class-constrained type
13 |     private var receiveTask: Task<Void, Never>?
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
   |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
16 |         session = URLSession(configuration: configuration)
17 |     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:16:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
14 |
15 |     public init(configuration: URLSessionConfiguration = .default) {
16 |         session = URLSession(configuration: configuration)
   |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
17 |     }
18 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:28:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
26 |         messageContinuation = pair.continuation
27 |
28 |         let socket = session.webSocketTask(with: url)
   |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
29 |         self.socket = socket
30 |         socket.resume()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:43:32: error: cannot infer contextual base in reference to member 'string'
41 |             throw AgentTransportError.unsupportedMessage
42 |         }
43 |         try await socket.send(.string(text))
   |                                `- error: cannot infer contextual base in reference to member 'string'
44 |     }
45 |
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:31: error: cannot infer contextual base in reference to member 'normalClosure'
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                               `- error: cannot infer contextual base in reference to member 'normalClosure'
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:60:54: error: 'nil' requires a contextual type
58 |         receiveTask?.cancel()
59 |         receiveTask = nil
60 |         socket?.cancel(with: .normalClosure, reason: nil)
   |                                                      `- error: 'nil' requires a contextual type
61 |         socket = nil
62 |         messageContinuation?.finish()
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:78:58: error: cannot infer contextual base in reference to member 'utf8'
76 |                     messageContinuation?.yield(data)
77 |                 case .string(let string):
78 |                     guard let data = string.data(using: .utf8) else {
   |                                                          `- error: cannot infer contextual base in reference to member 'utf8'
79 |                         throw AgentTransportError.unsupportedMessage
80 |                     }
/host/spi-builder-workspace/Sources/GenUIWebSocketTransport/URLSessionWebSocketTransport.swift:86:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
84 |                 }
85 |             }
86 |         } catch {
   |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
87 |             if !Task.isCancelled {
88 |                 messageContinuation?.finish(throwing: error)
BUILD FAILURE 6.2 wasm