The Swift Package Index logo.Swift Package Index

Build Information

Failed to build TinyNetworking, reference 0.5.0 (45ba23), with Swift 6.1 for Wasm on 28 May 2025 20:09:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/objcio/tiny-networking.git
Reference: 0.5.0
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/objcio/tiny-networking
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 45ba230 Fix for Xcode 13
Cloned https://github.com/objcio/tiny-networking.git
Revision (git rev-parse @):
45ba230cc9a843bf82a642803a43ef8838dc5b70
SUCCESS checkout https://github.com/objcio/tiny-networking.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/objcio/tiny-networking.git
https://github.com/objcio/tiny-networking.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TinyNetworking",
  "name" : "TinyNetworking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TinyNetworking",
      "targets" : [
        "TinyNetworking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TinyNetworkingTests",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworkingTests",
      "path" : "Tests/TinyNetworkingTests",
      "sources" : [
        "TestFixtures.swift",
        "TinyHTTPStubURLProtocol.swift",
        "TinyNetworkingTests.swift",
        "URLSessionIntegrationTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TinyNetworking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TinyNetworking",
      "module_type" : "SwiftTarget",
      "name" : "TinyNetworking",
      "path" : "Sources/TinyNetworking",
      "product_memberships" : [
        "TinyNetworking"
      ],
      "sources" : [
        "Endpoint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module TinyNetworking
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/TinyNetworking/Endpoint.swift:214:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
[4/4] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/TinyNetworking/Endpoint.swift:214:16: warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:27: error: extraneous argument label 'request:' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                           `- error: extraneous argument label 'request:' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:44: error: missing argument for parameter 'url' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                                            `- error: missing argument for parameter 'url' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:27: error: extraneous argument label 'request:' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                           `- error: extraneous argument label 'request:' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:44: error: missing argument for parameter 'url' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                                            `- error: missing argument for parameter 'url' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:76:19: error: cannot find 'URLRequest' in scope
 74 |             requestUrl = comps.url!
 75 |         }
 76 |         request = URLRequest(url: requestUrl)
    |                   `- error: cannot find 'URLRequest' in scope
 77 |         if let a = accept {
 78 |             request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module TinyNetworking
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
[3/3] Compiling TinyNetworking Endpoint.swift
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:31:25: error: cannot find type 'URLRequest' in scope
 29 |
 30 |     /// The request for this endpoint
 31 |     public var request: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:34:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |     /// This is used to (try to) parse a response into an `A`.
 34 |     var parse: (Data?, URLResponse?) -> Result<A, Error>
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |     /// This is used to check the status code of a response.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:66:312: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                                                                                                                                                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                          `- error: cannot find type 'URLRequest' in scope
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:103:127: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     ///   - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 |     ///   - parse: this converts a response into an `A`.
103 |     public init(request: URLRequest, expectedStatusCode: @escaping (Int) -> Bool = expected200to300, parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |                                                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.request = request
105 |         self.expectedStatusCode = expectedStatusCode
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:214:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | public struct WrongStatusCodeError: Error {
213 |     public let statusCode: Int
214 |     public let response: HTTPURLResponse?
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
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/TinyNetworking/Endpoint.swift:216:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |     public let response: HTTPURLResponse?
215 |     public let responseBody: Data?
216 |     public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         self.statusCode = statusCode
218 |         self.response = response
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/TinyNetworking/Endpoint.swift:223:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
221 | }
222 |
223 | extension URLSession {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
224 |     @discardableResult
225 |     /// Loads an endpoint by creating (and directly resuming) a data task.
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:27: error: extraneous argument label 'request:' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                           `- error: extraneous argument label 'request:' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:41:44: error: missing argument for parameter 'url' in call
 39 |     /// Transforms the result
 40 |     public func map<B>(_ f: @escaping (A) -> B) -> Endpoint<B> {
 41 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { value, response in
    |                                            `- error: missing argument for parameter 'url' in call
 42 |             self.parse(value, response).map(f)
 43 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:27: error: extraneous argument label 'request:' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                           `- error: extraneous argument label 'request:' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:48:44: error: missing argument for parameter 'url' in call
 46 |     /// Transforms the result
 47 |     public func compactMap<B>(_ transform: @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
 48 |         return Endpoint<B>(request: request, expectedStatusCode: expectedStatusCode, parse: { data, response in
    |                                            `- error: missing argument for parameter 'url' in call
 49 |             self.parse(data, response).flatMap(transform)
 50 |         })
    :
 64 |     ///   - query: query parameters to append to the url
 65 |     ///   - parse: this converts a response into an `A`.
 66 |     public init(_ method: Method, url: URL, accept: ContentType? = nil, contentType: ContentType? = nil, body: Data? = nil, headers: [String:String] = [:], expectedStatusCode: @escaping (Int) -> Bool = expected200to300, timeOutInterval: TimeInterval = 10, query: [String:String] = [:], parse: @escaping (Data?, URLResponse?) -> Result<A, Error>) {
    |            `- note: 'init(_:url:accept:contentType:body:headers:expectedStatusCode:timeOutInterval:query:parse:)' declared here
 67 |         var requestUrl : URL
 68 |         if query.isEmpty {
/host/spi-builder-workspace/Sources/TinyNetworking/Endpoint.swift:76:19: error: cannot find 'URLRequest' in scope
 74 |             requestUrl = comps.url!
 75 |         }
 76 |         request = URLRequest(url: requestUrl)
    |                   `- error: cannot find 'URLRequest' in scope
 77 |         if let a = accept {
 78 |             request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
BUILD FAILURE 6.1 wasm