The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleNetworking, reference 1.1.5 (055710), with Swift 6.3 for Wasm on 21 Apr 2026 18:25:36 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/SimpleNetworking.git
Reference: 1.1.5
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/0xWDG/SimpleNetworking
 * tag               1.1.5      -> FETCH_HEAD
HEAD is now at 0557109 Fix posting
Cloned https://github.com/0xWDG/SimpleNetworking.git
Revision (git rev-parse @):
0557109b36ff4a6b7245e852a7d1b3148693e2fa
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/SimpleNetworking.git at 1.1.5
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/0xWDG/SimpleNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// 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 |     /// Header
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:95:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     /// Set the session
 94 |     /// - Parameter session: session
 95 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |         self.session = session
 97 |     }
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:115:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     /// Add a cookie to the storage
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
117 |         cookies?.append(cookie)
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/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:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:19:39: error: cannot find type 'URLRequest' in scope
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:20:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |                              response: URLResponse?,
 22 |                              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:21:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |                              data: Data?,
 23 |                              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:40:46: error: cannot find type 'URLRequest' in scope
 38 |     }
 39 |
 40 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 41 |         if [
 42 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:81:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     }
 80 |
 81 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
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:106:46: error: cannot find type 'URLRequest' in scope
104 |     }
105 |
106 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
107 |         // Create a URL Request
108 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:22:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public struct NetworkResponse {
 21 |         /// URL Response
 22 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |         /// 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:40:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |         /// Reveived cookies.
 40 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         /// 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
[5/21] Compiling SimpleNetworking WebSocket.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:25:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
24 |         self.WSResponder = responder
25 |         WSSocket = URLSession.shared.webSocketTask(with: socket)
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         WSSocket?.resume()
27 |         readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |     ///   - value: cookie value
25 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 |         if let cookie = HTTPCookie(properties: [
   |                         `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |             .domain: domain,
28 |             .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:14: error: reference to member 'domain' cannot be resolved without a contextual type
25 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 |         if let cookie = HTTPCookie(properties: [
27 |             .domain: domain,
   |              `- error: reference to member 'domain' cannot be resolved without a contextual type
28 |             .path: path,
29 |             .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:28:14: error: reference to member 'path' cannot be resolved without a contextual type
26 |         if let cookie = HTTPCookie(properties: [
27 |             .domain: domain,
28 |             .path: path,
   |              `- error: reference to member 'path' cannot be resolved without a contextual type
29 |             .name: name,
30 |             .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:29:14: error: reference to member 'name' cannot be resolved without a contextual type
27 |             .domain: domain,
28 |             .path: path,
29 |             .name: name,
   |              `- error: reference to member 'name' cannot be resolved without a contextual type
30 |             .value: value
31 |         ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:30:14: error: reference to member 'value' cannot be resolved without a contextual type
28 |             .path: path,
29 |             .name: name,
30 |             .value: value
   |              `- error: reference to member 'value' cannot be resolved without a contextual type
31 |         ]) {
32 |             cookies?.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:46:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     ///   - value: cookie value
45 |     public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
46 |         var newCookieStorage: [HTTPCookie] = []
   |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 |         guard let unwrapped = cookies else {
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:53:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
51 |
52 |         for cookie in unwrapped where ![
53 |         cookie.domain == deleteCookieWithDomain,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
54 |         cookie.path == path,
55 |         cookie.name == name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:54:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
52 |         for cookie in unwrapped where ![
53 |         cookie.domain == deleteCookieWithDomain,
54 |         cookie.path == path,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
55 |         cookie.name == name,
56 |         cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:55:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
53 |         cookie.domain == deleteCookieWithDomain,
54 |         cookie.path == path,
55 |         cookie.name == name,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
56 |         cookie.value == value
57 |         ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:56:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
54 |         cookie.path == path,
55 |         cookie.name == name,
56 |         cookie.value == value
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
57 |         ].contains(true) {
58 |             newCookieStorage.append(cookie)
[6/21] Compiling SimpleNetworking cookies.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// Websocket connection tries
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/WebSocket.swift:25:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public func connect(to socket: URL, responder: @escaping ((Data) -> Void)) {
24 |         self.WSResponder = responder
25 |         WSSocket = URLSession.shared.webSocketTask(with: socket)
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         WSSocket?.resume()
27 |         readMessage()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:26:25: error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |     ///   - value: cookie value
25 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 |         if let cookie = HTTPCookie(properties: [
   |                         `- error: 'HTTPCookie' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
27 |             .domain: domain,
28 |             .path: path,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:27:14: error: reference to member 'domain' cannot be resolved without a contextual type
25 |     @discardableResult public func cookie(domain: String, path: String, name: String, value: String) -> Bool {
26 |         if let cookie = HTTPCookie(properties: [
27 |             .domain: domain,
   |              `- error: reference to member 'domain' cannot be resolved without a contextual type
28 |             .path: path,
29 |             .name: name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:28:14: error: reference to member 'path' cannot be resolved without a contextual type
26 |         if let cookie = HTTPCookie(properties: [
27 |             .domain: domain,
28 |             .path: path,
   |              `- error: reference to member 'path' cannot be resolved without a contextual type
29 |             .name: name,
30 |             .value: value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:29:14: error: reference to member 'name' cannot be resolved without a contextual type
27 |             .domain: domain,
28 |             .path: path,
29 |             .name: name,
   |              `- error: reference to member 'name' cannot be resolved without a contextual type
30 |             .value: value
31 |         ]) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:30:14: error: reference to member 'value' cannot be resolved without a contextual type
28 |             .path: path,
29 |             .name: name,
30 |             .value: value
   |              `- error: reference to member 'value' cannot be resolved without a contextual type
31 |         ]) {
32 |             cookies?.append(cookie)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:46:32: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     ///   - value: cookie value
45 |     public func cookie(deleteCookieWithDomain: String?, path: String?, name: String?, value: String?) {
46 |         var newCookieStorage: [HTTPCookie] = []
   |                                `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |
48 |         guard let unwrapped = cookies else {
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:53:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
51 |
52 |         for cookie in unwrapped where ![
53 |         cookie.domain == deleteCookieWithDomain,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'domain'
54 |         cookie.path == path,
55 |         cookie.name == name,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:54:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
52 |         for cookie in unwrapped where ![
53 |         cookie.domain == deleteCookieWithDomain,
54 |         cookie.path == path,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'path'
55 |         cookie.name == name,
56 |         cookie.value == value
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:55:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
53 |         cookie.domain == deleteCookieWithDomain,
54 |         cookie.path == path,
55 |         cookie.name == name,
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
56 |         cookie.value == value
57 |         ].contains(true) {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:56:16: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
54 |         cookie.path == path,
55 |         cookie.name == name,
56 |         cookie.value == value
   |                `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
57 |         ].contains(true) {
58 |             newCookieStorage.append(cookie)
[7/21] 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
[8/21] 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
[9/21] Compiling SimpleNetworking Debug.swift
[10/21] Compiling SimpleNetworking HTTPHeader.swift
[11/21] Compiling SimpleNetworking logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:19:39: error: cannot find type 'URLRequest' in scope
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:20:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |                              response: URLResponse?,
 22 |                              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:21:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |                              data: Data?,
 23 |                              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:40:46: error: cannot find type 'URLRequest' in scope
 38 |     }
 39 |
 40 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 41 |         if [
 42 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:81:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     }
 80 |
 81 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
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:31:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |
 30 |         if debug.responseHeaders,
 31 |            let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |             self.networkLogResponse(response: response)
 33 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:31:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |         if debug.responseHeaders,
 31 |            let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |             self.networkLogResponse(response: response)
 33 |         }
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:64:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 62 |         if debug.requestCookies {
 63 |             print("\n  Cookies:")
 64 |             if let cookies = session?.configuration.httpCookieStorage?.cookies {
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 65 |                 for cookie in cookies {
 66 |                     print("    \(cookie.name): \(cookie.value)")
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:83:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |     internal func networkLogResponse(response: HTTPURLResponse) {
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |         for (header, cont) in response.allHeaderFields {
 85 |             print("    \(header): \(cont)")
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:84:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
 84 |         for (header, cont) in response.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 85 |             print("    \(header): \(cont)")
 86 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:106:46: error: cannot find type 'URLRequest' in scope
104 |     }
105 |
106 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
107 |         // Create a URL Request
108 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// 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:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:82:31: error: cannot infer contextual base in reference to member 'init'
 80 |                         message: "Error: Request endpoint doesn't appear to be an URL"
 81 |                     ),
 82 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 83 |                 )
 84 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:108:23: error: cannot find 'URLRequest' in scope
106 |     internal func createRequest(url: URL) -> URLRequest {
107 |         // Create a URL Request
108 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
109 |
110 |         // Add the user agent
[12/21] Compiling SimpleNetworking request.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:19:39: error: cannot find type 'URLRequest' in scope
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:20:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |                              response: URLResponse?,
 22 |                              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:21:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     internal func networkLog(request: URLRequest?,
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |                              data: Data?,
 23 |                              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:40:46: error: cannot find type 'URLRequest' in scope
 38 |     }
 39 |
 40 |     internal func networkLogRequest(request: URLRequest) {
    |                                              `- error: cannot find type 'URLRequest' in scope
 41 |         if [
 42 |             debug.requestURL,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:81:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     }
 80 |
 81 |     internal func networkLogResponse(response: HTTPURLResponse) {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
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:31:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |
 30 |         if debug.responseHeaders,
 31 |            let response = response as? HTTPURLResponse {
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |             self.networkLogResponse(response: response)
 33 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:31:40: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |
 30 |         if debug.responseHeaders,
 31 |            let response = response as? HTTPURLResponse {
    |                                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |             self.networkLogResponse(response: response)
 33 |         }
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:64:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 62 |         if debug.requestCookies {
 63 |             print("\n  Cookies:")
 64 |             if let cookies = session?.configuration.httpCookieStorage?.cookies {
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 65 |                 for cookie in cookies {
 66 |                     print("    \(cookie.name): \(cookie.value)")
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:83:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |     internal func networkLogResponse(response: HTTPURLResponse) {
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |         for (header, cont) in response.allHeaderFields {
 85 |             print("    \(header): \(cont)")
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:84:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 82 |         print("\nHTTPURLResponse:")
 83 |         print("  HTTP \(response.statusCode)")
 84 |         for (header, cont) in response.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 85 |             print("    \(header): \(cont)")
 86 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:106:46: error: cannot find type 'URLRequest' in scope
104 |     }
105 |
106 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
107 |         // Create a URL Request
108 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// 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:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:82:31: error: cannot infer contextual base in reference to member 'init'
 80 |                         message: "Error: Request endpoint doesn't appear to be an URL"
 81 |                     ),
 82 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 83 |                 )
 84 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:108:23: error: cannot find 'URLRequest' in scope
106 |     internal func createRequest(url: URL) -> URLRequest {
107 |         // Create a URL Request
108 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
109 |
110 |         // Add the user agent
[13/21] Compiling SimpleNetworking HTTPMethod.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:22:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public struct NetworkResponse {
 21 |         /// URL Response
 22 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |         /// 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:40:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |         /// Reveived cookies.
 40 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         /// 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:56:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 54 |
 55 |             if let cookies = cookies,
 56 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 57 |                 cookieString = "-H 'Cookie: \(cookieValue)'"
 58 |             }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:76:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 74 |         /// Get the returned HTTP Headers
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
 78 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:76:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         /// Get the returned HTTP Headers
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
 78 |                 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:77:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 78 |                 guard let key = $0.key as? String,
 79 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:100:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 98 |
 99 |             if let cookies = cookies,
100 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
101 |                 lines.append("Cookie: \(cookieValue)")
102 |             }
[14/21] Compiling SimpleNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:22:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public struct NetworkResponse {
 21 |         /// URL Response
 22 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |         /// 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:40:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |
 39 |         /// Reveived cookies.
 40 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |         /// 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:56:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 54 |
 55 |             if let cookies = cookies,
 56 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 57 |                 cookieString = "-H 'Cookie: \(cookieValue)'"
 58 |             }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:76:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 74 |         /// Get the returned HTTP Headers
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
 78 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:76:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |         /// Get the returned HTTP Headers
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
 78 |                 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:77:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 75 |         public var headers: [HTTPHeader] {
 76 |             let httpURLResponse = self.response as? HTTPURLResponse
 77 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 78 |                 guard let key = $0.key as? String,
 79 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:100:45: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
 98 |
 99 |             if let cookies = cookies,
100 |                let cookieValue = HTTPCookie.requestHeaderFields(with: cookies)["Cookie"] {
    |                                             `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
101 |                 lines.append("Cookie: \(cookieValue)")
102 |             }
[15/21] Compiling SimpleNetworking isURL.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// 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 |     /// Header
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:95:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     /// Set the session
 94 |     /// - Parameter session: session
 95 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |         self.session = session
 97 |     }
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:115:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     /// Add a cookie to the storage
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
117 |         cookies?.append(cookie)
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:116:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:116:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
[16/21] Compiling SimpleNetworking toJSON.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// 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 |     /// Header
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:95:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     /// Set the session
 94 |     /// - Parameter session: session
 95 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |         self.session = session
 97 |     }
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:115:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     /// Add a cookie to the storage
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
117 |         cookies?.append(cookie)
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:116:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:116:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
[17/21] Compiling SimpleNetworking SimpleNetworking.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:41: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:49:68: error: cannot infer contextual base in reference to member 'ephemeral'
 47 |
 48 |     /// custom session
 49 |     internal var session: URLSession? = URLSession(configuration: .ephemeral)
    |                                                                    `- error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 |     /// Websocket responder
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:55:28: error: cannot find type 'URLSessionWebSocketTask' in scope
 53 |
 54 |     /// Websocket socket
 55 |     internal var WSSocket: URLSessionWebSocketTask?
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 56 |
 57 |     /// 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 |     /// Header
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:95:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     /// Set the session
 94 |     /// - Parameter session: session
 95 |     public func set(session: URLSession) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |         self.session = session
 97 |     }
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:115:36: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     /// Add a cookie to the storage
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
    |                                    `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
117 |         cookies?.append(cookie)
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:116:40: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                        `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking.swift:116:55: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
114 |     /// - Parameter add: cookie
115 |     public func cookie(add cookie: HTTPCookie) {
116 |         cookies?.removeAll(where: { $0.name == cookie.name })
    |                                                       `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
117 |         cookies?.append(cookie)
118 |     }
[18/21] Compiling SimpleNetworking NetworkingError.swift
[19/21] Compiling SimpleNetworking POSTEncoding.swift
[20/21] Compiling SimpleNetworking createHTTPBody.swift
/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:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:42:30: error: 'nil' requires a contextual type
 40 |                     string: String(data: data, encoding: .utf8),
 41 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 42 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
 43 |                     request: request
 44 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:61:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 59 |             if let cookies = self.cookies {
 60 |                 for cookieData in cookies {
 61 |                     if let cookiestorage = self.session?.configuration.httpCookieStorage {
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 62 |                         cookiestorage.setCookie(cookieData)
 63 |                     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |
 71 |             do {
 72 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |                 if let responseCookies = session.configuration.httpCookieStorage?.cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:74:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |                 let (data, response) = try await session.data(for: request)
 73 |
 74 |                 if let responseCookies = session.configuration.httpCookieStorage?.cookies {
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |                     // Save our cookies
 76 |                     cookies = responseCookies
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:19:39: error: cannot find type 'URLRequest' in scope
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:98:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 96 |                     string: String(data: data, encoding: .utf8),
 97 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 98 |                     cookies: session.configuration.httpCookieStorage?.cookies,
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |                     request: request
100 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:94:28: error: 'nil' requires a contextual type
 92 |                     response: response,
 93 |                     statuscode: httpCode,
 94 |                     error: nil,
    |                            `- error: 'nil' requires a contextual type
 95 |                     data: data,
 96 |                     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 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
/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 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
137 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
139 |                         self.session?.configuration.httpCookieStorage?.setCookie(cookieData)
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
140 |                     }
141 |                 }
[21/21] Compiling SimpleNetworking exec.swift
/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:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:43:29: error: cannot find type 'URLRequest' in scope
 41 |
 42 |         /// Request
 43 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 44 |
 45 |         /// Request as cURL command.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:42:30: error: 'nil' requires a contextual type
 40 |                     string: String(data: data, encoding: .utf8),
 41 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 42 |                     cookies: nil,
    |                              `- error: 'nil' requires a contextual type
 43 |                     request: request
 44 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:61:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 59 |             if let cookies = self.cookies {
 60 |                 for cookieData in cookies {
 61 |                     if let cookiestorage = self.session?.configuration.httpCookieStorage {
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 62 |                         cookiestorage.setCookie(cookieData)
 63 |                     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:72:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |
 71 |             do {
 72 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |
 74 |                 if let responseCookies = session.configuration.httpCookieStorage?.cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:74:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 72 |                 let (data, response) = try await session.data(for: request)
 73 |
 74 |                 if let responseCookies = session.configuration.httpCookieStorage?.cookies {
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 75 |                     // Save our cookies
 76 |                     cookies = responseCookies
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/logging.swift:19:39: error: cannot find type 'URLRequest' in scope
 17 |
 18 | extension SimpleNetworking {
 19 |     internal func networkLog(request: URLRequest?,
    |                                       `- error: cannot find type 'URLRequest' in scope
 20 |                              session: URLSession?,
 21 |                              response: URLResponse?,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:98:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 96 |                     string: String(data: data, encoding: .utf8),
 97 |                     dictionary: try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
 98 |                     cookies: session.configuration.httpCookieStorage?.cookies,
    |                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |                     request: request
100 |                 )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:94:28: error: 'nil' requires a contextual type
 92 |                     response: response,
 93 |                     statuscode: httpCode,
 94 |                     error: nil,
    |                            `- error: 'nil' requires a contextual type
 95 |                     data: data,
 96 |                     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 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
/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 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:139:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
137 |                 if let cookies = self.cookies {
138 |                     for cookieData in cookies {
139 |                         self.session?.configuration.httpCookieStorage?.setCookie(cookieData)
    |                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
140 |                     }
141 |                 }
BUILD FAILURE 6.3 wasm