Build Information
Failed to build ResponsesAPI, reference main (4b576c), with Swift 6.4 for Wasm on 22 Sep 2026 16:36:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-responses.git
Reference: main
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/m1guelpf/swift-openai-responses
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4b576c2 wip
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
4b576c276b825f2323b2b2041263a43a17b8d466
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/m1guelpf/swift-openai-responses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/m1guelpf/EventSource.git
[1/605] Fetching eventsource
Fetched https://github.com/m1guelpf/EventSource.git (0.52s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/SwiftyLab/MetaCodable.git
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
[236/3347] Fetching swift-docc-plugin, swift-macro-testing
Fetched https://github.com/pointfreeco/swift-macro-testing (0.54s)
Fetched https://github.com/swiftlang/swift-docc-plugin (0.54s)
[1/210645] Fetching metacodable
[84259/290649] Fetching metacodable, swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (7.52s)
Fetched https://github.com/SwiftyLab/MetaCodable.git (7.59s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (8.78s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.7.0 (0.16s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16474] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.24s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.1 (3.44s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/27654] Fetching swift-collections
[2/46572] Fetching swift-collections, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (1.72s)
Fetched https://github.com/apple/swift-collections.git (1.72s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.93s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3829] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.55s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.79s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.17s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.29s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.6 (0.16s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.56s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.76s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6142] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.80s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (1.05s)
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/m1guelpf/EventSource.git
Working copy of https://github.com/m1guelpf/EventSource.git resolved at compiler-fix (1942aa5)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.7.0
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.6
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 39]
[Pre-planning 1 / 803]
[Planning 686 / 803]
[Planning deferred tasks]
[Starting]
[1 / 331]
[151 / 331]
[168 / 357] EventSource
[177 / 366] SwiftSyntax602
[198 / 366] SwiftSyntax509
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m59 |[0;0m }
[0;36m60 |[0;0m
[0;36m61 |[0;0m public func dataTask(for urlRequest: [4;39mURLRequest[0;0m) -> DataTask {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m62 |[0;0m DataTask(
[0;36m63 |[0;0m urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m102 |[0;0m
[0;36m103 |[0;0m /// A URLRequest of the events source.
[0;36m104 |[0;0m public let urlRequest: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m105 |[0;0m
[0;36m106 |[0;0m private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m139 |[0;0m }
[0;36m140 |[0;0m
[0;36m141 |[0;0m private var urlSessionConfiguration: [4;39mURLSessionConfiguration[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m142 |[0;0m let configuration = URLSessionConfiguration.default
[0;36m143 |[0;0m configuration.httpAdditionalHeaders = [
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:154:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m152 |[0;0m
[0;36m153 |[0;0m internal init(
[0;36m154 |[0;0m urlRequest: [4;39mURLRequest[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m155 |[0;0m eventParser: EventParser,
[0;36m156 |[0;0m timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m222 |[0;0m _ error: Error?,
[0;36m223 |[0;0m stream continuation: AsyncStream<EventType>.Continuation,
[0;36m224 |[0;0m urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m225 |[0;0m ) {
[0;36m226 |[0;0m guard readyState != .closed else {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:244:54: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m242 |[0;0m stream continuation: AsyncStream<EventType>.Continuation,
[0;36m243 |[0;0m urlSession: URLSession,
[0;36m244 |[0;0m completionHandler: @escaping ([4;39mURLSession[0;0m.ResponseDisposition) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m245 |[0;0m ) {
[0;36m246 |[0;0m guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m239 |[0;0m
[0;36m240 |[0;0m private func handleSessionResponse(
[0;36m241 |[0;0m _ response: [4;39mURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m242 |[0;0m stream continuation: AsyncStream<EventType>.Continuation,
[0;36m243 |[0;0m urlSession: URLSession,
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m241 |[0;0m _ response: URLResponse,
[0;36m242 |[0;0m stream continuation: AsyncStream<EventType>.Continuation,
[0;36m243 |[0;0m urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m244 |[0;0m completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
[0;36m245 |[0;0m ) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:98: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m /// and sets the `readyState` property to `.closed`.
[0;36m276 |[0;0m /// - Returns: State before closing.
[0;36m277 |[0;0m private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m let previousState = self.readyState
[0;36m279 |[0;0m if previousState != .closed {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:289:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m287 |[0;0m from data: Data,
[0;36m288 |[0;0m stream continuation: AsyncStream<EventType>.Continuation,
[0;36m289 |[0;0m urlSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m290 |[0;0m ) {
[0;36m291 |[0;0m if let httpResponseErrorStatusCode {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:328:40: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m326 |[0;0m /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
[0;36m327 |[0;0m /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
[0;36m328 |[0;0m public func cancel(urlSession: [4;39mURLSession[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m329 |[0;0m readyState = .closed
[0;36m330 |[0;0m lastMessageId = ""
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m12 |[0;0m #endif
[0;36m13 |[0;0m
[0;36m14 |[0;0m final class SessionDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m15 |[0;0m enum Event: Sendable {
[0;36m16 |[0;0m case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m15 |[0;0m enum Event: Sendable {
[0;36m16 |[0;0m case didCompleteWithError(Error?)
[0;36m17 |[0;0m case didReceiveResponse(URLResponse, @Sendable ([4;39mURLSession[0;0m.ResponseDisposition) -> Void)
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m18 |[0;0m case didReceiveData(Data)
[0;36m19 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m15 |[0;0m enum Event: Sendable {
[0;36m16 |[0;0m case didCompleteWithError(Error?)
[0;36m17 |[0;0m case didReceiveResponse([4;39mURLResponse[0;0m, @Sendable (URLSession.ResponseDisposition) -> Void)
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m18 |[0;0m case didReceiveData(Data)
[0;36m19 |[0;0m }
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: [1;31merror: [1;39massociated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'[0;0m
[0;36m15 |[0;0m enum Event: Sendable {
[0;36m16 |[0;0m case didCompleteWithError(Error?)
[0;36m17 |[0;0m case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'[0;0m
[0;36m18 |[0;0m case didReceiveData(Data)
[0;36m19 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m func urlSession(
[0;36m26 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m task: URLSessionTask,
[0;36m28 |[0;0m didCompleteWithError error: Error?
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m func urlSession(
[0;36m26 |[0;0m _ session: URLSession,
[0;36m27 |[0;0m task: [4;39mURLSessionTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m didCompleteWithError error: Error?
[0;36m29 |[0;0m ) {
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m35 |[0;0m dataTask: URLSessionDataTask,
[0;36m36 |[0;0m didReceive response: URLResponse,
[0;36m37 |[0;0m completionHandler: @Sendable @escaping ([4;39mURLSession[0;0m.ResponseDisposition) -> Void
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m38 |[0;0m ) {
[0;36m39 |[0;0m internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m func urlSession(
[0;36m34 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m dataTask: URLSessionDataTask,
[0;36m36 |[0;0m didReceive response: URLResponse,
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m func urlSession(
[0;36m34 |[0;0m _ session: URLSession,
[0;36m35 |[0;0m dataTask: [4;39mURLSessionDataTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m36 |[0;0m didReceive response: URLResponse,
[0;36m37 |[0;0m completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m _ session: URLSession,
[0;36m35 |[0;0m dataTask: URLSessionDataTask,
[0;36m36 |[0;0m didReceive response: [4;39mURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
[0;36m38 |[0;0m ) {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m func urlSession(
[0;36m43 |[0;0m _ session: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m44 |[0;0m dataTask: URLSessionDataTask,
[0;36m45 |[0;0m didReceive data: Data
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m42 |[0;0m func urlSession(
[0;36m43 |[0;0m _ session: URLSession,
[0;36m44 |[0;0m dataTask: [4;39mURLSessionDataTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m didReceive data: Data
[0;36m46 |[0;0m ) {
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Data+Trim.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventParser.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSourceError.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Extensions.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Headers.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/Mutex.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/ServerEvent.swift /host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -suppress-warnings -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name EventSource -package-name eventsource -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/EventSource_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/Modules/EventSource.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/Modules/EventSource.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/EventSource-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/EventSource-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/EventSource-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/EventSource.build/Debug-webassembly-wasm32/EventSource-t.build/Objects-normal/wasm32/Modules/EventSource.swiftmodule
[200 / 366] InternalCollectionsUtilities
error: Build failed
BUILD FAILURE 6.4 wasm