The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-networking, reference main (9e2ac6), with Swift 6.2 for Android on 11 Aug 2026 04:21:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
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 9e2ac6f Allow injecting a custom URLSession into NetworkingController
Cloned https://github.com/telemtobi/swift-networking.git
Revision (git rev-parse @):
9e2ac6ff8d35e4790c72847befd2020483457bf5
SUCCESS checkout https://github.com/telemtobi/swift-networking.git at main
========================================
Build
========================================
Selected platform:         android
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-54344849-0":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:573917aa137cc6f081a4f3d2a0330bac24553e9cd713cd758adf65046f5c6b90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/20] 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:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// 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 loggingQueue = DispatchQueue(label: #function)
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:43:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
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:43:43: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:43:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/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 loggingQueue = DispatchQueue(label: #function)
/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:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/22] Compiling Networking HttpMethod.swift
[5/22] Compiling Networking HttpStatus.swift
[6/22] Compiling Networking AnyEncodable.swift
[7/22] Compiling Networking Error+Extension.swift
[8/22] Compiling Networking JsonMapper.swift
[9/22] Compiling Networking Networking.swift
[10/22] Compiling Networking String+Extension.swift
[11/22] Compiling Networking Task+Extension.swift
[12/22] Compiling Networking DecodableError.swift
[13/22] Compiling Networking Endpoint.swift
[14/22] Compiling Networking Data+Networking.swift
[15/22] Compiling Networking HttpTask.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
[16/22] Compiling Networking Interceptor.swift
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
[17/22] 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.
/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>
[18/22] 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.
/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>
[19/22] Compiling Networking URLResponse+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.
/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>
[20/22] Compiling Networking NetworkingController+Internal.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:6:34: error: cannot find 'URLRequest' in scope
  4 |     internal func makeRequest<T: Decodable & Sendable>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
  5 |         do {
  6 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
  7 |
  8 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:10:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  8 |             interceptor?.intercept(&urlRequest)
  9 |
 10 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |             logRequest(endpoint, urlRequest, response, data, attempt)
/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:16:45: error: cannot infer contextual base in reference to member 'success'
 14 |             interceptor?.intercept(&data)
 15 |
 16 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 17 |                 throw(decodedError(endpoint, data))
 18 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:53:34: error: cannot find 'URLRequest' in scope
 51 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 52 |         do {
 53 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 54 |             interceptor?.intercept(&urlRequest)
 55 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:64:46: error: 'nil' requires a contextual type
 62 |             interceptor?.intercept(&sampleData)
 63 |
 64 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 65 |
 66 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:85:34: error: cannot find 'URLRequest' in scope
 83 |     internal func makeRequest<T: Decodable & Sendable & JsonMapper>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
 84 |         do {
 85 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 86 |
 87 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:89:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 87 |             interceptor?.intercept(&urlRequest)
 88 |
 89 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 90 |
 91 |             logRequest(endpoint, urlRequest, response, data, attempt)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:95:45: error: cannot infer contextual base in reference to member 'success'
 93 |             interceptor?.intercept(&data)
 94 |
 95 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 96 |                 throw(decodedError(endpoint, data))
 97 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:34: error: cannot find 'URLRequest' in scope
123 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
124 |         do {
125 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
126 |             interceptor?.intercept(&urlRequest)
127 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:134:46: error: 'nil' requires a contextual type
132 |             let sampleData = endpoint.sampleData ?? Data()
133 |
134 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
135 |
136 |             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+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()
/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 loggingQueue = DispatchQueue(label: #function)
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:43:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
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:43:43: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:43:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/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 loggingQueue = DispatchQueue(label: #function)
[21/22] Compiling Networking NetworkingController+Logging.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:6:34: error: cannot find 'URLRequest' in scope
  4 |     internal func makeRequest<T: Decodable & Sendable>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
  5 |         do {
  6 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
  7 |
  8 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:10:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  8 |             interceptor?.intercept(&urlRequest)
  9 |
 10 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |             logRequest(endpoint, urlRequest, response, data, attempt)
/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:16:45: error: cannot infer contextual base in reference to member 'success'
 14 |             interceptor?.intercept(&data)
 15 |
 16 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 17 |                 throw(decodedError(endpoint, data))
 18 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:53:34: error: cannot find 'URLRequest' in scope
 51 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 52 |         do {
 53 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 54 |             interceptor?.intercept(&urlRequest)
 55 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:64:46: error: 'nil' requires a contextual type
 62 |             interceptor?.intercept(&sampleData)
 63 |
 64 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 65 |
 66 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:85:34: error: cannot find 'URLRequest' in scope
 83 |     internal func makeRequest<T: Decodable & Sendable & JsonMapper>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
 84 |         do {
 85 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 86 |
 87 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:89:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 87 |             interceptor?.intercept(&urlRequest)
 88 |
 89 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 90 |
 91 |             logRequest(endpoint, urlRequest, response, data, attempt)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:95:45: error: cannot infer contextual base in reference to member 'success'
 93 |             interceptor?.intercept(&data)
 94 |
 95 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 96 |                 throw(decodedError(endpoint, data))
 97 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:34: error: cannot find 'URLRequest' in scope
123 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
124 |         do {
125 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
126 |             interceptor?.intercept(&urlRequest)
127 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:134:46: error: 'nil' requires a contextual type
132 |             let sampleData = endpoint.sampleData ?? Data()
133 |
134 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
135 |
136 |             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+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()
/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 loggingQueue = DispatchQueue(label: #function)
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:43:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
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:43:43: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:43:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/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 loggingQueue = DispatchQueue(label: #function)
[22/22] Compiling Networking NetworkingController.swift
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:6:34: error: cannot find 'URLRequest' in scope
  4 |     internal func makeRequest<T: Decodable & Sendable>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
  5 |         do {
  6 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
  7 |
  8 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:21:37: error: cannot find type 'URLRequest' in scope
19 |     ///
20 |     /// - Parameter request: The URLRequest that will be modified.
21 |     func intercept(_ request: inout URLRequest)
   |                                     `- error: cannot find type 'URLRequest' in scope
22 |
23 |     /// Allows the interceptor to process or modify the response data before decoding.
/host/spi-builder-workspace/Sources/Networking/Interceptor.swift:49:37: error: cannot find type 'URLRequest' in scope
47 |     var authenticationState: AuthenticationState { .reachable }
48 |     func authenticate() async throws -> Bool { true }
49 |     func intercept(_ request: inout URLRequest) {}
   |                                     `- error: cannot find type 'URLRequest' in scope
50 |     func intercept(_ data: inout Data) {}
51 |     func intercept(_ error: DecodableError) {}
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:10:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
  8 |             interceptor?.intercept(&urlRequest)
  9 |
 10 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 11 |
 12 |             logRequest(endpoint, urlRequest, response, data, attempt)
/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:16:45: error: cannot infer contextual base in reference to member 'success'
 14 |             interceptor?.intercept(&data)
 15 |
 16 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 17 |                 throw(decodedError(endpoint, data))
 18 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:53:34: error: cannot find 'URLRequest' in scope
 51 |     internal func makeMockRequest<T: Decodable>(_ endpoint: Endpoint) async throws(F) -> T {
 52 |         do {
 53 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 54 |             interceptor?.intercept(&urlRequest)
 55 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:64:46: error: 'nil' requires a contextual type
 62 |             interceptor?.intercept(&sampleData)
 63 |
 64 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
 65 |
 66 |             let model = try (sampleData).decode(
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:85:34: error: cannot find 'URLRequest' in scope
 83 |     internal func makeRequest<T: Decodable & Sendable & JsonMapper>(_ endpoint: Endpoint, attempt: Int = .zero) async throws(F) -> T {
 84 |         do {
 85 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
 86 |
 87 |             interceptor?.intercept(&urlRequest)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:89:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 87 |             interceptor?.intercept(&urlRequest)
 88 |
 89 |             var (data, response) = try await urlSession.data(for: urlRequest)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 90 |
 91 |             logRequest(endpoint, urlRequest, response, data, attempt)
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:95:45: error: cannot infer contextual base in reference to member 'success'
 93 |             interceptor?.intercept(&data)
 94 |
 95 |             guard response.status.group == .success else {
    |                                             `- error: cannot infer contextual base in reference to member 'success'
 96 |                 throw(decodedError(endpoint, data))
 97 |             }
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:125:34: error: cannot find 'URLRequest' in scope
123 |     internal func makeMockRequest<T: Decodable & JsonMapper>(_ endpoint: Endpoint) async throws(F) -> T {
124 |         do {
125 |             var urlRequest = try URLRequest(endpoint)
    |                                  `- error: cannot find 'URLRequest' in scope
126 |             interceptor?.intercept(&urlRequest)
127 |
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController+Internal.swift:134:46: error: 'nil' requires a contextual type
132 |             let sampleData = endpoint.sampleData ?? Data()
133 |
134 |             logRequest(endpoint, urlRequest, nil, sampleData)
    |                                              `- error: 'nil' requires a contextual type
135 |
136 |             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+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()
/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 loggingQueue = DispatchQueue(label: #function)
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:43:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
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:43:43: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/host/spi-builder-workspace/Sources/Networking/Controller/NetworkingController.swift:43:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     ///     * Process response data
 42 |     ///     * Handle errors
 43 |     public init(urlSession: URLSession = .shared, environment: Networking.Environment = .live, interceptor: Interceptor? = nil) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |         self.urlSession = urlSession
 45 |         self.environment = environment
/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 loggingQueue = DispatchQueue(label: #function)
BUILD FAILURE 6.2 android