The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleNetworking, reference main (dd786c), with Swift 6.1 for Wasm on 3 Jul 2026 16:31:00 UTC.

Build Command

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

Build Log

    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[5/25] Compiling SimpleNetworking Get.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[6/28] Compiling SimpleNetworking SimpleNetworking.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// All the cookies
 28 |     public var cookies: [HTTPCookie]? = []
    |                          `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Protects mutable shared state used by concurrent async requests.
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |     /// Streaming response handler for connection open event
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/SimpleNetworking/SimpleNetworking.swift:64:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |
 63 |     /// URLSession Data Task
 64 |     internal var task: URLSessionDataTask?
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
 67 |     internal var ESsession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     /// Websocket socket
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/SimpleNetworking/SimpleNetworking.swift:117:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |     /// Set the session
116 |     /// - Parameter session: session
117 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |         self.session = session
119 |     }
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/SimpleNetworking/SimpleNetworking.swift:137:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |     /// Add a cookie to the storage
136 |     /// - Parameter add: cookie
137 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         stateLock.lock()
139 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:161:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     /// Add a cookie to the storage
160 |     /// - Parameter add: cookie
161 |     public func add(cookie: HTTPCookie) {
    |                             `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         stateLock.lock()
163 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:38: error: cannot find type 'URLSessionDataDelegate' in scope
80 | }
81 |
82 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
   |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
83 |     internal var onMessage: ((Data) -> Void)?
84 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
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/SimpleNetworking/SimpleNetworking/EventSource.swift:89:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 |         self.onError = onError
59 |
60 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
61 |         request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 |         addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 |
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
   |                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:29: error: cannot infer contextual base in reference to member 'default'
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
66 |             configuration: .default,
   |                             `- error: cannot infer contextual base in reference to member 'default'
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:68:28: error: 'nil' requires a contextual type
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
   |                            `- error: 'nil' requires a contextual type
69 |         )
70 |         task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 |             delegateQueue: nil
69 |         )
70 |         task = ESsession?.dataTask(with: request)
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 |         task?.resume()
72 |         onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
69 |         )
70 |         task = ESsession?.dataTask(with: request)
71 |         task?.resume()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
72 |         onOpen?()
73 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:77:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
75 |     /// Disconnect the EventSource connection.
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
78 |         ESsession?.invalidateAndCancel()
79 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
78 |         ESsession?.invalidateAndCancel()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
79 |     }
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |     public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
 36 |         self.onMessage = responder
 37 |         WSSocket = URLSession.shared.webSocketTask(with: socket)
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         WSSocket?.resume()
 39 |         readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
 44 |     ///   - message: The message to send
 45 |     public func send(message: String) async throws {
 46 |         try await WSSocket?.send(.string(message))
    |                                   `- error: cannot infer contextual base in reference to member 'string'
 47 |     }
 48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
 51 |     ///   - message: The message to send
 52 |     public func send(message: Data) async throws {
 53 |         try await WSSocket?.send(.data(message))
    |                                   `- error: cannot infer contextual base in reference to member 'data'
 54 |     }
 55 |
[7/28] Compiling SimpleNetworking EventSource.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// All the cookies
 28 |     public var cookies: [HTTPCookie]? = []
    |                          `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Protects mutable shared state used by concurrent async requests.
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |     /// Streaming response handler for connection open event
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/SimpleNetworking/SimpleNetworking.swift:64:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |
 63 |     /// URLSession Data Task
 64 |     internal var task: URLSessionDataTask?
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
 67 |     internal var ESsession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     /// Websocket socket
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/SimpleNetworking/SimpleNetworking.swift:117:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |     /// Set the session
116 |     /// - Parameter session: session
117 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |         self.session = session
119 |     }
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/SimpleNetworking/SimpleNetworking.swift:137:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |     /// Add a cookie to the storage
136 |     /// - Parameter add: cookie
137 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         stateLock.lock()
139 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:161:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     /// Add a cookie to the storage
160 |     /// - Parameter add: cookie
161 |     public func add(cookie: HTTPCookie) {
    |                             `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         stateLock.lock()
163 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:38: error: cannot find type 'URLSessionDataDelegate' in scope
80 | }
81 |
82 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
   |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
83 |     internal var onMessage: ((Data) -> Void)?
84 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
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/SimpleNetworking/SimpleNetworking/EventSource.swift:89:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 |         self.onError = onError
59 |
60 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
61 |         request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 |         addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 |
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
   |                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:29: error: cannot infer contextual base in reference to member 'default'
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
66 |             configuration: .default,
   |                             `- error: cannot infer contextual base in reference to member 'default'
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:68:28: error: 'nil' requires a contextual type
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
   |                            `- error: 'nil' requires a contextual type
69 |         )
70 |         task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 |             delegateQueue: nil
69 |         )
70 |         task = ESsession?.dataTask(with: request)
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 |         task?.resume()
72 |         onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
69 |         )
70 |         task = ESsession?.dataTask(with: request)
71 |         task?.resume()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
72 |         onOpen?()
73 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:77:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
75 |     /// Disconnect the EventSource connection.
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
78 |         ESsession?.invalidateAndCancel()
79 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
78 |         ESsession?.invalidateAndCancel()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
79 |     }
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |     public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
 36 |         self.onMessage = responder
 37 |         WSSocket = URLSession.shared.webSocketTask(with: socket)
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         WSSocket?.resume()
 39 |         readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
 44 |     ///   - message: The message to send
 45 |     public func send(message: String) async throws {
 46 |         try await WSSocket?.send(.string(message))
    |                                   `- error: cannot infer contextual base in reference to member 'string'
 47 |     }
 48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
 51 |     ///   - message: The message to send
 52 |     public func send(message: Data) async throws {
 53 |         try await WSSocket?.send(.data(message))
    |                                   `- error: cannot infer contextual base in reference to member 'data'
 54 |     }
 55 |
[8/28] Compiling SimpleNetworking WebSocket.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// All the cookies
 28 |     public var cookies: [HTTPCookie]? = []
    |                          `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Protects mutable shared state used by concurrent async requests.
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |     /// Streaming response handler for connection open event
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/SimpleNetworking/SimpleNetworking.swift:64:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |
 63 |     /// URLSession Data Task
 64 |     internal var task: URLSessionDataTask?
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
 67 |     internal var ESsession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     /// Websocket socket
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/SimpleNetworking/SimpleNetworking.swift:117:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |     /// Set the session
116 |     /// - Parameter session: session
117 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |         self.session = session
119 |     }
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/SimpleNetworking/SimpleNetworking.swift:137:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |     /// Add a cookie to the storage
136 |     /// - Parameter add: cookie
137 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         stateLock.lock()
139 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:161:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     /// Add a cookie to the storage
160 |     /// - Parameter add: cookie
161 |     public func add(cookie: HTTPCookie) {
    |                             `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         stateLock.lock()
163 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:141:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
139 |         defer { stateLock.unlock() }
140 |
141 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
142 |         cookies?.append(cookie)
143 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:165:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
163 |         defer { stateLock.unlock() }
164 |
165 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
166 |         cookies?.append(cookie)
167 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:38: error: cannot find type 'URLSessionDataDelegate' in scope
80 | }
81 |
82 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
   |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
83 |     internal var onMessage: ((Data) -> Void)?
84 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
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/SimpleNetworking/SimpleNetworking/EventSource.swift:89:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:60:23: error: cannot find 'URLRequest' in scope
58 |         self.onError = onError
59 |
60 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
61 |         request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
62 |         addStoredCookies(to: &request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:65:21: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 |
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
   |                     `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:66:29: error: cannot infer contextual base in reference to member 'default'
64 |         // Keep listening with streaming delegate
65 |         ESsession = URLSession(
66 |             configuration: .default,
   |                             `- error: cannot infer contextual base in reference to member 'default'
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:68:28: error: 'nil' requires a contextual type
66 |             configuration: .default,
67 |             delegate: EventSourceDelegate(onMessage: onMessage),
68 |             delegateQueue: nil
   |                            `- error: 'nil' requires a contextual type
69 |         )
70 |         task = ESsession?.dataTask(with: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:70:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
68 |             delegateQueue: nil
69 |         )
70 |         task = ESsession?.dataTask(with: request)
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
71 |         task?.resume()
72 |         onOpen?()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:71:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
69 |         )
70 |         task = ESsession?.dataTask(with: request)
71 |         task?.resume()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
72 |         onOpen?()
73 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:77:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
75 |     /// Disconnect the EventSource connection.
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
   |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
78 |         ESsession?.invalidateAndCancel()
79 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:78:20: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
76 |     public func eventSourceDisconnect() {
77 |         task?.cancel()
78 |         ESsession?.invalidateAndCancel()
   |                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
79 |     }
80 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:37:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |     public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
 36 |         self.onMessage = responder
 37 |         WSSocket = URLSession.shared.webSocketTask(with: socket)
    |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |         WSSocket?.resume()
 39 |         readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:46:35: error: cannot infer contextual base in reference to member 'string'
 44 |     ///   - message: The message to send
 45 |     public func send(message: String) async throws {
 46 |         try await WSSocket?.send(.string(message))
    |                                   `- error: cannot infer contextual base in reference to member 'string'
 47 |     }
 48 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:53:35: error: cannot infer contextual base in reference to member 'data'
 51 |     ///   - message: The message to send
 52 |     public func send(message: Data) async throws {
 53 |         try await WSSocket?.send(.data(message))
    |                                   `- error: cannot infer contextual base in reference to member 'data'
 54 |     }
 55 |
[9/28] Compiling SimpleNetworking HTTPMethod.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 66 |
 67 |             if let cookies = cookies,
 68 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 69 |                 cookieString = "-H 'Cookie: \(cookieValue)'"
 70 |             }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
 92 |
 93 |                 return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 |             if let cookies = cookies,
112 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 |                 lines.append("Cookie: \(cookieValue)")
114 |             }
[10/28] Compiling SimpleNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 66 |
 67 |             if let cookies = cookies,
 68 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 69 |                 cookieString = "-H 'Cookie: \(cookieValue)'"
 70 |             }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
 92 |
 93 |                 return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 |             if let cookies = cookies,
112 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 |                 lines.append("Cookie: \(cookieValue)")
114 |             }
[11/28] Compiling SimpleNetworking NetworkingError.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:68:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 66 |
 67 |             if let cookies = cookies,
 68 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 69 |                 cookieString = "-H 'Cookie: \(cookieValue)'"
 70 |             }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:88:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         /// Get the returned HTTP Headers
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:89:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 87 |         public var headers: [HTTPHeader] {
 88 |             let httpURLResponse = self.response as? HTTPURLResponse
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:91:69: error: 'nil' requires a contextual type
 89 |             return httpURLResponse?.allHeaderFields.compactMap {
 90 |                 guard let key = $0.key as? String,
 91 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
 92 |
 93 |                 return HTTPHeader(name: key, value: value)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:112:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
110 |
111 |             if let cookies = cookies,
112 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
113 |                 lines.append("Cookie: \(cookieValue)")
114 |             }
[12/28] Compiling SimpleNetworking POSTEncoding.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Mocked HTTP Response
21 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Mocked HTTP Response status code
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/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     ///   - statusCode: Mocked HTTP Response status code
34 |     ///   - error: Mocked Error (if any)
35 |     public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         self.data = data
37 |         self.response = response
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/SimpleNetworking/Structs/SNMock.swift:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     ///   - statusCode: Mocked HTTP Response status code
46 |     ///   - error: Mocked Error (if any)
47 |     public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         self.data = data?.data(using: .utf8)
49 |         self.response = response
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
[13/28] Compiling SimpleNetworking SNMock.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Mocked HTTP Response
21 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Mocked HTTP Response status code
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/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     ///   - statusCode: Mocked HTTP Response status code
34 |     ///   - error: Mocked Error (if any)
35 |     public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         self.data = data
37 |         self.response = response
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/SimpleNetworking/Structs/SNMock.swift:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     ///   - statusCode: Mocked HTTP Response status code
46 |     ///   - error: Mocked Error (if any)
47 |     public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         self.data = data?.data(using: .utf8)
49 |         self.response = response
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
[14/28] Compiling SimpleNetworking resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Mocked HTTP Response
21 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Mocked HTTP Response status code
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/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     ///   - statusCode: Mocked HTTP Response status code
34 |     ///   - error: Mocked Error (if any)
35 |     public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         self.data = data
37 |         self.response = response
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/SimpleNetworking/Structs/SNMock.swift:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     ///   - statusCode: Mocked HTTP Response status code
46 |     ///   - error: Mocked Error (if any)
47 |     public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         self.data = data?.data(using: .utf8)
49 |         self.response = response
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/28] Compiling SimpleNetworking Debug.swift
[16/28] Compiling SimpleNetworking FileUpload.swift
[17/28] Compiling SimpleNetworking HTTPHeader.swift
[18/28] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:28:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |
 27 |     /// All the cookies
 28 |     public var cookies: [HTTPCookie]? = []
    |                          `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |     /// Protects mutable shared state used by concurrent async requests.
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |     /// Streaming response handler for connection open event
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/SimpleNetworking/SimpleNetworking.swift:64:24: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |
 63 |     /// URLSession Data Task
 64 |     internal var task: URLSessionDataTask?
    |                        `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:67:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |     /// EventSource session
 67 |     internal var ESsession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |
 69 |     /// Websocket socket
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/SimpleNetworking/SimpleNetworking.swift:117:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |     /// Set the session
116 |     /// - Parameter session: session
117 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |         self.session = session
119 |     }
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/SimpleNetworking/SimpleNetworking.swift:137:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |     /// Add a cookie to the storage
136 |     /// - Parameter add: cookie
137 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         stateLock.lock()
139 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:161:29: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     /// Add a cookie to the storage
160 |     /// - Parameter add: cookie
161 |     public func add(cookie: HTTPCookie) {
    |                             `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         stateLock.lock()
163 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:82:38: error: cannot find type 'URLSessionDataDelegate' in scope
80 | }
81 |
82 | class EventSourceDelegate: NSObject, URLSessionDataDelegate, @unchecked Sendable {
   |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
83 |     internal var onMessage: ((Data) -> Void)?
84 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/EventSource.swift:89:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
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/SimpleNetworking/SimpleNetworking/EventSource.swift:89:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 |     }
88 |
89 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |         onMessage?(data)
91 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func cookieSnapshot() -> [HTTPCookie] {
    |                                        `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         stateLock.lock()
 21 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:39:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
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/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |                              response: URLResponse?,
 58 |                              data: Data?,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |                              data: Data?,
 59 |                              file: String = #file,
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/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
 74 |     }
 75 |
 76 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 77 |         if [
 78 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     }
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
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/SimpleNetworking/SimpleNetworking/request.swift:107:46: error: cannot find type 'URLRequest' in scope
105 |     }
106 |
107 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
 87 |     ///   - uploadData: The multipart upload data
 88 |     /// - Returns: URLRequest or nil if URL is invalid
 89 |     private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 90 |         guard let siteURL = self.isURL(path) else {
 91 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/SNMock.swift:21:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Mocked HTTP Response
21 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Mocked HTTP Response status code
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/SimpleNetworking/Structs/SNMock.swift:35:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     ///   - statusCode: Mocked HTTP Response status code
34 |     ///   - error: Mocked Error (if any)
35 |     public init(data: Data?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |         self.data = data
37 |         self.response = response
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/SimpleNetworking/Structs/SNMock.swift:47:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |     ///   - statusCode: Mocked HTTP Response status code
46 |     ///   - error: Mocked Error (if any)
47 |     public init(data: String?, response: URLResponse?, statusCode: Int? = 200, error: Error?) {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         self.data = data?.data(using: .utf8)
49 |         self.response = response
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
[19/28] Compiling SimpleNetworking logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |                              response: URLResponse?,
 58 |                              data: Data?,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |                              data: Data?,
 59 |                              file: String = #file,
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/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
 74 |     }
 75 |
 76 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 77 |         if [
 78 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     }
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
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/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 68 |             self.networkLogResponse(response: response)
 69 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |             self.networkLogResponse(response: response)
 69 |         }
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/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 97 |         if debug.requestCookies {
 98 |             log("Cookies:", level: .debug)
 99 |             if let cookies = session?.configuration.httpCookieStorage?.cookies {
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 |                 for cookie in cookies {
101 |                     log("  \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 |         for (header, cont) in response.allHeaderFields {
119 |             log("  \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 |             log("  \(header): \(cont)", level: .debug)
120 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:107:46: error: cannot find type 'URLRequest' in scope
105 |     }
106 |
107 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
 37 |                     message: "Error: Request endpoint doesn't appear to be an URL"
 38 |                 ),
 39 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 40 |             )
 41 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
 81 |                         message: "Error: Request endpoint doesn't appear to be an URL"
 82 |                     ),
 83 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 84 |                 )
 85 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 |     internal func createRequest(url: URL) -> URLRequest {
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
110 |
111 |         // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
 87 |     ///   - uploadData: The multipart upload data
 88 |     /// - Returns: URLRequest or nil if URL is invalid
 89 |     private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 90 |         guard let siteURL = self.isURL(path) else {
 91 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
 40 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 41 |                 ),
 42 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 43 |             )
 44 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
 73 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 74 |                     ),
 75 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 76 |                 )
 77 |             )
[20/28] Compiling SimpleNetworking request.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |                              response: URLResponse?,
 58 |                              data: Data?,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |                              data: Data?,
 59 |                              file: String = #file,
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/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
 74 |     }
 75 |
 76 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 77 |         if [
 78 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     }
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
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/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 68 |             self.networkLogResponse(response: response)
 69 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |             self.networkLogResponse(response: response)
 69 |         }
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/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 97 |         if debug.requestCookies {
 98 |             log("Cookies:", level: .debug)
 99 |             if let cookies = session?.configuration.httpCookieStorage?.cookies {
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 |                 for cookie in cookies {
101 |                     log("  \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 |         for (header, cont) in response.allHeaderFields {
119 |             log("  \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 |             log("  \(header): \(cont)", level: .debug)
120 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:107:46: error: cannot find type 'URLRequest' in scope
105 |     }
106 |
107 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
 37 |                     message: "Error: Request endpoint doesn't appear to be an URL"
 38 |                 ),
 39 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 40 |             )
 41 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
 81 |                         message: "Error: Request endpoint doesn't appear to be an URL"
 82 |                     ),
 83 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 84 |                 )
 85 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 |     internal func createRequest(url: URL) -> URLRequest {
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
110 |
111 |         // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
 87 |     ///   - uploadData: The multipart upload data
 88 |     /// - Returns: URLRequest or nil if URL is invalid
 89 |     private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 90 |         guard let siteURL = self.isURL(path) else {
 91 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
 40 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 41 |                 ),
 42 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 43 |             )
 44 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
 73 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 74 |                     ),
 75 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 76 |                 )
 77 |             )
[21/28] Compiling SimpleNetworking uploadMethods.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:56:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |                              response: URLResponse?,
 58 |                              data: Data?,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:57:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |     internal func networkLog(request: URLRequest?,
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |                              data: Data?,
 59 |                              file: String = #file,
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/SimpleNetworking/SimpleNetworking/logging.swift:76:46: error: cannot find type 'URLRequest' in scope
 74 |     }
 75 |
 76 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 77 |         if [
 78 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:116:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |     }
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
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/SimpleNetworking/SimpleNetworking/logging.swift:67:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 68 |             self.networkLogResponse(response: response)
 69 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:67:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |
 66 |         if debug.responseHeaders,
 67 |            let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |             self.networkLogResponse(response: response)
 69 |         }
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/SimpleNetworking/SimpleNetworking/logging.swift:99:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 97 |         if debug.requestCookies {
 98 |             log("Cookies:", level: .debug)
 99 |             if let cookies = session?.configuration.httpCookieStorage?.cookies {
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
100 |                 for cookie in cookies {
101 |                     log("  \(cookie.name): \(cookie.value)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:117:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 |
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
118 |         for (header, cont) in response.allHeaderFields {
119 |             log("  \(header): \(cont)", level: .debug)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:118:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
116 |     internal func networkLogResponse(response: HTTPURLResponse) {
117 |         log("HTTPURLResponse: HTTP \(response.statusCode)")
118 |         for (header, cont) in response.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
119 |             log("  \(header): \(cont)", level: .debug)
120 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:107:46: error: cannot find type 'URLRequest' in scope
105 |     }
106 |
107 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:39:27: error: cannot infer contextual base in reference to member 'init'
 37 |                     message: "Error: Request endpoint doesn't appear to be an URL"
 38 |                 ),
 39 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 40 |             )
 41 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:83:31: error: cannot infer contextual base in reference to member 'init'
 81 |                         message: "Error: Request endpoint doesn't appear to be an URL"
 82 |                     ),
 83 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 84 |                 )
 85 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:109:23: error: cannot find 'URLRequest' in scope
107 |     internal func createRequest(url: URL) -> URLRequest {
108 |         // Create a URL Request
109 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
110 |
111 |         // Add the user agent
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:89:88: error: cannot find type 'URLRequest' in scope
 87 |     ///   - uploadData: The multipart upload data
 88 |     /// - Returns: URLRequest or nil if URL is invalid
 89 |     private func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
 90 |         guard let siteURL = self.isURL(path) else {
 91 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:42:27: error: cannot infer contextual base in reference to member 'init'
 40 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 41 |                 ),
 42 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 43 |             )
 44 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:75:31: error: cannot infer contextual base in reference to member 'init'
 73 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 74 |                     ),
 75 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 76 |                 )
 77 |             )
[22/28] Compiling SimpleNetworking Post.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[23/28] Compiling SimpleNetworking Put.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[24/28] Compiling SimpleNetworking SimpleNetworkingWrapper.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[25/28] Compiling SimpleNetworking Upload.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:52:68: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// custom session
 52 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 |
 54 |     /// Streaming response handler for connection open event
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:70:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |
 69 |     /// Websocket socket
 70 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 71 |
 72 |     /// Websocket connection tries
[26/28] Compiling SimpleNetworking cookies.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func cookieSnapshot() -> [HTTPCookie] {
    |                                        `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         stateLock.lock()
 21 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:39:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
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/SimpleNetworking/SimpleNetworking/cookies.swift:32:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 30 |
 31 |         guard !storedCookies.isEmpty,
 32 |               let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 33 |             return
 34 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 41 |               let url = httpResponse.url else {
 42 |             return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |               let url = httpResponse.url else {
 42 |             return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:41:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 42 |             return
 43 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:45:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 43 |         }
 44 |
 45 |         let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 46 |             guard let key = header.key as? String else {
 47 |                 return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:52:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 50 |             result[key] = "\(header.value)"
 51 |         }
 52 |         let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
    |                                          `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 53 |
 54 |         guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |     ///   - value: cookie value
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
    |                         `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             .domain: domain,
 75 |             .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'domain' cannot be resolved without a contextual type
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
    |              `- error: reference to member 'domain' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'path' cannot be resolved without a contextual type
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
 75 |             .path: path,
    |              `- error: reference to member 'path' cannot be resolved without a contextual type
 76 |             .name: name,
 77 |             .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:76:14: error: reference to member 'name' cannot be resolved without a contextual type
 74 |             .domain: domain,
 75 |             .path: path,
 76 |             .name: name,
    |              `- error: reference to member 'name' cannot be resolved without a contextual type
 77 |             .value: value
 78 |         ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:77:14: error: reference to member 'value' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
 77 |             .value: value
    |              `- error: reference to member 'value' cannot be resolved without a contextual type
 78 |         ]) {
 79 |             stateLock.lock()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:95:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     ///   - value: cookie value
 94 |     public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
 95 |         var newCookieStorage: [HTTPCookie] = []
    |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |         stateLock.lock()
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:108:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
106 |         cookie.path == path,
107 |         cookie.name == name,
108 |         cookie.value == value
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
109 |         ].contains(true) {
110 |             newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:107:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
107 |         cookie.name == name,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
108 |         cookie.value == value
109 |         ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:106:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
107 |         cookie.name == name,
108 |         cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:105:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
103 |
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
106 |         cookie.path == path,
107 |         cookie.name == name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
 43 |                     string: String(data: data, encoding: .utf8),
 44 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 45 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
 46 |                     request: preparedRequest
 47 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:70:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 68 |
 69 |             do {
 70 |                 let (data, response) = try await session.data(for: preparedRequest)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 71 |
 72 |                 saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:90:28: error: 'nil' requires a contextual type
 88 |                     response: response,
 89 |                     statuscode: httpCode,
 90 |                     error: nil,
    |                            `- error: 'nil' requires a contextual type
 91 |                     data: data,
 92 |                     string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:131:30: error: 'nil' requires a contextual type
129 |                     string: String(data: data, encoding: .utf8),
130 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
131 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
132 |                     request: request
133 |                 ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:13: error: cannot find 'DispatchQueue' in scope
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |             `- error: cannot find 'DispatchQueue' in scope
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:40: error: cannot infer contextual base in reference to member 'userInitiated'
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |                                        `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:65: error: cannot infer type of closure parameter 'siteData' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                 `- error: cannot infer type of closure parameter 'siteData' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:75: error: cannot infer type of closure parameter 'response' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                           `- error: cannot infer type of closure parameter 'response' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:85: error: cannot infer type of closure parameter 'taskError' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                                     `- error: cannot infer type of closure parameter 'taskError' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
[27/28] Compiling SimpleNetworking createHTTPBody.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func cookieSnapshot() -> [HTTPCookie] {
    |                                        `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         stateLock.lock()
 21 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:39:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
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/SimpleNetworking/SimpleNetworking/cookies.swift:32:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 30 |
 31 |         guard !storedCookies.isEmpty,
 32 |               let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 33 |             return
 34 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 41 |               let url = httpResponse.url else {
 42 |             return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |               let url = httpResponse.url else {
 42 |             return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:41:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 42 |             return
 43 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:45:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 43 |         }
 44 |
 45 |         let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 46 |             guard let key = header.key as? String else {
 47 |                 return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:52:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 50 |             result[key] = "\(header.value)"
 51 |         }
 52 |         let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
    |                                          `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 53 |
 54 |         guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |     ///   - value: cookie value
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
    |                         `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             .domain: domain,
 75 |             .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'domain' cannot be resolved without a contextual type
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
    |              `- error: reference to member 'domain' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'path' cannot be resolved without a contextual type
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
 75 |             .path: path,
    |              `- error: reference to member 'path' cannot be resolved without a contextual type
 76 |             .name: name,
 77 |             .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:76:14: error: reference to member 'name' cannot be resolved without a contextual type
 74 |             .domain: domain,
 75 |             .path: path,
 76 |             .name: name,
    |              `- error: reference to member 'name' cannot be resolved without a contextual type
 77 |             .value: value
 78 |         ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:77:14: error: reference to member 'value' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
 77 |             .value: value
    |              `- error: reference to member 'value' cannot be resolved without a contextual type
 78 |         ]) {
 79 |             stateLock.lock()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:95:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     ///   - value: cookie value
 94 |     public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
 95 |         var newCookieStorage: [HTTPCookie] = []
    |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |         stateLock.lock()
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:108:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
106 |         cookie.path == path,
107 |         cookie.name == name,
108 |         cookie.value == value
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
109 |         ].contains(true) {
110 |             newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:107:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
107 |         cookie.name == name,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
108 |         cookie.value == value
109 |         ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:106:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
107 |         cookie.name == name,
108 |         cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:105:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
103 |
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
106 |         cookie.path == path,
107 |         cookie.name == name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
 43 |                     string: String(data: data, encoding: .utf8),
 44 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 45 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
 46 |                     request: preparedRequest
 47 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:70:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 68 |
 69 |             do {
 70 |                 let (data, response) = try await session.data(for: preparedRequest)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 71 |
 72 |                 saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:90:28: error: 'nil' requires a contextual type
 88 |                     response: response,
 89 |                     statuscode: httpCode,
 90 |                     error: nil,
    |                            `- error: 'nil' requires a contextual type
 91 |                     data: data,
 92 |                     string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:131:30: error: 'nil' requires a contextual type
129 |                     string: String(data: data, encoding: .utf8),
130 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
131 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
132 |                     request: request
133 |                 ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:13: error: cannot find 'DispatchQueue' in scope
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |             `- error: cannot find 'DispatchQueue' in scope
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:40: error: cannot infer contextual base in reference to member 'userInitiated'
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |                                        `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:65: error: cannot infer type of closure parameter 'siteData' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                 `- error: cannot infer type of closure parameter 'siteData' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:75: error: cannot infer type of closure parameter 'response' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                           `- error: cannot infer type of closure parameter 'response' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:85: error: cannot infer type of closure parameter 'taskError' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                                     `- error: cannot infer type of closure parameter 'taskError' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
[28/28] Compiling SimpleNetworking exec.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:19:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func cookieSnapshot() -> [HTTPCookie] {
    |                                        `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         stateLock.lock()
 21 |         defer { stateLock.unlock() }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:54: error: cannot find type 'URLRequest' in scope
 24 |     }
 25 |
 26 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 27 |         stateLock.lock()
 28 |         let storedCookies = cookies ?? []
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:39:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     }
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
    |                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
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/SimpleNetworking/SimpleNetworking/cookies.swift:32:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 30 |
 31 |         guard !storedCookies.isEmpty,
 32 |               let cookieHeader = HTTPCookie.requestHeaderFields(with: storedCookies)["Cookie"] else {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 33 |             return
 34 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 41 |               let url = httpResponse.url else {
 42 |             return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:40:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |               let url = httpResponse.url else {
 42 |             return
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:41:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 39 |     internal func saveCookies(from response: URLResponse?) {
 40 |         guard let httpResponse = response as? HTTPURLResponse,
 41 |               let url = httpResponse.url else {
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 42 |             return
 43 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:45:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 43 |         }
 44 |
 45 |         let headerFields = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
    |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 46 |             guard let key = header.key as? String else {
 47 |                 return
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:52:42: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 50 |             result[key] = "\(header.value)"
 51 |         }
 52 |         let responseCookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url)
    |                                          `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
 53 |
 54 |         guard !responseCookies.isEmpty else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:73:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |     ///   - value: cookie value
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
    |                         `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             .domain: domain,
 75 |             .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:74:14: error: reference to member 'domain' cannot be resolved without a contextual type
 72 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
    |              `- error: reference to member 'domain' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:75:14: error: reference to member 'path' cannot be resolved without a contextual type
 73 |         if let cookie = HTTPCookie(properties: [
 74 |             .domain: domain,
 75 |             .path: path,
    |              `- error: reference to member 'path' cannot be resolved without a contextual type
 76 |             .name: name,
 77 |             .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:76:14: error: reference to member 'name' cannot be resolved without a contextual type
 74 |             .domain: domain,
 75 |             .path: path,
 76 |             .name: name,
    |              `- error: reference to member 'name' cannot be resolved without a contextual type
 77 |             .value: value
 78 |         ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:77:14: error: reference to member 'value' cannot be resolved without a contextual type
 75 |             .path: path,
 76 |             .name: name,
 77 |             .value: value
    |              `- error: reference to member 'value' cannot be resolved without a contextual type
 78 |         ]) {
 79 |             stateLock.lock()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:95:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     ///   - value: cookie value
 94 |     public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
 95 |         var newCookieStorage: [HTTPCookie] = []
    |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |         stateLock.lock()
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' 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 HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:108:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
106 |         cookie.path == path,
107 |         cookie.name == name,
108 |         cookie.value == value
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
109 |         ].contains(true) {
110 |             newCookieStorage.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:107:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
107 |         cookie.name == name,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
108 |         cookie.value == value
109 |         ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:106:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
106 |         cookie.path == path,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
107 |         cookie.name == name,
108 |         cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:105:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
103 |
104 |         for cookie in unwrapped where ![
105 |         cookie.domain == deleteCookieWithDomain,
    |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
106 |         cookie.path == path,
107 |         cookie.name == name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:111:23: error: cannot find type 'URLRequest' in scope
109 |     /// - Returns: ``NetworkResponse``
110 |     internal func exec(
111 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
112 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
113 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:45:30: error: 'nil' requires a contextual type
 43 |                     string: String(data: data, encoding: .utf8),
 44 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 45 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
 46 |                     request: preparedRequest
 47 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:70:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 68 |
 69 |             do {
 70 |                 let (data, response) = try await session.data(for: preparedRequest)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 71 |
 72 |                 saveCookies(from: response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:55:39: error: cannot find type 'URLRequest' in scope
 53 |     }
 54 |
 55 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 56 |                              session: URLSession?,
 57 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:90:28: error: 'nil' requires a contextual type
 88 |                     response: response,
 89 |                     statuscode: httpCode,
 90 |                     error: nil,
    |                            `- error: 'nil' requires a contextual type
 91 |                     data: data,
 92 |                     string: String(data: data, encoding: .utf8),
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:131:30: error: 'nil' requires a contextual type
129 |                     string: String(data: data, encoding: .utf8),
130 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
131 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
132 |                     request: request
133 |                 ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:13: error: cannot find 'DispatchQueue' in scope
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |             `- error: cannot find 'DispatchQueue' in scope
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:136:40: error: cannot infer contextual base in reference to member 'userInitiated'
134 |             }
135 |
136 |             DispatchQueue.global(qos: .userInitiated).async {
    |                                        `- error: cannot infer contextual base in reference to member 'userInitiated'
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:65: error: cannot infer type of closure parameter 'siteData' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                 `- error: cannot infer type of closure parameter 'siteData' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:75: error: cannot infer type of closure parameter 'response' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                           `- error: cannot infer type of closure parameter 'response' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:138:85: error: cannot infer type of closure parameter 'taskError' without a type annotation
136 |             DispatchQueue.global(qos: .userInitiated).async {
137 |                 // Start our datatask
138 |                 self.session?.dataTask(with: request) { [self] (siteData, response, taskError) in
    |                                                                                     `- error: cannot infer type of closure parameter 'taskError' without a type annotation
139 |                     // Check if we got any useable site data
140 |                     guard let siteData = siteData else {
BUILD FAILURE 6.1 wasm