The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-networking, reference main (621c8e), with Swift 6.2 for Wasm on 30 Nov 2026 13:13:05 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.2.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/telemtobi/swift-networking.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/telemtobi/swift-networking
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 621c8ed Refresh authentication on 401 (#20)
Cloned https://github.com/telemtobi/swift-networking.git
Revision (git rev-parse @):
621c8ed09a2f4ada9996f8bccf50a3dcb8db572f
SUCCESS checkout https://github.com/telemtobi/swift-networking.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/telemtobi/swift-networking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/host -w "$PWD" -e GIT_HTTP_LOW_SPEED_LIMIT="100000" -e GIT_HTTP_LOW_SPEED_TIME="60" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:0edccce2083c005c7cf1d4a8cd47fd86214ad7a39c32bca4f7db4cf90ab01f49
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/21] Emitting module Networking
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
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/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: value of type '_' expected to be instance of class or class-constrained type
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                  `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     /// Initializes a `URLRequest` from an `Endpoint` instance.
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 1 | import Foundation
 2 |
 3 | public extension URLResponse {
   |        `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 4 |
 5 |     var status: HttpStatus {
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/23] Compiling Networking JsonMapper.swift
[5/23] Compiling Networking Networking.swift
[6/23] Compiling Networking AnyEncodable.swift
[7/23] Compiling Networking Error+Extension.swift
[8/23] Compiling Networking HttpTask.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
[9/23] Compiling Networking Interceptor.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
[10/23] Compiling Networking String+Extension.swift
[11/23] Compiling Networking Task+Extension.swift
[12/23] Compiling Networking URLResponse+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 1 | import Foundation
 2 |
 3 | public extension URLResponse {
   |        `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 4 |
 5 |     var status: HttpStatus {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/23] Compiling Networking HttpMethod.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 1 | import Foundation
 2 |
 3 | public extension URLResponse {
   |        `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 4 |
 5 |     var status: HttpStatus {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/23] Compiling Networking HttpStatus.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLResponse+Networking.swift:3:8: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 1 | import Foundation
 2 |
 3 | public extension URLResponse {
   |        `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
 4 |
 5 |     var status: HttpStatus {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[15/23] Compiling Networking Data+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     /// Initializes a `URLRequest` from an `Endpoint` instance.
[16/23] Compiling Networking URL+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     /// Initializes a `URLRequest` from an `Endpoint` instance.
[17/23] Compiling Networking URLRequest+Networking.swift
/host/spi-builder-workspace/Sources/Networking/Extensions/URLRequest+Networking.swift:3:18: error: cannot find type 'URLRequest' in scope
 1 | import Foundation
 2 |
 3 | public extension URLRequest {
   |                  `- error: cannot find type 'URLRequest' in scope
 4 |
 5 |     /// Initializes a `URLRequest` from an `Endpoint` instance.
[18/23] Compiling Networking AuthenticationCoordinator.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
  7 |
  8 |         do {
  9 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 10 |
 11 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |             interceptor?.intercept(&urlRequest)
 12 |
 13 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |             status = response.status
 15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
 18 |             interceptor?.intercept(&data)
 19 |
 20 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 21 |                 throw(decodedError(endpoint, data))
 22 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
 77 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 78 |         do {
 79 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 80 |             interceptor?.intercept(&urlRequest)
 81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
 88 |             interceptor?.intercept(&sampleData)
 89 |
 90 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 91 |
 92 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 |         do {
114 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
115 |
116 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |             interceptor?.intercept(&urlRequest)
117 |
118 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |             status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 |             interceptor?.intercept(&data)
124 |
125 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
126 |                 throw(decodedError(endpoint, data))
127 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 |         do {
160 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
161 |             interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 |             let sampleData = endpoint.sampleData ?? Data()
168 |
169 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
170 |
171 |             let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
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/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 |             }
16 |
17 |             let statusCode = response?.status ?? .ok
   |                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 |             print()
[19/23] Compiling Networking NetworkingController+Internal.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
  7 |
  8 |         do {
  9 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 10 |
 11 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |             interceptor?.intercept(&urlRequest)
 12 |
 13 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |             status = response.status
 15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
 18 |             interceptor?.intercept(&data)
 19 |
 20 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 21 |                 throw(decodedError(endpoint, data))
 22 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
 77 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 78 |         do {
 79 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 80 |             interceptor?.intercept(&urlRequest)
 81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
 88 |             interceptor?.intercept(&sampleData)
 89 |
 90 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 91 |
 92 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 |         do {
114 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
115 |
116 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |             interceptor?.intercept(&urlRequest)
117 |
118 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |             status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 |             interceptor?.intercept(&data)
124 |
125 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
126 |                 throw(decodedError(endpoint, data))
127 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 |         do {
160 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
161 |             interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 |             let sampleData = endpoint.sampleData ?? Data()
168 |
169 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
170 |
171 |             let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
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/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 |             }
16 |
17 |             let statusCode = response?.status ?? .ok
   |                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 |             print()
[20/23] Compiling Networking NetworkingController+Logging.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:9:34: error: cannot find 'URLRequest' in scope
  7 |
  8 |         do {
  9 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 10 |
 11 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:60:37: error: cannot find type 'URLRequest' in scope
58 |     func authenticate() async throws -> Bool { true }
59 |     func refreshAuthentication(after error: DecodableError) async -> Bool { false }
60 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
61 |     func intercept(_ data: inout Data) {}
62 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:13:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |             interceptor?.intercept(&urlRequest)
 12 |
 13 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 14 |             status = response.status
 15 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:54: error: cannot find type 'URLRequest' in scope
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:20:45: error: cannot infer contextual base in reference to member 'success'
 18 |             interceptor?.intercept(&data)
 19 |
 20 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 21 |                 throw(decodedError(endpoint, data))
 22 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:79:34: error: cannot find 'URLRequest' in scope
 77 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 78 |         do {
 79 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 80 |             interceptor?.intercept(&urlRequest)
 81 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:90:46: error: 'nil' requires a contextual type
 88 |             interceptor?.intercept(&sampleData)
 89 |
 90 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 91 |
 92 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:114:34: error: cannot find 'URLRequest' in scope
112 |
113 |         do {
114 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
115 |
116 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:118:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
116 |             interceptor?.intercept(&urlRequest)
117 |
118 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |             status = response.status
120 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:45: error: cannot infer contextual base in reference to member 'success'
123 |             interceptor?.intercept(&data)
124 |
125 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
126 |                 throw(decodedError(endpoint, data))
127 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:160:34: error: cannot find 'URLRequest' in scope
158 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
159 |         do {
160 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
161 |             interceptor?.intercept(&urlRequest)
162 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:169:46: error: 'nil' requires a contextual type
167 |             let sampleData = endpoint.sampleData ?? Data()
168 |
169 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
170 |
171 |             let model = try T
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:4:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public extension NetworkingController {
 4 |     func logRequest(_ endpoint: Endpoint, _ request: URLRequest, _ response: URLResponse?, _ data: Data, _ attempt: Int = .zero) {
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |         guard endpoint.shouldPrintLogs else { return }
 6 |
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/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Logging.swift:17:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
15 |             }
16 |
17 |             let statusCode = response?.status ?? .ok
   |                                        `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'status'
18 |
19 |             print()
[21/23] Compiling Networking NetworkingController.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: value of type '_' expected to be instance of class or class-constrained type
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                  `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
[22/23] Compiling Networking DecodableError.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: value of type '_' expected to be instance of class or class-constrained type
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                  `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
[23/23] Compiling Networking Endpoint.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:31:37: error: cannot find type 'URLRequest' in scope
29 |     ///
30 |     /// - Parameter request: The URLRequest that will be modified.
31 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
32 |
33 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:22:33: error: cannot find 'DispatchQueue' in scope
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
 21 |
 22 |     internal let loggingQueue = DispatchQueue(label: #function)
    |                                 `- error: cannot find 'DispatchQueue' in scope
 23 |
 24 |     /// A networking controller for making requests with features like request interception, environment handling, and error handling.
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:48:35: error: value of type '_' expected to be instance of class or class-constrained type
 46 |     ///     * Handle errors
 47 |     public init(
 48 |         urlSession: URLSession = .shared,
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 49 |         environment: Networking.Environment = .live,
 50 |         interceptor: Interceptor? = nil,
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:18:18: error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     public let interceptor: Interceptor?
 17 |
 18 |     internal let urlSession: URLSession
    |                  `- error: stored property 'urlSession' of 'Sendable'-conforming generic class 'NetworkingController' has non-Sendable type 'URLSession' (aka 'AnyObject')
 19 |
 20 |     internal let authenticationCoordinator: AuthenticationCoordinator
BUILD FAILURE 6.2 wasm