Build Information
Failed to build OpenAI, reference 0.1.6 (da6223), with Swift 6.3 for Wasm on 18 Apr 2026 19:21:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: 0.1.6
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/Recouse/OpenAI
* tag 0.1.6 -> FETCH_HEAD
HEAD is now at da6223c Update swift-log to version 1.10.1
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
da6223c56c66a04ebc0a6fbc6d851b8384a7e6f3
SUCCESS checkout https://github.com/Recouse/OpenAI.git at 0.1.6
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Recouse/OpenAI.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/mattt/JSONSchema.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/Recouse/EventSource.git
[1/192] Fetching jsonschema
[161/1013] Fetching jsonschema, eventsource
[949/7648] Fetching jsonschema, eventsource, swift-log
Fetched https://github.com/Recouse/EventSource.git from cache (0.46s)
[1453/6827] Fetching jsonschema, swift-log
Fetched https://github.com/mattt/JSONSchema.git from cache (0.85s)
Fetched https://github.com/apple/swift-log.git from cache (0.85s)
Computing version for https://github.com/mattt/JSONSchema.git
Computed https://github.com/mattt/JSONSchema.git at 1.3.1 (1.56s)
Fetching https://github.com/apple/swift-collections.git
[1/23569] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.00s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.7 (2.67s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.78s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.05s)
Creating working copy for https://github.com/mattt/JSONSchema.git
Working copy of https://github.com/mattt/JSONSchema.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.7
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/40] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[9/40] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[10/40] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[11/40] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[12/42] Compiling InternalCollectionsUtilities String+Padding.swift
[13/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[14/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[15/42] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[16/42] Compiling InternalCollectionsUtilities Debugging.swift
[17/42] Compiling InternalCollectionsUtilities Descriptions.swift
[18/42] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[19/42] Emitting module InternalCollectionsUtilities
[20/42] Compiling EventSource Extensions.swift
[21/43] Compiling InternalCollectionsUtilities _SortedCollection.swift
[22/43] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[23/43] Compiling Logging LogHandler.swift
[24/43] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[25/43] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[26/43] Compiling InternalCollectionsUtilities Span+Extras.swift
[27/43] Compiling InternalCollectionsUtilities Integer rank.swift
[28/43] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[29/43] Compiling InternalCollectionsUtilities UInt+reversed.swift
[30/44] Compiling Logging LogEvent.swift
[32/99] Compiling Logging MetadataProvider.swift
[33/99] Emitting module Logging
[34/99] Compiling Logging Locks.swift
[35/99] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: 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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[36/99] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:74:42: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
75 | DataTask(
76 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:118:32: error: cannot find type 'URLRequest' in scope
116 |
117 | /// A URLRequest of the events source.
118 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:157:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | }
156 |
157 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | let configuration = URLSessionConfiguration.default
159 | configuration.httpAdditionalHeaders = [
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:170:25: error: cannot find type 'URLRequest' in scope
168 |
169 | internal init(
170 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
171 | eventParser: EventParser,
172 | timeoutIntervalForRequest: TimeInterval,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:233:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | _ error: Error?,
232 | stream continuation: AsyncStream<EventType>.Continuation,
233 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | ) {
235 | guard readyState != .closed else {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:253:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
253 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
254 | ) {
255 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:250:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |
249 | private func handleSessionResponse(
250 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:252:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | _ response: URLResponse,
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
254 | ) {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:286:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | /// and sets the `readyState` property to `.closed`.
285 | /// - Returns: State before closing.
286 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | let previousState = self.readyState
288 | if previousState != .closed {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:298:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 | from data: Data,
297 | stream continuation: AsyncStream<EventType>.Continuation,
298 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | ) {
300 | if let httpResponseErrorStatusCode {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:337:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
336 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
337 | private func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | readyState = .closed
339 | lastMessageId = ""
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:158:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
156 |
157 | private var urlSessionConfiguration: URLSessionConfiguration {
158 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
159 | configuration.httpAdditionalHeaders = [
160 | HTTPHeaderField.accept: Accept.eventStream,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:192:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
190 | return AsyncStream { continuation in
191 | let sessionDelegate = SessionDelegate()
192 | let urlSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
193 | configuration: urlSessionConfiguration,
194 | delegate: sessionDelegate,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:195:36: error: 'nil' requires a contextual type
193 | configuration: urlSessionConfiguration,
194 | delegate: sessionDelegate,
195 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
196 | )
197 | let urlSessionDataTask = urlSession.dataTask(with: urlRequest)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:256:36: error: cannot infer contextual base in reference to member 'cancel'
254 | ) {
255 | guard readyState != .closed else {
256 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
257 | return
258 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:260:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | completionHandler(.cancel)
262 | return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:261:36: error: cannot infer contextual base in reference to member 'cancel'
259 |
260 | guard let httpResponse = response as? HTTPURLResponse else {
261 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
262 | return
263 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:266:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
264 |
265 | // Stop connection when 204 response code, otherwise keep open
266 | guard httpResponse.statusCode != 204 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
267 | completionHandler(.cancel)
268 | close(stream: continuation, urlSession: urlSession)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:267:36: error: cannot infer contextual base in reference to member 'cancel'
265 | // Stop connection when 204 response code, otherwise keep open
266 | guard httpResponse.statusCode != 204 else {
267 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
268 | close(stream: continuation, urlSession: urlSession)
269 | return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:272:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
270 | }
271 |
272 | if 200...299 ~= httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
273 | if readyState != .open {
274 | setOpen(stream: continuation)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:277:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
275 | }
276 | } else {
277 | httpResponseErrorStatusCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 | }
279 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:280:32: error: cannot infer contextual base in reference to member 'allow'
278 | }
279 |
280 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
281 | }
282 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:340:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
338 | readyState = .closed
339 | lastMessageId = ""
340 | urlSession.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
341 | }
342 | }
[37/99] Compiling EventSource EventSourceError.swift
[38/99] Compiling OrderedCollections OrderedDictionary.swift
[39/99] Compiling OrderedCollections OrderedSet+Codable.swift
[40/99] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[41/99] Compiling OrderedCollections OrderedSet+Descriptions.swift
[42/99] Compiling OrderedCollections OrderedSet+Diffing.swift
[43/99] Compiling OrderedCollections OrderedSet+Equatable.swift
[44/99] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[45/99] Compiling OrderedCollections OrderedSet+Hashable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/99] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:74:42: error: cannot find type 'URLRequest' in scope
72 | }
73 |
74 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
75 | DataTask(
76 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:118:32: error: cannot find type 'URLRequest' in scope
116 |
117 | /// A URLRequest of the events source.
118 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:157:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 | }
156 |
157 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | let configuration = URLSessionConfiguration.default
159 | configuration.httpAdditionalHeaders = [
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:170:25: error: cannot find type 'URLRequest' in scope
168 |
169 | internal init(
170 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
171 | eventParser: EventParser,
172 | timeoutIntervalForRequest: TimeInterval,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:233:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 | _ error: Error?,
232 | stream continuation: AsyncStream<EventType>.Continuation,
233 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 | ) {
235 | guard readyState != .closed else {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:253:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
253 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
254 | ) {
255 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:250:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |
249 | private func handleSessionResponse(
250 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:252:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | _ response: URLResponse,
251 | stream continuation: AsyncStream<EventType>.Continuation,
252 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
254 | ) {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:286:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | /// and sets the `readyState` property to `.closed`.
285 | /// - Returns: State before closing.
286 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | let previousState = self.readyState
288 | if previousState != .closed {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:298:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 | from data: Data,
297 | stream continuation: AsyncStream<EventType>.Continuation,
298 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
299 | ) {
300 | if let httpResponseErrorStatusCode {
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/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:337:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
336 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
337 | private func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 | readyState = .closed
339 | lastMessageId = ""
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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' contains non-Sendable type 'AnyObject'
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: 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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[47/99] Compiling EventSource Mutex.swift
[48/99] Compiling EventSource Headers.swift
[49/99] Compiling OrderedCollections _HashTable+Bucket.swift
[50/99] Compiling OrderedCollections _HashTable+BucketIterator.swift
[51/99] Compiling EventSource ServerEvent.swift
BUILD FAILURE 6.3 wasm