The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kiosk, reference main (32ca5b), with Swift 6.1 for Linux on 18 Aug 2026 15:43:42 UTC.

Build Command

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

Build Log

<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[286/320] Compiling KioskMacros KeyMacro.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
[287/320] Compiling KioskMacros ErasedMacro.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
[288/320] Compiling KioskMacros InitMacro.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
[289/320] Compiling KioskMacros Plugin.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
[290/320] Compiling KioskMacros SnapMacro.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
[291/320] Compiling KioskMacros StringMacro.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
[292/320] Compiling KioskMacros StyleMacro.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
[293/320] Compiling KioskMacros ParamMacro.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
[294/320] Compiling KioskMacros RouteMacro.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
[295/320] Compiling KioskMacros CodecMacro.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
[296/320] Compiling KioskMacros DefaultMacro.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
[297/320] Compiling KioskMacros FieldMacro.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
[298/320] Compiling KioskMacros FormatMacro.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
[299/320] Compiling KioskMacros RenameMacro.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
[300/320] Compiling KioskMacros WireMacro.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
[301/320] Compiling KioskMacros WireModel.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
[302/320] Compiling KioskMacros CopyMacro.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
[303/320] Compiling KioskMacros MacroSyntaxSupport.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
[304/320] Compiling KioskMacros ContentMacro.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
[305/320] Compiling KioskMacros DeleteMacro.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
[306/320] Compiling KioskMacros EndpointContractWire.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
[307/320] Compiling KioskMacros GetMacro.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
[308/320] Compiling KioskMacros QueryMacro.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
[309/320] Compiling KioskMacros ResponseMacro.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
[310/320] Compiling KioskMacros SocketMacro.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
[311/320] Compiling KioskMacros TimeoutMacro.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
[312/320] Compiling KioskMacros WrapperMacro.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
[313/320] Compiling KioskMacros HTTPMethodBody.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
[314/320] Compiling KioskMacros HeaderMacro.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
[315/320] Compiling KioskMacros PatchMacro.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
[316/320] Compiling KioskMacros PostMacro.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
[317/320] Compiling KioskMacros PutMacro.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
[318/321] Wrapping AST for KioskMacros for debugging
[319/321] Write Objects.LinkFileList
[320/321] Linking KioskMacros-tool
[322/333] Compiling Kiosk WsContext.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/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:51:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 49 |   public func connect() throws -> URLSessionWebSocketTask {
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 52 |     if let maximumMessageSize = options.maximumMessageSize {
 53 |       task.maximumMessageSize = maximumMessageSize
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:61:19: error: cannot find 'URLRequest' in scope
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
 61 |     var request = URLRequest(url: try makeURL())
    |                   `- error: cannot find 'URLRequest' in scope
 62 |     options.apply(to: &request)
 63 |
[323/334] Compiling Kiosk StreamTransport.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/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
[324/334] Compiling Kiosk SocketConnection.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/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: argument passed to call that takes no arguments
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: argument passed to call that takes no arguments
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: cannot infer contextual base in reference to member 'normalClosure'
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: cannot infer contextual base in reference to member 'normalClosure'
 40 |   }
 41 |
[325/334] Compiling Kiosk HttpTypes.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
[326/334] Compiling Kiosk Macros.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
[327/334] Compiling Kiosk Wire.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[328/334] Compiling Kiosk APIParameters.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
[329/334] Compiling Kiosk HttpHeaderEncoder.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
[330/334] Compiling Kiosk UrlQueryEncoder.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/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:525:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 523 |
 524 |   func merging(_ other: HttpOptions) -> HttpOptions {
 525 |     HttpOptions(
     |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 526 |       cachePolicy: other.cachePolicy ?? cachePolicy,
 527 |       timeoutInterval: other.timeoutInterval ?? timeoutInterval,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
[331/334] Compiling Kiosk HttpContext.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/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:525:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 523 |
 524 |   func merging(_ other: HttpOptions) -> HttpOptions {
 525 |     HttpOptions(
     |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 526 |       cachePolicy: other.cachePolicy ?? cachePolicy,
 527 |       timeoutInterval: other.timeoutInterval ?? timeoutInterval,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
[332/334] Compiling Kiosk RequestContext.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/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[333/334] Compiling Kiosk UrlBuilder.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/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[334/334] Emitting module Kiosk
<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/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:dff62030f4387a2d827d2b365d39a91716bd1d13650763ccbcbfe23419000563
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/19] Write swift-version-24593BA9C3E375BF.txt
[2/27] Compiling SwiftSyntax600 Empty.swift
[3/27] Emitting module SwiftSyntax600
[4/27] Compiling SwiftSyntax509 Empty.swift
[5/27] Emitting module SwiftSyntax509
[6/29] Compiling SwiftSyntax601 Empty.swift
[7/29] Emitting module SwiftSyntax601
[8/30] Compiling SwiftSyntax510 Empty.swift
[9/30] Emitting module SwiftSyntax510
[14/91] Compiling SwiftSyntax AbsolutePosition.swift
[15/91] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[16/91] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[17/91] Compiling SwiftSyntax Assert.swift
[18/91] Compiling SwiftSyntax BumpPtrAllocator.swift
[19/91] Compiling SwiftSyntax CommonAncestor.swift
[20/91] Compiling SwiftSyntax Convenience.swift
[21/91] Compiling SwiftSyntax CustomTraits.swift
[22/91] Compiling SwiftSyntax EditorPlaceholder.swift
[23/100] Compiling SwiftSyntax SyntaxIdentifier.swift
[24/100] Compiling SwiftSyntax SyntaxNodeFactory.swift
[25/100] Compiling SwiftSyntax SyntaxNodeStructure.swift
[26/100] Compiling SwiftSyntax SyntaxProtocol.swift
[27/100] Compiling SwiftSyntax SyntaxText.swift
[28/100] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[29/100] Compiling SwiftSyntax TokenDiagnostic.swift
[30/100] Compiling SwiftSyntax TokenSequence.swift
[31/100] Compiling SwiftSyntax TokenSyntax.swift
[32/100] Compiling SwiftSyntax Identifier.swift
[33/100] Compiling SwiftSyntax MemoryLayout.swift
[34/100] Compiling SwiftSyntax MissingNodeInitializers.swift
[35/100] Compiling SwiftSyntax RawSyntax.swift
[36/100] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[37/100] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[38/100] Compiling SwiftSyntax RawSyntaxTokenView.swift
[39/100] Compiling SwiftSyntax SourceEdit.swift
[40/100] Compiling SwiftSyntax SourceLength.swift
[41/100] Emitting module SwiftSyntax
[42/100] Compiling SwiftSyntax SourceLocation.swift
[43/100] Compiling SwiftSyntax SourcePresence.swift
[44/100] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[45/100] Compiling SwiftSyntax Syntax.swift
[46/100] Compiling SwiftSyntax SyntaxArena.swift
[47/100] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[48/100] Compiling SwiftSyntax SyntaxChildren.swift
[49/100] Compiling SwiftSyntax SyntaxCollection.swift
[50/100] Compiling SwiftSyntax SyntaxHashable.swift
[51/100] Compiling SwiftSyntax Trivia.swift
[52/100] Compiling SwiftSyntax Utils.swift
[53/100] Compiling SwiftSyntax ChildNameForKeyPath.swift
[54/100] Compiling SwiftSyntax Keyword.swift
[55/100] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[56/100] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[57/100] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[58/100] Compiling SwiftSyntax SyntaxBaseNodes.swift
[59/100] Compiling SwiftSyntax SyntaxCollections.swift
[60/100] Compiling SwiftSyntax SyntaxEnum.swift
[61/100] Compiling SwiftSyntax SyntaxKind.swift
[62/100] Compiling SwiftSyntax SyntaxRewriter.swift
[63/100] Compiling SwiftSyntax SyntaxTraits.swift
[64/100] Compiling SwiftSyntax SyntaxVisitor.swift
[65/100] Compiling SwiftSyntax TokenKind.swift
[66/100] Compiling SwiftSyntax Tokens.swift
[67/100] Compiling SwiftSyntax TriviaPieces.swift
[68/100] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[69/100] Compiling SwiftSyntax RawSyntaxNodesC.swift
[70/100] Compiling SwiftSyntax RawSyntaxNodesD.swift
[71/100] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[72/100] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[73/100] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[74/100] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[75/100] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[76/100] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[77/100] Compiling SwiftSyntax RawSyntaxValidation.swift
[78/100] Compiling SwiftSyntax SyntaxNodesAB.swift
[79/100] Compiling SwiftSyntax SyntaxNodesC.swift
[80/100] Compiling SwiftSyntax SyntaxNodesD.swift
[81/100] Compiling SwiftSyntax SyntaxNodesEF.swift
[82/100] Compiling SwiftSyntax SyntaxNodesGHI.swift
[83/100] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[84/100] Compiling SwiftSyntax SyntaxNodesOP.swift
[85/100] Compiling SwiftSyntax SyntaxNodesQRS.swift
[86/100] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[88/117] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[89/118] Compiling SwiftDiagnostics Message.swift
[90/159] Compiling SwiftDiagnostics Note.swift
[91/159] Compiling SwiftParser IncrementalParseTransition.swift
[92/159] Compiling SwiftParser IsValidIdentifier.swift
[93/159] Compiling SwiftDiagnostics FixIt.swift
[94/159] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[95/159] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[96/159] Emitting module SwiftDiagnostics
[97/159] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[98/159] Compiling SwiftParser Expressions.swift
[99/159] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[100/159] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[102/160] Compiling SwiftBasicFormat Syntax+Extensions.swift
[103/160] Compiling SwiftBasicFormat InferIndentation.swift
[104/160] Compiling SwiftBasicFormat Indenter.swift
[105/159] Compiling SwiftBasicFormat BasicFormat.swift
[106/159] Emitting module SwiftBasicFormat
[108/159] Compiling SwiftParser Modifiers.swift
[109/159] Compiling SwiftParser Names.swift
[110/159] Compiling SwiftParser Nominals.swift
[111/159] Compiling SwiftParser Parameters.swift
[112/159] Compiling SwiftParser ParseSourceFile.swift
[113/159] Compiling SwiftParser Parser.swift
[114/164] Compiling SwiftParser SwiftParserCompatibility.swift
[115/164] Compiling SwiftParser SwiftVersion.swift
[116/164] Compiling SwiftParser SyntaxUtils.swift
[117/164] Compiling SwiftParser TokenConsumer.swift
[118/164] Compiling SwiftParser TokenPrecedence.swift
[119/164] Compiling SwiftParser TokenSpec.swift
[120/164] Compiling SwiftParser TokenSpecSet.swift
[121/164] Compiling SwiftParser TopLevel.swift
[122/164] Compiling SwiftParser TriviaParser.swift
[123/164] Compiling SwiftParser Types.swift
[124/164] Compiling SwiftParser Patterns.swift
[125/164] Compiling SwiftParser Recovery.swift
[126/164] Compiling SwiftParser Specifiers.swift
[127/164] Compiling SwiftParser Statements.swift
[128/164] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[129/164] Compiling SwiftParser StringLiterals.swift
[130/164] Compiling SwiftParser LexemeSequence.swift
[131/164] Compiling SwiftParser Lexer.swift
[132/164] Compiling SwiftParser RegexLiteralLexer.swift
[133/164] Compiling SwiftParser UnicodeScalarExtensions.swift
[134/164] Compiling SwiftParser Lookahead.swift
[135/164] Compiling SwiftParser LoopProgressCondition.swift
[136/164] Emitting module SwiftParser
[137/164] Compiling SwiftParser Attributes.swift
[138/164] Compiling SwiftParser Availability.swift
[139/164] Compiling SwiftParser CharacterInfo.swift
[140/164] Compiling SwiftParser CollectionNodes+Parsable.swift
[141/164] Compiling SwiftParser Declarations.swift
[142/164] Compiling SwiftParser Directives.swift
[147/164] Compiling SwiftParser Cursor.swift
[148/164] Compiling SwiftParser Lexeme.swift
[149/164] Compiling SwiftParser ExperimentalFeatures.swift
[150/164] Compiling SwiftParser IsLexerClassified.swift
[151/164] Compiling SwiftParser LayoutNodes+Parsable.swift
[152/164] Compiling SwiftParser Parser+TokenSpecSet.swift
[153/164] Compiling SwiftParser TokenSpecStaticMembers.swift
[155/187] Compiling SwiftOperators PrecedenceGroup.swift
[156/188] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[157/189] Compiling SwiftOperators PrecedenceGraph.swift
[158/189] Compiling SwiftOperators OperatorTable.swift
[159/189] Compiling SwiftOperators OperatorTable+Folding.swift
[160/189] Emitting module SwiftOperators
[161/189] Compiling SwiftOperators OperatorTable+Semantics.swift
[162/189] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[163/189] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[164/189] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[165/189] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[166/189] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[167/189] Compiling SwiftOperators SyntaxSynthesis.swift
[171/189] Emitting module SwiftParserDiagnostics
[172/189] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[173/189] Compiling SwiftParserDiagnostics Utils.swift
[174/189] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[175/189] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[176/189] Compiling SwiftParserDiagnostics PresenceUtils.swift
[179/189] Compiling SwiftParserDiagnostics MissingNodesError.swift
[180/189] Compiling SwiftParserDiagnostics MissingTokenError.swift
[182/204] Compiling SwiftSyntaxBuilder Indenter.swift
[183/204] Compiling SwiftSyntaxBuilder ListBuilder.swift
[184/205] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[185/205] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[186/205] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[187/205] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[188/205] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[189/205] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[190/205] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[191/205] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[192/205] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[193/205] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[194/205] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[195/205] Emitting module SwiftSyntaxBuilder
[196/205] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[197/205] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[199/222] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[200/222] Compiling SwiftSyntaxMacros Macro+Format.swift
[201/222] Compiling SwiftSyntaxMacros AccessorMacro.swift
[202/222] Compiling SwiftSyntaxMacros AttachedMacro.swift
[203/222] Compiling SwiftSyntaxMacros BodyMacro.swift
[204/222] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[205/222] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[206/224] Compiling SwiftSyntaxMacros Macro.swift
[207/224] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[208/224] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[209/224] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[210/224] Compiling SwiftSyntaxMacros MemberMacro.swift
[211/224] Compiling SwiftSyntaxMacros PeerMacro.swift
[212/224] Emitting module SwiftSyntaxMacros
[213/224] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[214/224] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[215/224] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[216/224] Compiling SwiftSyntaxMacros PreambleMacro.swift
[217/224] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[219/233] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[220/234] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[221/234] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[222/234] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[223/234] Emitting module SwiftSyntaxMacroExpansion
[224/234] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[225/234] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[226/234] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[227/234] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[228/234] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[230/246] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[231/247] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[232/247] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[233/247] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[234/247] Emitting module SwiftCompilerPluginMessageHandling
[235/247] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[236/247] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[237/247] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[238/247] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[239/247] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[240/247] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[241/247] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[242/247] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[244/249] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[245/249] Emitting module SwiftCompilerPlugin
[247/283] Emitting module KioskMacros
[248/287] Compiling KioskMacros JsonMacro.swift
[249/287] Compiling KioskMacros LerpMacro.swift
[250/287] Compiling KioskMacros MapMacro.swift
[251/287] Compiling KioskMacros MergeMacro.swift
[252/287] Compiling KioskMacros Plugin.swift
[253/287] Compiling KioskMacros SnapMacro.swift
[254/287] Compiling KioskMacros StringMacro.swift
[255/287] Compiling KioskMacros StyleMacro.swift
[256/287] Compiling KioskMacros MacroSyntaxSupport.swift
[257/287] Compiling KioskMacros ContentMacro.swift
[258/287] Compiling KioskMacros DeleteMacro.swift
[259/287] Compiling KioskMacros EndpointContractWire.swift
[260/287] Compiling KioskMacros GetMacro.swift
[261/287] Compiling KioskMacros ParamMacro.swift
[262/287] Compiling KioskMacros RouteMacro.swift
[263/287] Compiling KioskMacros CodecMacro.swift
[264/287] Compiling KioskMacros DefaultMacro.swift
[265/287] Compiling KioskMacros FieldMacro.swift
[266/287] Compiling KioskMacros FormatMacro.swift
[267/287] Compiling KioskMacros RenameMacro.swift
[268/287] Compiling KioskMacros WireMacro.swift
[269/287] Compiling KioskMacros WireModel.swift
[270/287] Compiling KioskMacros CopyMacro.swift
[271/287] Compiling KioskMacros QueryMacro.swift
[272/287] Compiling KioskMacros ResponseMacro.swift
[273/287] Compiling KioskMacros SocketMacro.swift
[274/287] Compiling KioskMacros TimeoutMacro.swift
[275/287] Compiling KioskMacros WrapperMacro.swift
[276/287] Compiling KioskMacros DataMacro.swift
[277/287] Compiling KioskMacros KeyMacro.swift
[278/287] Compiling KioskMacros ErasedMacro.swift
[279/287] Compiling KioskMacros InitMacro.swift
[280/287] Compiling KioskMacros HTTPMethodBody.swift
[281/287] Compiling KioskMacros HeaderMacro.swift
[282/287] Compiling KioskMacros PatchMacro.swift
[283/287] Compiling KioskMacros PostMacro.swift
[284/287] Compiling KioskMacros PutMacro.swift
[285/287] Write Objects.LinkFileList
[286/287] Linking KioskMacros-tool
[288/299] Compiling Kiosk WsContext.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:51:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 49 |   public func connect() throws -> URLSessionWebSocketTask {
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
    |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 52 |     if let maximumMessageSize = options.maximumMessageSize {
 53 |       task.maximumMessageSize = maximumMessageSize
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:61:19: error: cannot find 'URLRequest' in scope
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
 61 |     var request = URLRequest(url: try makeURL())
    |                   `- error: cannot find 'URLRequest' in scope
 62 |     options.apply(to: &request)
 63 |
[289/299] Compiling Kiosk StreamTransport.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
[290/300] Compiling Kiosk SocketConnection.swift
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: argument passed to call that takes no arguments
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: argument passed to call that takes no arguments
 40 |   }
 41 |
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: cannot infer contextual base in reference to member 'normalClosure'
 37 |   /// Closes the current WebSocket task, if one is open.
 38 |   public func close() {
 39 |     close(code: .normalClosure)
    |                  `- error: cannot infer contextual base in reference to member 'normalClosure'
 40 |   }
 41 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[291/300] Emitting module Kiosk
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-sendable type 'URLSession' (aka 'AnyObject')
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
[292/300] Compiling Kiosk Wire.swift
[293/300] Compiling Kiosk HttpTypes.swift
[294/300] Compiling Kiosk Macros.swift
[295/300] Compiling Kiosk APIParameters.swift
[296/300] Compiling Kiosk HttpHeaderEncoder.swift
[297/300] Compiling Kiosk RequestContext.swift
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[298/300] Compiling Kiosk UrlBuilder.swift
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
[299/300] Compiling Kiosk UrlQueryEncoder.swift
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:525:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 523 |
 524 |   func merging(_ other: HttpOptions) -> HttpOptions {
 525 |     HttpOptions(
     |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 526 |       cachePolicy: other.cachePolicy ?? cachePolicy,
 527 |       timeoutInterval: other.timeoutInterval ?? timeoutInterval,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
[300/300] Compiling Kiosk HttpContext.swift
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-sendable type 'URLSession' (aka 'AnyObject')
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Sources/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Sources/Kiosk/HTTP/HttpContext.swift:273:10: error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- error: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-sendable type 'URLResponse' (aka 'AnyObject')
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- error: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Sources/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Sources/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Sources/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Sources/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 196 |   public func fold() -> ResolvedHttpContext {
 197 |     var resolved = parent?.fold() ?? ResolvedHttpContext(
 198 |       session: sessionOverride ?? .shared
     |                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 199 |     )
 200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 465 |       let payload = try decoder.decode(Payload.self, from: data)
 466 |       let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
 467 |       return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
     |                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 468 |     }
 469 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:525:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 523 |
 524 |   func merging(_ other: HttpOptions) -> HttpOptions {
 525 |     HttpOptions(
     |     `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
 526 |       cachePolicy: other.cachePolicy ?? cachePolicy,
 527 |       timeoutInterval: other.timeoutInterval ?? timeoutInterval,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 |     validatesStatus: Bool
1249 |   ) async throws -> Response<Data> {
1250 |     var urlRequest = URLRequest(url: try makeURL(from: request.url))
     |                      `- error: cannot find 'URLRequest' in scope
1251 |     urlRequest.httpMethod = request.method.rawValue
1252 |     urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 |     }
1265 |
1266 |     let (data, response) = try await context.session.data(for: urlRequest)
     |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 |     let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 |     let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 |     let httpResponse = HTTPURLResponse(
     |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 |       url: url,
1323 |       statusCode: response.status.rawValue,
1324 |       httpVersion: nil,
     |                    `- error: 'nil' requires a contextual type
1325 |       headerFields: headerFields
1326 |     )!
BUILD FAILURE 6.1 linux