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>&1Build 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: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m14 |[0;0m /// - Returns: The authenticated request.
[0;36m15 |[0;0m /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
[0;36m16 |[0;0m func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m
[0;36m18 |[0;0m /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m14 |[0;0m /// - Returns: The authenticated request.
[0;36m15 |[0;0m /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
[0;36m16 |[0;0m func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m
[0;36m18 |[0;0m /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m /// - response: The HTTP response, if the server returned one.
[0;36m24 |[0;0m /// - Returns: `true` to refresh the credentials and retry.
[0;36m25 |[0;0m func shouldReauthenticate(for error: any Error, response: [4;39mHTTPURLResponse[0;0m?) -> Bool
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m33 |[0;0m /// Throws ``AuthenticationError/refreshNotSupported`` by default.
[0;36m34 |[0;0m /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
[0;36m35 |[0;0m func reauthenticate(after failedRequest: [4;39mURLRequest[0;0m) async throws(AuthenticationError)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m /// Returns `false`, so failed requests are never retried.
[0;36m47 |[0;0m func shouldReauthenticate(for error: any Error, response: [4;39mHTTPURLResponse[0;0m?) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m48 |[0;0m false
[0;36m49 |[0;0m }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Throws ``AuthenticationError/refreshNotSupported``.
[0;36m52 |[0;0m func reauthenticate(after failedRequest: [4;39mURLRequest[0;0m) async throws(AuthenticationError) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m throw AuthenticationError.refreshNotSupported
[0;36m54 |[0;0m }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m25 |[0;0m }
[0;36m26 |[0;0m
[0;36m27 |[0;0m public func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m28 |[0;0m var mutableRequest = request
[0;36m29 |[0;0m mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m25 |[0;0m }
[0;36m26 |[0;0m
[0;36m27 |[0;0m public func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m28 |[0;0m var mutableRequest = request
[0;36m29 |[0;0m mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m29 |[0;0m }
[0;36m30 |[0;0m
[0;36m31 |[0;0m public func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m var mutableRequest = request
[0;36m33 |[0;0m let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m29 |[0;0m }
[0;36m30 |[0;0m
[0;36m31 |[0;0m public func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m32 |[0;0m var mutableRequest = request
[0;36m33 |[0;0m let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m
[0;36m38 |[0;0m public func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m39 |[0;0m var mutableRequest = request
[0;36m40 |[0;0m mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m }
[0;36m37 |[0;0m
[0;36m38 |[0;0m public func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m39 |[0;0m var mutableRequest = request
[0;36m40 |[0;0m mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m // MARK: - AuthenticationMethod
[0;36m138 |[0;0m
[0;36m139 |[0;0m public func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m140 |[0;0m // A request made from inside this instance's own refreshHandler would wait on
[0;36m141 |[0;0m // 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: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m // MARK: - AuthenticationMethod
[0;36m138 |[0;0m
[0;36m139 |[0;0m public func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m140 |[0;0m // A request made from inside this instance's own refreshHandler would wait on
[0;36m141 |[0;0m // 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: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m164 |[0;0m }
[0;36m165 |[0;0m
[0;36m166 |[0;0m public nonisolated func shouldReauthenticate(for error: any Error, response: [4;39mHTTPURLResponse[0;0m?) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m167 |[0;0m guard let statusCode = response?.statusCode else {
[0;36m168 |[0;0m return false
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m171 |[0;0m }
[0;36m172 |[0;0m
[0;36m173 |[0;0m public func reauthenticate(after failedRequest: [4;39mURLRequest[0;0m) async throws(AuthenticationError) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m174 |[0;0m // If the tokens have rotated since the failed request was authenticated, the
[0;36m175 |[0;0m // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m9 |[0;0m public init() {}
[0;36m10 |[0;0m
[0;36m11 |[0;0m public func authenticate(request: URLRequest) async throws(AuthenticationError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m request
[0;36m13 |[0;0m }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m9 |[0;0m public init() {}
[0;36m10 |[0;0m
[0;36m11 |[0;0m public func authenticate(request: [4;39mURLRequest[0;0m) async throws(AuthenticationError) -> URLRequest {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m12 |[0;0m request
[0;36m13 |[0;0m }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m /// - error: The error the data task reported, if any.
[0;36m25 |[0;0m /// - Returns: The response body, or the error to throw.
[0;36m26 |[0;0m func response(data: Data?, response: [4;39mURLResponse[0;0m?, error: Error?) -> Result<Data, T.TaskError> {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m if let error = error {
[0;36m28 |[0;0m guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m22 |[0;0m public func urlRequest(
[0;36m23 |[0;0m in environment: Server.Environments = Server.defaultEnvironment
[0;36m24 |[0;0m ) throws(EndpointError) -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m14 |[0;0m
[0;36m15 |[0;0m @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
[0;36m16 |[0;0m public extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m17 |[0;0m
[0;36m18 |[0;0m /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m /// The response had no body, and its status code wasn't 204.
[0;36m23 |[0;0m case unexpectedResponse(httpResponse: [4;39mHTTPURLResponse[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m /// The server returned an error status code, and its body was decoded as the
[0;36m26 |[0;0m /// endpoint's ``Endpoint/ErrorResponse``.
[0;36m27 |[0;0m case errorResponse(httpResponse: [4;39mHTTPURLResponse[0;0m, response: ErrorResponseType)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m /// The server returned an error status code, and its body couldn't be decoded as
[0;36m29 |[0;0m /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m /// The server returned an error status code, and its body couldn't be decoded as
[0;36m29 |[0;0m /// the endpoint's ``Endpoint/ErrorResponse``.
[0;36m30 |[0;0m case errorResponseParseError(httpResponse: [4;39mHTTPURLResponse[0;0m, data: Data, error: Error)
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m
[0;36m32 |[0;0m /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: [1;31merror: [1;39massociated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m21 |[0;0m
[0;36m22 |[0;0m /// The response had no body, and its status code wasn't 204.
[0;36m23 |[0;0m case unexpectedResponse(httpResponse: HTTPURLResponse)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m /// 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: [1;31merror: [1;39massociated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m25 |[0;0m /// The server returned an error status code, and its body was decoded as the
[0;36m26 |[0;0m /// endpoint's ``Endpoint/ErrorResponse``.
[0;36m27 |[0;0m case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m28 |[0;0m /// The server returned an error status code, and its body couldn't be decoded as
[0;36m29 |[0;0m /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: [1;31merror: [1;39massociated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m28 |[0;0m /// The server returned an error status code, and its body couldn't be decoded as
[0;36m29 |[0;0m /// the endpoint's ``Endpoint/ErrorResponse``.
[0;36m30 |[0;0m case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
[0;36m|[0;0m `- [1;31merror: [1;39massociated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m31 |[0;0m
[0;36m32 |[0;0m /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m45 |[0;0m /// `nil` when the request failed before a response arrived, such as when it couldn't
[0;36m46 |[0;0m /// be built, the connection failed, or the device was offline.
[0;36m47 |[0;0m var httpResponse: [4;39mHTTPURLResponse[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m48 |[0;0m switch self {
[0;36m49 |[0;0m case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m62 |[0;0m }
[0;36m63 |[0;0m
[0;36m64 |[0;0m public extension [4;39mURLSession[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m /// Use it for static changes, such as adding a build-number header. Use ``auth``
[0;36m70 |[0;0m /// for credentials.
[0;36m71 |[0;0m var requestProcessor: @Sendable ([4;39mURLRequest[0;0m) -> URLRequest { get }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m /// Use it for static changes, such as adding a build-number header. Use ``auth``
[0;36m70 |[0;0m /// for credentials.
[0;36m71 |[0;0m var requestProcessor: @Sendable (URLRequest) -> [4;39mURLRequest[0;0m { get }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m public extension ServerDefinition {
[0;36m92 |[0;0m /// Returns the request unchanged.
[0;36m93 |[0;0m var requestProcessor: @Sendable ([4;39mURLRequest[0;0m) -> URLRequest { return { $0 } }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m }
[0;36m95 |[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m public extension ServerDefinition {
[0;36m92 |[0;0m /// Returns the request unchanged.
[0;36m93 |[0;0m var requestProcessor: @Sendable (URLRequest) -> [4;39mURLRequest[0;0m { return { $0 } }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m }
[0;36m95 |[0;0m
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m105 |[0;0m public struct GenericServer: ServerDefinition {
[0;36m106 |[0;0m public let baseUrls: [Environments: URL]
[0;36m107 |[0;0m public let requestProcessor: @Sendable ([4;39mURLRequest[0;0m) -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m108 |[0;0m
[0;36m109 |[0;0m /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m105 |[0;0m public struct GenericServer: ServerDefinition {
[0;36m106 |[0;0m public let baseUrls: [Environments: URL]
[0;36m107 |[0;0m public let requestProcessor: @Sendable (URLRequest) -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m108 |[0;0m
[0;36m109 |[0;0m /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m119 |[0;0m staging: URL? = nil,
[0;36m120 |[0;0m production: URL? = nil,
[0;36m121 |[0;0m requestProcessor: @Sendable @escaping ([4;39mURLRequest[0;0m) -> URLRequest = { $0 }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m122 |[0;0m ) {
[0;36m123 |[0;0m var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m119 |[0;0m staging: URL? = nil,
[0;36m120 |[0;0m production: URL? = nil,
[0;36m121 |[0;0m requestProcessor: @Sendable @escaping (URLRequest) -> [4;39mURLRequest[0;0m = { $0 }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m122 |[0;0m ) {
[0;36m123 |[0;0m var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:37: [1;33mwarning: [1;39m'@escaping' only applies to function types; this will be an error in a future Swift language mode[0;0m
[0;36m119 |[0;0m staging: URL? = nil,
[0;36m120 |[0;0m production: URL? = nil,
[0;36m121 |[0;0m requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
[0;36m|[0;0m `- [1;33mwarning: [1;39m'@escaping' only applies to function types; this will be an error in a future Swift language mode[0;0m
[0;36m122 |[0;0m ) {
[0;36m123 |[0;0m var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m134 |[0;0m /// - baseUrl: The base URL.
[0;36m135 |[0;0m /// - requestProcessor: Changes each request after it is built.
[0;36m136 |[0;0m public init(baseUrl: URL, requestProcessor: @Sendable @escaping ([4;39mURLRequest[0;0m) -> URLRequest = { $0 }) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m self.baseUrls = [
[0;36m138 |[0;0m .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m134 |[0;0m /// - baseUrl: The base URL.
[0;36m135 |[0;0m /// - requestProcessor: Changes each request after it is built.
[0;36m136 |[0;0m public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> [4;39mURLRequest[0;0m = { $0 }) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m self.baseUrls = [
[0;36m138 |[0;0m .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:59: [1;33mwarning: [1;39m'@escaping' only applies to function types; this will be an error in a future Swift language mode[0;0m
[0;36m134 |[0;0m /// - baseUrl: The base URL.
[0;36m135 |[0;0m /// - requestProcessor: Changes each request after it is built.
[0;36m136 |[0;0m public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'@escaping' only applies to function types; this will be an error in a future Swift language mode[0;0m
[0;36m137 |[0;0m self.baseUrls = [
[0;36m138 |[0;0m .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