The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Endpoints, reference 3.0.0 (231912), with Swift 6.3 for Wasm on 11 Apr 2026 17:47:13 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isotopsweden/endpoints.git
Reference: 3.0.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/isotopsweden/endpoints
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at 2319120 Clean up README/project in preparation of release (#30)
Cloned https://github.com/isotopsweden/endpoints.git
Revision (git rev-parse @):
2319120f00bc5a0fe7f5e492245a0da8c6b5d655
SUCCESS checkout https://github.com/isotopsweden/endpoints.git at 3.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/isotopsweden/endpoints.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling Endpoints TransporterResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public struct TransporterResponse {
11 |     public let urlResponse: HTTPURLResponse
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let data: Data
13 |
14 |     public init(response: HTTPURLResponse, data: Data) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         self.urlResponse = response
16 |         self.data = 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
[5/17] Compiling Endpoints Request+Cancellable.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 |     init(dataTask: URLSessionDataTask) {
   |                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.init {
26 |             dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 |     init(dataTask: URLSessionDataTask) {
25 |         self.init {
26 |             dataTask.cancel()
   |                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 |         }
28 |     }
[6/17] Compiling Endpoints Request.swift
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 |     init(dataTask: URLSessionDataTask) {
   |                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.init {
26 |             dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:26:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
24 |     init(dataTask: URLSessionDataTask) {
25 |         self.init {
26 |             dataTask.cancel()
   |                      `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
27 |         }
28 |     }
[7/17] Compiling Endpoints Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |     ///   - `Request` token used for cancelling or inspecting the request.
22 |     func send(
23 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
24 |         completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 |     ) -> Request
[8/17] Compiling Endpoints Decoder.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 |     func asURLRequest() -> Result<URLRequest, CommunicatorError> {
   |                                   `- error: cannot find type 'URLRequest' in scope
65 |         var urlComponents = URLComponents(
66 |             url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:74:30: error: cannot infer contextual base in reference to member 'invalidURL'
72 |
73 |         guard let url = urlComponents?.url else {
74 |             return .failure(.invalidURL)
   |                              `- error: cannot infer contextual base in reference to member 'invalidURL'
75 |         }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 |         }
76 |
77 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
78 |         request.httpMethod = method.rawValue
79 |         request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:84:30: error: cannot infer contextual base in reference to member 'packingError'
82 |             request.httpBody = try pack()
83 |         } catch {
84 |             return .failure(.packingError(underlyingError: error))
   |                              `- error: cannot infer contextual base in reference to member 'packingError'
85 |         }
86 |
[9/17] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 |     func asURLRequest() -> Result<URLRequest, CommunicatorError> {
   |                                   `- error: cannot find type 'URLRequest' in scope
65 |         var urlComponents = URLComponents(
66 |             url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:74:30: error: cannot infer contextual base in reference to member 'invalidURL'
72 |
73 |         guard let url = urlComponents?.url else {
74 |             return .failure(.invalidURL)
   |                              `- error: cannot infer contextual base in reference to member 'invalidURL'
75 |         }
76 |
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:77:23: error: cannot find 'URLRequest' in scope
75 |         }
76 |
77 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
78 |         request.httpMethod = method.rawValue
79 |         request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:84:30: error: cannot infer contextual base in reference to member 'packingError'
82 |             request.httpBody = try pack()
83 |         } catch {
84 |             return .failure(.packingError(underlyingError: error))
   |                              `- error: cannot infer contextual base in reference to member 'packingError'
85 |         }
86 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/17] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |     ///   - `Request` token used for cancelling or inspecting the request.
22 |     func send(
23 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
24 |         completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 |     ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:15:32: error: cannot find type 'DispatchQueue' in scope
 13 |
 14 |     private let transporter: Transporter
 15 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 16 |
 17 |     private let logger: Logger?
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:21:24: error: cannot find type 'DispatchQueue' in scope
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
 21 |         callbackQueue: DispatchQueue = .main,
    |                        `- error: cannot find type 'DispatchQueue' in scope
 22 |         logger: Logger? = nil
 23 |     ) {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |         callbackQueue: DispatchQueue = .main,
 22 |         logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     private func log(request: URLRequest, method: HTTPMethod) {
    |                               `- error: cannot find type 'URLRequest' in scope
 66 |         let urlString = request.url?.absoluteString ?? "<Missing URL>"
 67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     private func log(response: HTTPURLResponse) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
 73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 | extension Communicator {
 86 |     static func parseResponse<ResponseType>(
 87 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         data: Data,
 89 |         unpacker: (Data) throws -> ResponseType
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/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 |     func asURLRequest() -> Result<URLRequest, CommunicatorError> {
   |                                   `- error: cannot find type 'URLRequest' in scope
65 |         var urlComponents = URLComponents(
66 |             url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     static var successfulStatusCode: Range<Int> {
12 |         return 200..<300
/host/spi-builder-workspace/Sources/Endpoints/Request/Request.swift:24:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | // MARK: - Convenience init with a URLSessionDataTask
23 | public extension Request {
24 |     init(dataTask: URLSessionDataTask) {
   |                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         self.init {
26 |             dataTask.cancel()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Transporter/TransporterResponse.swift:11:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public struct TransporterResponse {
11 |     public let urlResponse: HTTPURLResponse
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let data: Data
13 |
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/Endpoints/Transporter/TransporterResponse.swift:14:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let data: Data
13 |
14 |     public init(response: HTTPURLResponse, data: Data) {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |         self.urlResponse = response
16 |         self.data = 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/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension URLSession: Transporter {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     public func send(
12 |         _ request: URLRequest,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[11/17] Compiling Endpoints HTTPURLResponse+successfulStatusCode.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     static var successfulStatusCode: Range<Int> {
12 |         return 200..<300
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/17] Compiling Endpoints Logger.swift
/host/spi-builder-workspace/Sources/Endpoints/HTTPURLResponse+successfulStatusCode.swift:10:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     static var successfulStatusCode: Range<Int> {
12 |         return 200..<300
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/17] Compiling Endpoints Communicator+publisher.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |     ///   - `Request` token used for cancelling or inspecting the request.
22 |     func send(
23 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
24 |         completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 |     ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:15:32: error: cannot find type 'DispatchQueue' in scope
 13 |
 14 |     private let transporter: Transporter
 15 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 16 |
 17 |     private let logger: Logger?
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:21:24: error: cannot find type 'DispatchQueue' in scope
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
 21 |         callbackQueue: DispatchQueue = .main,
    |                        `- error: cannot find type 'DispatchQueue' in scope
 22 |         logger: Logger? = nil
 23 |     ) {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |         callbackQueue: DispatchQueue = .main,
 22 |         logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     private func log(request: URLRequest, method: HTTPMethod) {
    |                               `- error: cannot find type 'URLRequest' in scope
 66 |         let urlString = request.url?.absoluteString ?? "<Missing URL>"
 67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     private func log(response: HTTPURLResponse) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
 73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 | extension Communicator {
 86 |     static func parseResponse<ResponseType>(
 87 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         data: Data,
 89 |         unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
 32 |         completionHandler: @escaping CompletionHandler<E.ResponseType>
 33 |     ) -> Request? where E: Endpoint {
 34 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 35 |
 36 |         switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 |     func asURLRequest() -> Result<URLRequest, CommunicatorError> {
   |                                   `- error: cannot find type 'URLRequest' in scope
65 |         var urlComponents = URLComponents(
66 |             url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
 43 |         }
 44 |
 45 |         log(request: request, method: endpoint.method)
    |                                                `- error: extra argument 'method' in call
 46 |
 47 |         return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
 45 |         log(request: request, method: endpoint.method)
 46 |
 47 |         return transporter.send(request) { [weak self] result in
    |                                                        `- error: cannot infer type of closure parameter 'result' without a type annotation
 48 |             let responseParseResult = result.flatMap { transporterResponse in
 49 |                 return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 70 |
 71 |     private func log(response: HTTPURLResponse) {
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 73 |
 74 |         logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
 73 |
 74 |         logger?.log("<Communicator> \(response.statusCode) \(urlString)")
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 75 |     }
 76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 89 |         unpacker: (Data) throws -> ResponseType
 90 |     ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
 91 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         case HTTPURLResponse.successfulStatusCode:
 93 |             let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
 90 |     ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
 91 |         switch response.statusCode {
 92 |         case HTTPURLResponse.successfulStatusCode:
    |                              `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
 93 |             let unpackerResult = Result {
 94 |                 CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |                 CommunicatorResponse(
 95 |                     body: try unpacker(data),
 96 |                     code: response.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                     headers: response.allHeaderFields)
 98 |             }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 95 |                     body: try unpacker(data),
 96 |                     code: response.statusCode,
 97 |                     headers: response.allHeaderFields)
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 98 |             }
 99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 |         case 400..<500:
103 |             return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 |         default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 |         default:
106 |             return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         }
108 |     }
[14/17] Compiling Endpoints Communicator.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/Transporter.swift:23:20: error: cannot find type 'URLRequest' in scope
21 |     ///   - `Request` token used for cancelling or inspecting the request.
22 |     func send(
23 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
24 |         completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
25 |     ) -> Request
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:15:32: error: cannot find type 'DispatchQueue' in scope
 13 |
 14 |     private let transporter: Transporter
 15 |     private let callbackQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
 16 |
 17 |     private let logger: Logger?
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:21:24: error: cannot find type 'DispatchQueue' in scope
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
 21 |         callbackQueue: DispatchQueue = .main,
    |                        `- error: cannot find type 'DispatchQueue' in scope
 22 |         logger: Logger? = nil
 23 |     ) {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:20:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 18 |
 19 |     public init(
 20 |         transporter: Transporter = URLSession.shared,
    |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 21 |         callbackQueue: DispatchQueue = .main,
 22 |         logger: Logger? = nil
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:65:31: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     private func log(request: URLRequest, method: HTTPMethod) {
    |                               `- error: cannot find type 'URLRequest' in scope
 66 |         let urlString = request.url?.absoluteString ?? "<Missing URL>"
 67 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:71:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     }
 70 |
 71 |     private func log(response: HTTPURLResponse) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
 73 |
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/Endpoints/Communicator/Communicator.swift:87:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 | extension Communicator {
 86 |     static func parseResponse<ResponseType>(
 87 |         response: HTTPURLResponse,
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         data: Data,
 89 |         unpacker: (Data) throws -> ResponseType
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/Endpoints/Communicator/Communicator.swift:34:22: error: cannot find type 'URLRequest' in scope
 32 |         completionHandler: @escaping CompletionHandler<E.ResponseType>
 33 |     ) -> Request? where E: Endpoint {
 34 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 35 |
 36 |         switch endpoint.asURLRequest() {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift:64:35: error: cannot find type 'URLRequest' in scope
62 | // MARK: - asURLRequest
63 | public extension Endpoint {
64 |     func asURLRequest() -> Result<URLRequest, CommunicatorError> {
   |                                   `- error: cannot find type 'URLRequest' in scope
65 |         var urlComponents = URLComponents(
66 |             url: baseURL.appendingPathComponent(path),
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:45:48: error: extra argument 'method' in call
 43 |         }
 44 |
 45 |         log(request: request, method: endpoint.method)
    |                                                `- error: extra argument 'method' in call
 46 |
 47 |         return transporter.send(request) { [weak self] result in
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:47:56: error: cannot infer type of closure parameter 'result' without a type annotation
 45 |         log(request: request, method: endpoint.method)
 46 |
 47 |         return transporter.send(request) { [weak self] result in
    |                                                        `- error: cannot infer type of closure parameter 'result' without a type annotation
 48 |             let responseParseResult = result.flatMap { transporterResponse in
 49 |                 return Self.parseResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:72:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 70 |
 71 |     private func log(response: HTTPURLResponse) {
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
 73 |
 74 |         logger?.log("<Communicator> \(response.statusCode) \(urlString)")
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:74:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 72 |         let urlString = response.url?.absoluteString ?? "<Missing URL>"
 73 |
 74 |         logger?.log("<Communicator> \(response.statusCode) \(urlString)")
    |                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 75 |     }
 76 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:91:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 89 |         unpacker: (Data) throws -> ResponseType
 90 |     ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
 91 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         case HTTPURLResponse.successfulStatusCode:
 93 |             let unpackerResult = Result {
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:92:30: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
 90 |     ) -> Result<CommunicatorResponse<ResponseType>, CommunicatorError> {
 91 |         switch response.statusCode {
 92 |         case HTTPURLResponse.successfulStatusCode:
    |                              `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'successfulStatusCode'
 93 |             let unpackerResult = Result {
 94 |                 CommunicatorResponse(
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:96:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |                 CommunicatorResponse(
 95 |                     body: try unpacker(data),
 96 |                     code: response.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |                     headers: response.allHeaderFields)
 98 |             }
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:97:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 95 |                     body: try unpacker(data),
 96 |                     code: response.statusCode,
 97 |                     headers: response.allHeaderFields)
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 98 |             }
 99 |
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:103:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |
102 |         case 400..<500:
103 |             return .failure(.unacceptableStatusCode(.clientError(code: response.statusCode, data: data)))
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 |         default:
/host/spi-builder-workspace/Sources/Endpoints/Communicator/Communicator.swift:106:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |
105 |         default:
106 |             return .failure(.unacceptableStatusCode(.serverError(code: response.statusCode)))
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         }
108 |     }
[15/17] Compiling Endpoints CommunicatorError.swift
[16/17] Compiling Endpoints CommunicatorResponse.swift
[17/17] Compiling Endpoints URLSession+Transporter.swift
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | import Foundation
 9 |
10 | extension URLSession: Transporter {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |     public func send(
12 |         _ request: URLRequest,
/host/spi-builder-workspace/Sources/Endpoints/Transporter/URLSession+Transporter.swift:12:20: error: cannot find type 'URLRequest' in scope
10 | extension URLSession: Transporter {
11 |     public func send(
12 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
13 |         completionHandler: @escaping (Result<TransporterResponse, CommunicatorError>) -> Void
14 |     ) -> Request {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm