The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Endpoints, reference main (dabe0a), with Swift 6.4 for Wasm on 30 Oct 2026 09:38:41 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/velos/Endpoints.git
Reference: main
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/velos/Endpoints
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dabe0a5 fix: build Endpoints in release by guarding the debug-only swizzle call (#25)
Cloned https://github.com/velos/Endpoints.git
Revision (git rev-parse @):
dabe0a52591750389528591a5337d80121ba46e3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/velos/Endpoints.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/velos/Endpoints.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[27 / 35] Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
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/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
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/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
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/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 14 |
 15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
 16 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 17 |
 18 |     /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
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/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
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/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
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/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
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/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                                            `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                               `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:37: warning: '@escaping' only applies to function types; this will be an error in a future Swift language mode
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                     `- warning: '@escaping' only applies to function types; this will be an error in a future Swift language mode
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                      `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:59: warning: '@escaping' only applies to function types; this will be an error in a future Swift language mode
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                           `- warning: '@escaping' only applies to function types; this will be an error in a future Swift language mode
137 |         self.baseUrls = [
138 |             .local: baseUrl,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationError.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationStability.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift /host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift /host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift /host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift /host/spi-builder-workspace/Sources/Endpoints/Endpoint.swift /host/spi-builder-workspace/Sources/Endpoints/Extensions/Array+Form.swift /host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift /host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Combine.swift /host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift /host/spi-builder-workspace/Sources/Endpoints/Header.swift /host/spi-builder-workspace/Sources/Endpoints/Method.swift /host/spi-builder-workspace/Sources/Endpoints/Mocking/MockContinuation.swift /host/spi-builder-workspace/Sources/Endpoints/Mocking/MockRegistry.swift /host/spi-builder-workspace/Sources/Endpoints/Mocking/Mocking.swift /host/spi-builder-workspace/Sources/Endpoints/Mocking/URLSessionTask+Swizzling.swift /host/spi-builder-workspace/Sources/Endpoints/MultipartFormEncoder.swift /host/spi-builder-workspace/Sources/Endpoints/ParameterRepresentable.swift /host/spi-builder-workspace/Sources/Endpoints/PathTemplate.swift /host/spi-builder-workspace/Sources/Endpoints/Server.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Endpoints -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Endpoints_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Modules/Endpoints.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Modules/Endpoints.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Endpoints-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Endpoints-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Endpoints-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Endpoints.build/Debug-webassembly-wasm32/Endpoints-t.build/Objects-normal/wasm32/Modules/Endpoints.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm