The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build OpenAI, reference 0.0.9 (e928d9), with Swift 6.1 for Wasm on 29 May 2025 04:05:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Recouse/OpenAI.git
Reference: 0.0.9
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.0.9      -> FETCH_HEAD
HEAD is now at e928d98 Merge pull request #2 from Recouse/visionos-support
Cloned https://github.com/Recouse/OpenAI.git
Revision (git rev-parse @):
e928d988b4067050306316c337faec48467133d2
SUCCESS checkout https://github.com/Recouse/OpenAI.git at 0.0.9
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Recouse/OpenAI.git
https://github.com/Recouse/OpenAI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "eventsource",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Recouse/EventSource.git"
    }
  ],
  "manifest_display_name" : "OpenAI",
  "name" : "OpenAI",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAI",
      "targets" : [
        "OpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAITests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAITests",
      "path" : "Tests/OpenAITests",
      "sources" : [
        "OpenAITests.swift"
      ],
      "target_dependencies" : [
        "OpenAI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAI",
      "module_type" : "SwiftTarget",
      "name" : "OpenAI",
      "path" : "Sources/OpenAI",
      "product_dependencies" : [
        "EventSource"
      ],
      "product_memberships" : [
        "OpenAI"
      ],
      "sources" : [
        "Chat/ChatCompletions.swift",
        "Chat/ChatCompletionsBody.swift",
        "Chat/ChatCompletionsModels.swift",
        "Chat/ChatCompletionsRequest.swift",
        "Chat/ChatCompletionsResponse.swift",
        "Chat/ChatWrapper.swift",
        "Common/FinishReason.swift",
        "Common/ReponseFormat.swift",
        "Common/Usage.swift",
        "Completions/CompletionResponse.swift",
        "Completions/Completions.swift",
        "Completions/CompletionsBody.swift",
        "Completions/CompletionsRequest.swift",
        "Completions/CompletionsWrapper.swift",
        "Configuration.swift",
        "Edits/Edits.swift",
        "Edits/EditsBody.swift",
        "Edits/EditsModel.swift",
        "Edits/EditsRequest.swift",
        "Edits/EditsResponse.swift",
        "Edits/EditsWrapper.swift",
        "Extensions/APIError.swift",
        "Extensions/JSONDecoder.swift",
        "Extensions/JSONEncoder.swift",
        "Extensions/OpenAIError.swift",
        "ModelType.swift",
        "Models/ModelsRequest.swift",
        "Models/ModelsResponse.swift",
        "Models/ModelsWrapper.swift",
        "OpenAI.swift",
        "Request/Handler/BaseRequestHandler.swift",
        "Request/Handler/RequestHandler.swift",
        "Request/Request.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Recouse/EventSource.git
[1/697] Fetching eventsource
Fetched https://github.com/Recouse/EventSource.git from cache (1.46s)
Computing version for https://github.com/Recouse/EventSource.git
Computed https://github.com/Recouse/EventSource.git at 0.1.4 (2.34s)
Creating working copy for https://github.com/Recouse/EventSource.git
Working copy of https://github.com/Recouse/EventSource.git resolved at 0.1.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/11] Compiling EventSource Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/11] Compiling EventSource EventSource.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:67:42: error: cannot find type 'URLRequest' in scope
 65 |
 66 |     @EventSourceActor
 67 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 68 |         DataTask(
 69 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:92:32: error: cannot find type 'URLRequest' in scope
 90 |
 91 |         /// A URLRequest of the events source.
 92 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
 93 |
 94 |         private var eventParser: EventParser
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:100:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         private var continuation: AsyncStream<EventType>.Continuation?
 99 |
100 |         private var urlSession: URLSession?
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
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:102:41: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         private var urlSession: URLSession?
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
    |                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 |         private var httpResponseErrorStatusCode: Int?
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/EventSource.swift:106:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         private var httpResponseErrorStatusCode: Int?
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             let configuration = URLSessionConfiguration.default
108 |             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:119:25: error: cannot find type 'URLRequest' in scope
117 |
118 |         internal init(
119 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
120 |             eventParser: EventParser,
121 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:200:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 |         ) {
202 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:199:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
201 |         ) {
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:107:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
107 |             let configuration = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
108 |             configuration.httpAdditionalHeaders = [
109 |                 HTTPHeaderField.accept: Accept.eventStream,
/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/EventSource.swift:203:36: error: cannot infer contextual base in reference to member 'cancel'
201 |         ) {
202 |             guard readyState != .closed else {
203 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
204 |                 return
205 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:207:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |             }
206 |
207 |             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.
208 |                 completionHandler(.cancel)
209 |                 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:208:36: error: cannot infer contextual base in reference to member 'cancel'
206 |
207 |             guard let httpResponse = response as? HTTPURLResponse else {
208 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
209 |                 return
210 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:213:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |
212 |             // Stop connection when 204 response code, otherwise keep open
213 |             guard httpResponse.statusCode != 204 else {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |                 completionHandler(.cancel)
215 |                 close()
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:214:36: error: cannot infer contextual base in reference to member 'cancel'
212 |             // Stop connection when 204 response code, otherwise keep open
213 |             guard httpResponse.statusCode != 204 else {
214 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
215 |                 close()
216 |                 return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:219:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             }
218 |
219 |             if 200...299 ~= httpResponse.statusCode {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |                 if readyState != .open {
221 |                     setOpen()
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
222 |                 }
223 |             } else {
224 |                 httpResponseErrorStatusCode = httpResponse.statusCode
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
225 |             }
226 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:227:32: error: cannot infer contextual base in reference to member 'allow'
225 |             }
226 |
227 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
228 |         }
229 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:281:33: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
279 |             readyState = .closed
280 |             lastMessageId = ""
281 |             urlSessionDataTask?.cancel()
    |                                 `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
282 |             urlSession?.invalidateAndCancel()
283 |         }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:282:25: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
280 |             lastMessageId = ""
281 |             urlSessionDataTask?.cancel()
282 |             urlSession?.invalidateAndCancel()
    |                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
283 |         }
284 |     }
[6/11] Compiling EventSource SessionDelegate.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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' has non-sendable type 'URLResponse' (aka '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' has non-sendable type 'URLResponse' (aka '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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling EventSource EventParser.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/11] Emitting module EventSource
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:67:42: error: cannot find type 'URLRequest' in scope
 65 |
 66 |     @EventSourceActor
 67 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 68 |         DataTask(
 69 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:92:32: error: cannot find type 'URLRequest' in scope
 90 |
 91 |         /// A URLRequest of the events source.
 92 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
 93 |
 94 |         private var eventParser: EventParser
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:100:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         private var continuation: AsyncStream<EventType>.Continuation?
 99 |
100 |         private var urlSession: URLSession?
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
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:102:41: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         private var urlSession: URLSession?
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
    |                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 |         private var httpResponseErrorStatusCode: Int?
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/EventSource.swift:106:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         private var httpResponseErrorStatusCode: Int?
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             let configuration = URLSessionConfiguration.default
108 |             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:119:25: error: cannot find type 'URLRequest' in scope
117 |
118 |         internal init(
119 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
120 |             eventParser: EventParser,
121 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:200:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 |         ) {
202 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:199:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
201 |         ) {
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: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' has non-sendable type 'URLResponse' (aka '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' has non-sendable type 'URLResponse' (aka '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
[9/11] Compiling EventSource EventSourceError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/11] Compiling EventSource Headers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/11] Compiling EventSource ServerEvent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling EventSource EventSourceError.swift
[3/9] 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' has non-sendable type 'URLResponse' (aka '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' has non-sendable type 'URLResponse' (aka '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
[4/9] Compiling EventSource Headers.swift
[5/9] Compiling EventSource Extensions.swift
[6/9] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:67:42: error: cannot find type 'URLRequest' in scope
 65 |
 66 |     @EventSourceActor
 67 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 68 |         DataTask(
 69 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:92:32: error: cannot find type 'URLRequest' in scope
 90 |
 91 |         /// A URLRequest of the events source.
 92 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
 93 |
 94 |         private var eventParser: EventParser
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:100:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         private var continuation: AsyncStream<EventType>.Continuation?
 99 |
100 |         private var urlSession: URLSession?
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
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:102:41: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         private var urlSession: URLSession?
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
    |                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 |         private var httpResponseErrorStatusCode: Int?
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/EventSource.swift:106:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         private var httpResponseErrorStatusCode: Int?
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             let configuration = URLSessionConfiguration.default
108 |             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:119:25: error: cannot find type 'URLRequest' in scope
117 |
118 |         internal init(
119 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
120 |             eventParser: EventParser,
121 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:200:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 |         ) {
202 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:199:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
201 |         ) {
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:107:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
107 |             let configuration = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
108 |             configuration.httpAdditionalHeaders = [
109 |                 HTTPHeaderField.accept: Accept.eventStream,
/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/EventSource.swift:203:36: error: cannot infer contextual base in reference to member 'cancel'
201 |         ) {
202 |             guard readyState != .closed else {
203 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
204 |                 return
205 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:207:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |             }
206 |
207 |             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.
208 |                 completionHandler(.cancel)
209 |                 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:208:36: error: cannot infer contextual base in reference to member 'cancel'
206 |
207 |             guard let httpResponse = response as? HTTPURLResponse else {
208 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
209 |                 return
210 |             }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:213:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |
212 |             // Stop connection when 204 response code, otherwise keep open
213 |             guard httpResponse.statusCode != 204 else {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |                 completionHandler(.cancel)
215 |                 close()
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:214:36: error: cannot infer contextual base in reference to member 'cancel'
212 |             // Stop connection when 204 response code, otherwise keep open
213 |             guard httpResponse.statusCode != 204 else {
214 |                 completionHandler(.cancel)
    |                                    `- error: cannot infer contextual base in reference to member 'cancel'
215 |                 close()
216 |                 return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:219:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             }
218 |
219 |             if 200...299 ~= httpResponse.statusCode {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |                 if readyState != .open {
221 |                     setOpen()
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
222 |                 }
223 |             } else {
224 |                 httpResponseErrorStatusCode = httpResponse.statusCode
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
225 |             }
226 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:227:32: error: cannot infer contextual base in reference to member 'allow'
225 |             }
226 |
227 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
228 |         }
229 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:281:33: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
279 |             readyState = .closed
280 |             lastMessageId = ""
281 |             urlSessionDataTask?.cancel()
    |                                 `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
282 |             urlSession?.invalidateAndCancel()
283 |         }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:282:25: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
280 |             lastMessageId = ""
281 |             urlSessionDataTask?.cancel()
282 |             urlSession?.invalidateAndCancel()
    |                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
283 |         }
284 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling EventSource EventParser.swift
[8/9] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:67:42: error: cannot find type 'URLRequest' in scope
 65 |
 66 |     @EventSourceActor
 67 |     public func dataTask(for urlRequest: URLRequest) -> DataTask {
    |                                          `- error: cannot find type 'URLRequest' in scope
 68 |         DataTask(
 69 |             urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:92:32: error: cannot find type 'URLRequest' in scope
 90 |
 91 |         /// A URLRequest of the events source.
 92 |         public let urlRequest: URLRequest
    |                                `- error: cannot find type 'URLRequest' in scope
 93 |
 94 |         private var eventParser: EventParser
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:100:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         private var continuation: AsyncStream<EventType>.Continuation?
 99 |
100 |         private var urlSession: URLSession?
    |                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
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:102:41: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |         private var urlSession: URLSession?
101 |
102 |         private var urlSessionDataTask: URLSessionDataTask?
    |                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 |         private var httpResponseErrorStatusCode: Int?
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/EventSource.swift:106:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         private var httpResponseErrorStatusCode: Int?
105 |
106 |         private var urlSessionConfiguration: URLSessionConfiguration {
    |                                              `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |             let configuration = URLSessionConfiguration.default
108 |             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:119:25: error: cannot find type 'URLRequest' in scope
117 |
118 |         internal init(
119 |             urlRequest: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
120 |             eventParser: EventParser,
121 |             timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:200:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
    |                                                      `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
201 |         ) {
202 |             guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:199:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |         private func handleSessionResponse(
199 |             _ response: URLResponse,
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |             completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
201 |         ) {
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: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' has non-sendable type 'URLResponse' (aka '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' has non-sendable type 'URLResponse' (aka '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
[9/9] Compiling EventSource ServerEvent.swift
BUILD FAILURE 6.1 wasm