The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleNetworking, reference master (bd2bd4), with Swift 6.1 for Wasm on 27 May 2025 17:54:17 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gonzalezreal/SimpleNetworking.git
Reference: master
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/gonzalezreal/SimpleNetworking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at bd2bd41 Update README
Cloned https://github.com/gonzalezreal/SimpleNetworking.git
Revision (git rev-parse @):
bd2bd41ab92d83a0de1991c4b10d5f182fafee2f
SUCCESS checkout https://github.com/gonzalezreal/SimpleNetworking.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/gonzalezreal/SimpleNetworking.git
https://github.com/gonzalezreal/SimpleNetworking.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    }
  ],
  "manifest_display_name" : "SimpleNetworking",
  "name" : "SimpleNetworking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "SimpleNetworking",
      "targets" : [
        "SimpleNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleNetworkingTests",
      "path" : "Tests/SimpleNetworkingTests",
      "sources" : [
        "APIClientTest.swift",
        "APIRequestTest.swift",
        "Fixtures.swift",
        "HTTPURLResponseAdditionsTest.swift",
        "URLRequestAdditionsTest.swift"
      ],
      "target_dependencies" : [
        "SimpleNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleNetworking",
      "module_type" : "SwiftTarget",
      "name" : "SimpleNetworking",
      "path" : "Sources/SimpleNetworking",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "SimpleNetworking"
      ],
      "sources" : [
        "APIClient.swift",
        "APIClientConfiguration.swift",
        "APIClientError.swift",
        "APIError.swift",
        "APIRequest+Convenience.swift",
        "APIRequest.swift",
        "ContentType.swift",
        "Data+LogDescription.swift",
        "Dictionary+LogDescription.swift",
        "HTTPStubProtocol.swift",
        "HTTPURLResponse+Logging.swift",
        "HeaderField.swift",
        "Internal/Exports.swift",
        "URLRequest+APIRequest.swift",
        "URLSession+Stubbed.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.44s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (1.50s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging LogHandler.swift
[5/8] Emitting module Logging
[6/8] Compiling Logging Locks.swift
[7/8] Compiling Logging MetadataProvider.swift
[8/8] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/24] Compiling SimpleNetworking APIClient.swift
[11/24] Compiling SimpleNetworking APIClientConfiguration.swift
[12/24] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | }
63 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[13/25] Compiling SimpleNetworking Dictionary+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
[14/25] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:24: warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                        |- warning: static property 'stubs' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stubs' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stubs' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
[15/25] Compiling SimpleNetworking ContentType.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[16/25] Compiling SimpleNetworking Data+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/ContentType.swift:39:16: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
24 | import Foundation
25 |
26 | public struct ContentType: Hashable, Equatable, RawRepresentable, CustomStringConvertible {
   |               `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
27 |     public let rawValue: String
28 |
   :
37 |
38 | public extension ContentType {
39 |     static let json = ContentType(rawValue: "application/json")
   |                |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
[17/25] Compiling SimpleNetworking Exports.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
[18/25] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
[19/25] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | }
63 |
[20/25] Compiling SimpleNetworking HeaderField.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:55:16: warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
53 | public extension HeaderField {
54 |     /// `"Accept"` header field.
55 |     static let accept = HeaderField(rawValue: "Accept")
   |                |- warning: static property 'accept' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'accept' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 |     /// `"Authorization"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:58:16: warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
56 |
57 |     /// `"Authorization"` header field.
58 |     static let authorization = HeaderField(rawValue: "Authorization")
   |                |- warning: static property 'authorization' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'authorization' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 |     /// `"Content-Type"` header field.
/host/spi-builder-workspace/Sources/SimpleNetworking/HeaderField.swift:61:16: warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
43 | ///     )
44 | ///
45 | public struct HeaderField: Hashable, Equatable, RawRepresentable {
   |               `- note: consider making struct 'HeaderField' conform to the 'Sendable' protocol
46 |     public let rawValue: String
47 |
   :
59 |
60 |     /// `"Content-Type"` header field.
61 |     static let contentType = HeaderField(rawValue: "Content-Type")
   |                |- warning: static property 'contentType' is not concurrency-safe because non-'Sendable' type 'HeaderField' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'contentType' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | }
63 |
[21/25] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[22/25] Compiling SimpleNetworking APIClientError.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
[23/25] Compiling SimpleNetworking APIError.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/APIError.swift:32:16: warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
25 |
26 | /// The `APIError` type encapsulates an error returned by an API.
27 | public struct APIError<Error>: Swift.Error {
   |                        `- note: consider making generic parameter 'Error' conform to the 'Sendable' protocol
28 |     /// The HTTP status code.
29 |     public let statusCode: Int
30 |
31 |     /// The error response.
32 |     public let error: Error?
   |                `- warning: stored property 'error' of 'Sendable'-conforming generic struct 'APIError' has non-sendable type 'Error?'; this is an error in the Swift 6 language mode
33 |
34 |     public init(statusCode: Int, error: Error?) {
[24/25] Compiling SimpleNetworking APIRequest+Convenience.swift
[25/25] Compiling SimpleNetworking APIRequest.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging LogHandler.swift
[3/6] Compiling Logging MetadataProvider.swift
[4/6] Emitting module Logging
[5/6] Compiling Logging Locks.swift
[6/6] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/22] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[9/23] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
[10/23] Compiling SimpleNetworking HeaderField.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | internal extension HTTPURLResponse {
   |          `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 |     func logDescription(content: String) -> String {
28 |         var result = "[RESPONSE] \(statusCode) \(url!)"
[11/23] Compiling SimpleNetworking Dictionary+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
[12/23] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
 68 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
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/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     private static var stubs: [URLRequest: Stub] = [:]
    |                                `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// Stubs a valid response for a given API request.
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
181 |         statusCode: Int,
182 |         headers: [String: String]? = nil,
183 |         for request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
184 |     ) {
185 |         stubs[request] = Stub(
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
198 |     }
199 |
200 |     override public class func canInit(with request: URLRequest) -> Bool {
    |                                                      `- error: cannot find type 'URLRequest' in scope
201 |         stubs.keys.contains(request)
202 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                             `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
202 |     }
203 |
204 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
205 |         request
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                            `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
209 |         false
210 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
210 |     }
211 |
212 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
220 |     }
221 |
222 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
223 | }
224 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 | ///     )
 64 | ///
 65 | public final class HTTPStubProtocol: URLProtocol {
    |                                      `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |     private struct Stub {
 67 |         let data: Data
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 89 |         baseURL: URL
 90 |     ) throws where Output: Encodable {
 91 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
 92 |             try jsonEncoder.encode(output),
 93 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
 93 |             statusCode: statusCode,
 94 |             headers: headers,
 95 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
 96 |         )
 97 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
115 |         baseURL: URL
116 |     ) throws where Error: Encodable {
117 |         stub(
    |         `- error: generic parameter 'Error' could not be inferred
118 |             try jsonEncoder.encode(error),
119 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
119 |             statusCode: statusCode,
120 |             headers: headers,
121 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                                                                   `- error: missing argument for parameter 'baseURL' in call
122 |         )
123 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
143 |             statusCode: statusCode,
144 |             headers: headers,
145 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
146 |         )
147 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
139 |         baseURL: URL
140 |     ) {
141 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
142 |             text.data(using: .utf8)!,
143 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
165 |             statusCode: statusCode,
166 |             headers: headers,
167 |             for: URLRequest(baseURL: baseURL, apiRequest: request)
    |                  `- error: cannot find 'URLRequest' in scope
168 |         )
169 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
 81 |     ///   - baseURL: The base URL for the API request.
 82 |     ///
 83 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
 84 |         _ output: Output,
 85 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
107 |     ///   - baseURL: The base URL for the API request.
108 |     ///
109 |     public static func stub<Output, Error>(
    |                        `- note: found this candidate
110 |         _ error: Error,
111 |         jsonEncoder: JSONEncoder = JSONEncoder(),
    :
161 |         baseURL: URL
162 |     ) {
163 |         return stub(
    |                `- error: no exact matches in call to static method 'stub'
164 |             Data(),
165 |             statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
185 |         stubs[request] = Stub(
186 |             data: data,
187 |             response: HTTPURLResponse(
    |                       `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
188 |                 url: request.url!,
189 |                 statusCode: statusCode,
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
211 |
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
    |                                                 `- error: cannot find 'request' in scope
214 |             fatalError("Couldn't find stub for request \(request)")
215 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
212 |     override public func startLoading() {
213 |         guard let stub = HTTPStubProtocol.stubs[request] else {
214 |             fatalError("Couldn't find stub for request \(request)")
    |                                                          `- error: cannot find 'request' in scope
215 |         }
216 |
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
215 |         }
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
    |                                                                                   `- error: cannot infer contextual base in reference to member 'notAllowed'
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
216 |
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
    |         `- error: cannot find 'client' in scope
219 |         client!.urlProtocolDidFinishLoading(self)
220 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
217 |         client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
218 |         client!.urlProtocol(self, didLoad: stub.data)
219 |         client!.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
220 |     }
221 |
[13/23] Compiling SimpleNetworking Exports.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
[14/23] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
 24 | import Foundation
 25 |
 26 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
 27 |     @available(macOS 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
 28 |     internal var logDescription: String {
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
 68 |
 69 |     /// Returns a new URL request by adding the given query parameters to this request.
 70 |     public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
 71 |         guard !parameters.isEmpty else { return self }
 72 |
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
 86 |
 87 |     /// Returns a new URL request by adding the given headers to this request.
 88 |     public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
    |                                                                    `- error: cannot find type 'URLRequest' in scope
 89 |         guard !headers.isEmpty else { return self }
 90 |
[15/23] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | import Foundation
25 |
26 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     /// A URL session whose requests can be stubbed with `HTTPStubProtocol`.
28 |     public static var stubbed: URLSession {
[16/23] Compiling SimpleNetworking ContentType.swift
[17/23] Compiling SimpleNetworking Data+LogDescription.swift
[18/23] Compiling SimpleNetworking APIClientError.swift
[19/23] Compiling SimpleNetworking APIError.swift
[20/23] Compiling SimpleNetworking APIClient.swift
[21/23] Compiling SimpleNetworking APIClientConfiguration.swift
[22/23] Compiling SimpleNetworking APIRequest+Convenience.swift
[23/23] Compiling SimpleNetworking APIRequest.swift
BUILD FAILURE 6.1 wasm