Build Information
Failed to build DBNetworkStack, reference 4.0.0 (516e1a), with Swift 6.4 for Linux on 22 Sep 2026 15:08:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dbsystel/DBNetworkStack.git
Reference: 4.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/dbsystel/DBNetworkStack
* tag 4.0.0 -> FETCH_HEAD
HEAD is now at 516e1a4 Merge pull request #112 from dbsystel/release/4.0
Cloned https://github.com/dbsystel/DBNetworkStack.git
Revision (git rev-parse @):
516e1a437fbe6a9435cb57f35ef31b95501a0405
SUCCESS checkout https://github.com/dbsystel/DBNetworkStack.git at 4.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
Building package at path: $PWD
https://github.com/dbsystel/DBNetworkStack.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line: cd /host
[28 / 36] DBNetworkStack
/host/spi-builder-workspace/Source/NetworkAccess.swift:35:24: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m33 |[0;0m /// - callback: Callback which gets called when the request finishes.
[0;36m34 |[0;0m /// - Returns: the running network task
[0;36m35 |[0;0m func load(request: [4;39mURLRequest[0;0m) async throws -> (Data, URLResponse)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m }
/host/spi-builder-workspace/Source/NetworkAccess.swift:35:59: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m /// - callback: Callback which gets called when the request finishes.
[0;36m34 |[0;0m /// - Returns: the running network task
[0;36m35 |[0;0m func load(request: URLRequest) async throws -> (Data, [4;39mURLResponse[0;0m)
[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;36m36 |[0;0m
[0;36m37 |[0;0m }
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/Source/NetworkError.swift:33:33: [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 case cancelled
[0;36m32 |[0;0m /// Missing authorization for the request (HTTP Error 401)
[0;36m33 |[0;0m case unauthorized(response: [4;39mHTTPURLResponse[0;0m, data: Data?)
[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;36m34 |[0;0m /// Invalid payload was send to the server (HTTP Error 400...451)
[0;36m35 |[0;0m case clientError(response: HTTPURLResponse?, data: Data?)
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/Source/NetworkError.swift:35:32: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m33 |[0;0m case unauthorized(response: HTTPURLResponse, data: Data?)
[0;36m34 |[0;0m /// Invalid payload was send to the server (HTTP Error 400...451)
[0;36m35 |[0;0m case clientError(response: [4;39mHTTPURLResponse[0;0m?, data: Data?)
[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;36m36 |[0;0m /// Error on the server (HTTP Error 500...511)
[0;36m37 |[0;0m case serverError(response: HTTPURLResponse?, data: Data?)
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/Source/NetworkError.swift:37:32: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m35 |[0;0m case clientError(response: HTTPURLResponse?, data: Data?)
[0;36m36 |[0;0m /// Error on the server (HTTP Error 500...511)
[0;36m37 |[0;0m case serverError(response: [4;39mHTTPURLResponse[0;0m?, data: Data?)
[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;36m38 |[0;0m /// Parsing the body into expected type failed.
[0;36m39 |[0;0m case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
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/Source/NetworkError.swift:39:53: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m case serverError(response: HTTPURLResponse?, data: Data?)
[0;36m38 |[0;0m /// Parsing the body into expected type failed.
[0;36m39 |[0;0m case serializationError(error: Error, response: [4;39mHTTPURLResponse[0;0m, data: Data?)
[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;36m40 |[0;0m /// Complete request failed.
[0;36m41 |[0;0m case requestError(error: Error)
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/Source/NetworkError.swift:43:28: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m41 |[0;0m case requestError(error: Error)
[0;36m42 |[0;0m
[0;36m43 |[0;0m public init?(response: [4;39mHTTPURLResponse[0;0m, data: Data) {
[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;36m44 |[0;0m switch response.statusCode {
[0;36m45 |[0;0m case 200..<300: return nil
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/Source/NetworkError.swift:33:10: [1;33mwarning: [1;39massociated value 'unauthorized(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m31 |[0;0m case cancelled
[0;36m32 |[0;0m /// Missing authorization for the request (HTTP Error 401)
[0;36m33 |[0;0m case unauthorized(response: HTTPURLResponse, data: Data?)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'unauthorized(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m34 |[0;0m /// Invalid payload was send to the server (HTTP Error 400...451)
[0;36m35 |[0;0m case clientError(response: HTTPURLResponse?, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:35:10: [1;33mwarning: [1;39massociated value 'clientError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m33 |[0;0m case unauthorized(response: HTTPURLResponse, data: Data?)
[0;36m34 |[0;0m /// Invalid payload was send to the server (HTTP Error 400...451)
[0;36m35 |[0;0m case clientError(response: HTTPURLResponse?, data: Data?)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'clientError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m36 |[0;0m /// Error on the server (HTTP Error 500...511)
[0;36m37 |[0;0m case serverError(response: HTTPURLResponse?, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:37:10: [1;33mwarning: [1;39massociated value 'serverError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m35 |[0;0m case clientError(response: HTTPURLResponse?, data: Data?)
[0;36m36 |[0;0m /// Error on the server (HTTP Error 500...511)
[0;36m37 |[0;0m case serverError(response: HTTPURLResponse?, data: Data?)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'serverError(response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m38 |[0;0m /// Parsing the body into expected type failed.
[0;36m39 |[0;0m case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
/host/spi-builder-workspace/Source/NetworkError.swift:39:10: [1;33mwarning: [1;39massociated value 'serializationError(error:response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m37 |[0;0m case serverError(response: HTTPURLResponse?, data: Data?)
[0;36m38 |[0;0m /// Parsing the body into expected type failed.
[0;36m39 |[0;0m case serializationError(error: Error, response: HTTPURLResponse, data: Data?)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'serializationError(error:response:data:)' of 'Sendable'-conforming enum 'NetworkError' contains non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode[0;0m
[0;36m40 |[0;0m /// Complete request failed.
[0;36m41 |[0;0m case requestError(error: Error)
/host/spi-builder-workspace/Source/NetworkService+ResourceWithError.swift:56:33: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m54 |[0;0m public func requestResultWithResponse<Success, E: Error>(
[0;36m55 |[0;0m for resource: Resource<Success, E>
[0;36m56 |[0;0m ) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), E> {
[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;36m57 |[0;0m let resourceWithoutError = Resource<Success, NetworkError>(request: resource.request, parse: resource.parse)
[0;36m58 |[0;0m return await self.requestResultWithResponse(for: resourceWithoutError)
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/Source/NetworkService+ResourceWithError.swift:133:114: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m131 |[0;0m
[0;36m132 |[0;0m @discardableResult
[0;36m133 |[0;0m func requestWithResponse<Success, E: Error>(for resource: Resource<Success, E>) async throws(E) -> (Success, [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;36m134 |[0;0m return try await requestResultWithResponse(for: resource).get()
[0;36m135 |[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/Source/NetworkService.swift:53:118: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m51 |[0;0m */
[0;36m52 |[0;0m @discardableResult
[0;36m53 |[0;0m func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError>
[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;36m54 |[0;0m }
[0;36m55 |[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/Source/NetworkService.swift:105:126: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m103 |[0;0m
[0;36m104 |[0;0m @discardableResult
[0;36m105 |[0;0m func requestWithResponse<Success>(for resource: Resource<Success, NetworkError>) async throws(NetworkError) -> (Success, [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;36m106 |[0;0m return try await requestResultWithResponse(for: resource).get()
[0;36m107 |[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/Source/NetworkServices/BasicNetworkService.swift:76:125: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m74 |[0;0m */
[0;36m75 |[0;0m @discardableResult
[0;36m76 |[0;0m public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m77 |[0;0m do {
[0;36m78 |[0;0m let (data, response) = try await networkAccess.load(request: resource.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/Source/NetworkServices/ModifyRequestNetworkService.swift:44:51: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m42 |[0;0m public final class ModifyRequestNetworkService: NetworkService {
[0;36m43 |[0;0m
[0;36m44 |[0;0m private let requestModifications: [@Sendable ([4;39mURLRequest[0;0m) -> URLRequest]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m45 |[0;0m private let networkService: NetworkService
[0;36m46 |[0;0m
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:44:66: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m42 |[0;0m public final class ModifyRequestNetworkService: NetworkService {
[0;36m43 |[0;0m
[0;36m44 |[0;0m private let requestModifications: [@Sendable (URLRequest) -> [4;39mURLRequest[0;0m]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m45 |[0;0m private let networkService: NetworkService
[0;36m46 |[0;0m
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:52:83: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m50 |[0;0m /// - networkService: a networkservice.
[0;36m51 |[0;0m /// - requestModifications: array of modifications to modify requests.
[0;36m52 |[0;0m public init(networkService: NetworkService, requestModifications: [@Sendable ([4;39mURLRequest[0;0m) -> URLRequest]) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m self.networkService = networkService
[0;36m54 |[0;0m self.requestModifications = requestModifications
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:52:98: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m50 |[0;0m /// - networkService: a networkservice.
[0;36m51 |[0;0m /// - requestModifications: array of modifications to modify requests.
[0;36m52 |[0;0m public init(networkService: NetworkService, requestModifications: [@Sendable (URLRequest) -> [4;39mURLRequest[0;0m]) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m self.networkService = networkService
[0;36m54 |[0;0m self.requestModifications = requestModifications
/host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift:83:125: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m81 |[0;0m */
[0;36m82 |[0;0m @discardableResult
[0;36m83 |[0;0m public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m84 |[0;0m let request = requestModifications.reduce(resource.request, { request, modify in
[0;36m85 |[0;0m return modify(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/Source/NetworkServices/NetworkServiceMock.swift:71:29: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// Last executed request
[0;36m71 |[0;0m public var lastRequest: [4;39mURLRequest[0;0m? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m72 |[0;0m return lastRequests.last
[0;36m73 |[0;0m }
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:76:44: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m74 |[0;0m
[0;36m75 |[0;0m /// All executed requests.
[0;36m76 |[0;0m public private(set) var lastRequests: [[4;39mURLRequest[0;0m] = []
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m77 |[0;0m
[0;36m78 |[0;0m private var responses: [(String, Result<(Data, HTTPURLResponse), NetworkError>)]
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:78:52: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m76 |[0;0m public private(set) var lastRequests: [URLRequest] = []
[0;36m77 |[0;0m
[0;36m78 |[0;0m private var responses: [(String, Result<(Data, [4;39mHTTPURLResponse[0;0m), NetworkError>)]
[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;36m79 |[0;0m private let encoder: JSONEncoder
[0;36m80 |[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/Source/NetworkServices/NetworkServiceMock.swift:83:35: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m81 |[0;0m /// Creates an instace of `NetworkServiceMock`
[0;36m82 |[0;0m public init(
[0;36m83 |[0;0m responses: [Result<(Data, [4;39mHTTPURLResponse[0;0m), NetworkError>] = [],
[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;36m84 |[0;0m encoder: JSONEncoder = JSONEncoder()
[0;36m85 |[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/Source/NetworkServices/NetworkServiceMock.swift:92:45: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m90 |[0;0m /// Creates an instace of `NetworkServiceMock`
[0;36m91 |[0;0m public init<each T: Encodable>(
[0;36m92 |[0;0m _ responses: repeat Result<(each T, [4;39mHTTPURLResponse[0;0m), NetworkError>,
[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;36m93 |[0;0m encoder: JSONEncoder = JSONEncoder()
[0;36m94 |[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/Source/NetworkServices/NetworkServiceMock.swift:114:53: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m112 |[0;0m /// Creates an instace of `NetworkServiceMock`
[0;36m113 |[0;0m public init(
[0;36m114 |[0;0m mappings responses: [(String, Result<(Data, [4;39mHTTPURLResponse[0;0m), NetworkError>)],
[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;36m115 |[0;0m encoder: JSONEncoder = JSONEncoder()
[0;36m116 |[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/Source/NetworkServices/NetworkServiceMock.swift:123:61: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m121 |[0;0m /// Creates an instace of `NetworkServiceMock`
[0;36m122 |[0;0m public init<each T: Encodable>(
[0;36m123 |[0;0m mappings responses: repeat (String, Result<(each T, [4;39mHTTPURLResponse[0;0m), NetworkError>),
[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;36m124 |[0;0m encoder: JSONEncoder = JSONEncoder()
[0;36m125 |[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/Source/NetworkServices/NetworkServiceMock.swift:172:135: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m170 |[0;0m */
[0;36m171 |[0;0m @MainActor
[0;36m172 |[0;0m public func requestResultWithResponse<Success: Sendable>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m173 |[0;0m lastRequests.append(resource.request)
[0;36m174 |[0;0m if !responses.isEmpty {
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/Source/NetworkServices/NetworkServiceMock.swift:198:59: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m196 |[0;0m }
[0;36m197 |[0;0m
[0;36m198 |[0;0m public func schedule<T: Encodable>(result: Result<(T, [4;39mHTTPURLResponse[0;0m), NetworkError>) {
[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;36m199 |[0;0m let scheduled: Result<(Data, HTTPURLResponse), NetworkError>
[0;36m200 |[0;0m switch result {
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/Source/NetworkServices/NetworkServiceMock.swift:216:42: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m214 |[0;0m }
[0;36m215 |[0;0m
[0;36m216 |[0;0m public func schedule(success: (Void, [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;36m217 |[0;0m schedule(result: .success(("", success.1)))
[0;36m218 |[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/Source/NetworkServices/NetworkServiceMock.swift:224:53: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m222 |[0;0m }
[0;36m223 |[0;0m
[0;36m224 |[0;0m public func schedule<T: Encodable>(success: (T, [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;36m225 |[0;0m schedule(result: .success(success))
[0;36m226 |[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/Source/NetworkServices/NetworkServiceMock.swift:172:17: [1;33mwarning: [1;39mnon-Sendable type 'Result<(Success, HTTPURLResponse), NetworkError>' (aka 'Result<(Success, AnyObject), NetworkError>') cannot be returned from main actor-isolated implementation to caller of protocol requirement 'requestResultWithResponse(for:)'; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides\NonSendableInAsyncConformanceOrOverride]8;;\]
[0;36m170 |[0;0m */
[0;36m171 |[0;0m @MainActor
[0;36m172 |[0;0m public func requestResultWithResponse<Success: Sendable>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, HTTPURLResponse), NetworkError> {
[0;36m|[0;0m `- [1;33mwarning: [1;39mnon-Sendable type 'Result<(Success, HTTPURLResponse), NetworkError>' (aka 'Result<(Success, AnyObject), NetworkError>') cannot be returned from main actor-isolated implementation to caller of protocol requirement 'requestResultWithResponse(for:)'; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides\NonSendableInAsyncConformanceOrOverride]8;;\]
[0;36m173 |[0;0m lastRequests.append(resource.request)
[0;36m174 |[0;0m if !responses.isEmpty {
/host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift:237:77: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m235 |[0;0m func encode<T: Encodable>(
[0;36m236 |[0;0m encoder: JSONEncoder
[0;36m237 |[0;0m ) -> Result<(Data, HTTPURLResponse), NetworkError> where Success == (T, [4;39mHTTPURLResponse[0;0m), Failure == NetworkError {
[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;36m238 |[0;0m return self.map({ ((try? encoder.encode($0.0)) ?? Data(), $0.1) })
[0;36m239 |[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/Source/NetworkServices/NetworkServiceMock.swift:237:24: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m235 |[0;0m func encode<T: Encodable>(
[0;36m236 |[0;0m encoder: JSONEncoder
[0;36m237 |[0;0m ) -> Result<(Data, [4;39mHTTPURLResponse[0;0m), NetworkError> where Success == (T, HTTPURLResponse), Failure == NetworkError {
[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;36m238 |[0;0m return self.map({ ((try? encoder.encode($0.0)) ?? Data(), $0.1) })
[0;36m239 |[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/Source/NetworkServices/NetworkServiceMock.swift:247:24: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m245 |[0;0m func encode(
[0;36m246 |[0;0m encoder: JSONEncoder
[0;36m247 |[0;0m ) -> Result<(Data, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m248 |[0;0m let defaultResponse: HTTPURLResponse! = HTTPURLResponse(
[0;36m249 |[0;0m url: URL(staticString: "bahn.de"),
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/Source/NetworkServices/RetryNetworkService.swift:84:125: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m82 |[0;0m - returns: a running network task
[0;36m83 |[0;0m */
[0;36m84 |[0;0m public func requestResultWithResponse<Success>(for resource: Resource<Success, NetworkError>) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m85 |[0;0m let result = await networkService.requestResultWithResponse(for: resource)
[0;36m86 |[0;0m switch result {
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/Source/NetworkServices/RetryNetworkService.swift:98:33: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m96 |[0;0m numberOfRetriesLeft: Int,
[0;36m97 |[0;0m resource: Resource<Success, NetworkError>
[0;36m98 |[0;0m ) async -> Result<(Success, [4;39mHTTPURLResponse[0;0m), NetworkError> {
[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;36m99 |[0;0m if self.shouldRetry(error), numberOfRetriesLeft > 0 {
[0;36m100 |[0;0m let duration = UInt64(idleTimeInterval * 1_000_000_000)
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/Source/Resource+Decodable.swift:35:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m33 |[0;0m /// - decoder: a decoder which can decode the payload into the model type
[0;36m34 |[0;0m /// - mapError: a closure which maps to Error
[0;36m35 |[0;0m public init(request: [4;39mURLRequest[0;0m, decoder: JSONDecoder, mapError: @escaping @Sendable (_ networkError: NetworkError) -> E) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m36 |[0;0m self.init(request: request, parse: {
[0;36m37 |[0;0m try decoder.decode(Model.self, from: $0)
/host/spi-builder-workspace/Source/Resource+Decodable.swift:53:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m51 |[0;0m /// - decoder: a decoder which can decode the payload into the model type
[0;36m52 |[0;0m /// - mapError: a closure which maps to Error
[0;36m53 |[0;0m public init(request: [4;39mURLRequest[0;0m, decoder: JSONDecoder) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m54 |[0;0m self.init(request: request, parse: {
[0;36m55 |[0;0m try decoder.decode(Model.self, from: $0)
/host/spi-builder-workspace/Source/Resource+Void.swift:17:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m15 |[0;0m /// - request: The request to get the remote data payload
[0;36m16 |[0;0m /// - mapError: a closure which maps to Error
[0;36m17 |[0;0m init(request: [4;39mURLRequest[0;0m, mapError: @escaping @Sendable (_ networkError: NetworkError) -> E) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m18 |[0;0m self.init(request: request, parse: { _ in }, mapError: mapError)
[0;36m19 |[0;0m }
/host/spi-builder-workspace/Source/Resource+Void.swift:28:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m26 |[0;0m /// - Parameters:
[0;36m27 |[0;0m /// - request: The request to get the remote data payload
[0;36m28 |[0;0m init(request: [4;39mURLRequest[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m29 |[0;0m self.init(request: request, parse: { _ in }, mapError: { E(networkError: $0) })
[0;36m30 |[0;0m }
/host/spi-builder-workspace/Source/Resource.swift:40:25: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m38 |[0;0m public struct Resource<Model, E: Error>: Sendable {
[0;36m39 |[0;0m /// The request to fetch the resource remote payload
[0;36m40 |[0;0m public let request: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m41 |[0;0m
[0;36m42 |[0;0m /// Parses data into given model.
/host/spi-builder-workspace/Source/Resource.swift:52:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m50 |[0;0m /// - parse: Parses data fetched with the request into given Model
[0;36m51 |[0;0m
[0;36m52 |[0;0m public init(request: [4;39mURLRequest[0;0m, parse: @escaping @Sendable (Data) throws -> Model, mapError: @escaping @Sendable (_ networkError: NetworkError) -> E) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m53 |[0;0m self.request = request
[0;36m54 |[0;0m self.parse = parse
/host/spi-builder-workspace/Source/ResourceWithError+NetworkErrorConvertible.swift:12:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m10 |[0;0m public extension Resource where E: NetworkErrorConvertible {
[0;36m11 |[0;0m
[0;36m12 |[0;0m init(request: [4;39mURLRequest[0;0m, parse: @escaping @Sendable (Data) throws -> Model) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m13 |[0;0m self.request = request
[0;36m14 |[0;0m self.parse = parse
/host/spi-builder-workspace/Source/URLRequest+Init.swift:26:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m24 |[0;0m import Foundation
[0;36m25 |[0;0m
[0;36m26 |[0;0m extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m27 |[0;0m
[0;36m28 |[0;0m /// Convience initializer for easy request creation.
/host/spi-builder-workspace/Source/URLRequest+Modifications.swift:26:18: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m24 |[0;0m import Foundation
[0;36m25 |[0;0m
[0;36m26 |[0;0m public extension [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m27 |[0;0m
[0;36m28 |[0;0m /// Creates a new `URLRequest` with HTTPHeaderFields added into the new request.
/host/spi-builder-workspace/Source/URLSession+NetworkAccess.swift:27:1: [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;36m25 |[0;0m
[0;36m26 |[0;0m /// Adds conformens to `NetworkAccess`. `URLSession` can be used as a network access.
[0;36m27 |[0;0m extension [4;39mURLSession[0;0m: NetworkAccess {
[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;36m28 |[0;0m public func load(request: URLRequest) async throws -> (Data, URLResponse) {
[0;36m29 |[0;0m return try await data(for: request)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[#NonSendableInAsyncConformanceOrOverride]: <https://docs.swift.org/compiler/documentation/diagnostics/non-sendable-values-in-async-conformances-and-overrides>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Source/HTTPMethod.swift /host/spi-builder-workspace/Source/NetworkAccess.swift /host/spi-builder-workspace/Source/NetworkError.swift /host/spi-builder-workspace/Source/NetworkErrorConvertible.swift /host/spi-builder-workspace/Source/NetworkService+ResourceWithError.swift /host/spi-builder-workspace/Source/NetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/BasicNetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/ModifyRequestNetworkService.swift /host/spi-builder-workspace/Source/NetworkServices/NetworkServiceMock.swift /host/spi-builder-workspace/Source/NetworkServices/RetryNetworkService.swift /host/spi-builder-workspace/Source/Resource+Decodable.swift /host/spi-builder-workspace/Source/Resource+Inspect.swift /host/spi-builder-workspace/Source/Resource+Map.swift /host/spi-builder-workspace/Source/Resource+Void.swift /host/spi-builder-workspace/Source/Resource.swift /host/spi-builder-workspace/Source/ResourceWithError+NetworkErrorConvertible.swift /host/spi-builder-workspace/Source/URL+StaticStringInit.swift /host/spi-builder-workspace/Source/URLRequest+Init.swift /host/spi-builder-workspace/Source/URLRequest+Modifications.swift /host/spi-builder-workspace/Source/URLSession+NetworkAccess.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -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 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -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-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name DBNetworkStack -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack_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/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/DBNetworkStack-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/DBNetworkStack.build/Debug-linux-x86_64/DBNetworkStack-t.build/Objects-normal/x86_64/Modules/DBNetworkStack.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux