Build Information
Failed to build SwiftFetch, reference 1.0.4 (3a67d8), with Swift 6.1 for Linux on 10 Dec 2025 12:21:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/neeteshraj/SwiftFetch.git
Reference: 1.0.4
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/neeteshraj/SwiftFetch
* tag 1.0.4 -> FETCH_HEAD
HEAD is now at 3a67d81 Update CHANGELOG and README to reflect removal of global helpers in SwiftFetch. Promote instance-based usage with new configuration guidelines. Adjust tests for improved clarity.
Cloned https://github.com/neeteshraj/SwiftFetch.git
Revision (git rev-parse @):
3a67d81286ead0b1d5ffb5c68eeade82a87cd736
SUCCESS checkout https://github.com/neeteshraj/SwiftFetch.git at 1.0.4
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/neeteshraj/SwiftFetch.git
https://github.com/neeteshraj/SwiftFetch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftFetch",
"name" : "SwiftFetch",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SwiftFetch",
"targets" : [
"SwiftFetch"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftFetchTests",
"module_type" : "SwiftTarget",
"name" : "SwiftFetchTests",
"path" : "Tests/SwiftFetchTests",
"sources" : [
"SwiftFetchTests.swift"
],
"target_dependencies" : [
"SwiftFetch"
],
"type" : "test"
},
{
"c99name" : "SwiftFetch",
"module_type" : "SwiftTarget",
"name" : "SwiftFetch",
"path" : "Sources/SwiftFetch",
"product_memberships" : [
"SwiftFetch"
],
"sources" : [
"FetchClient.swift",
"FetchError.swift",
"FetchInterceptor.swift",
"FetchRequest.swift",
"FetchResponse.swift",
"FetchService.swift",
"HTTPMethod.swift",
"LoggingInterceptor.swift",
"MockFetchClient.swift",
"MultipartFormData.swift",
"SwiftFetch.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling SwiftFetch HTTPMethod.swift
[4/14] Compiling SwiftFetch MultipartFormData.swift
[5/14] Compiling SwiftFetch FetchClient.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:109:34: error: cannot find 'URLRequest' in scope
107 | let resolvedQuery = mergeQueries(configuration.defaultQuery, query)
108 | let url = try makeURL(from: request.url, query: resolvedQuery)
109 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | urlRequest.httpMethod = request.method.rawValue
111 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:134:47: error: cannot infer contextual base in reference to member 'success'
132 | do {
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'success'
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
136 | return response
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:135:77: error: 'nil' requires a contextual type
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
136 | return response
137 | } catch let error as FetchError {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:138:47: error: cannot infer contextual base in reference to member 'failure'
136 | return response
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'failure'
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:139:67: error: 'nil' requires a contextual type
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
141 | throw error
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:254:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | guard let httpResponse = response as? HTTPURLResponse else {
256 | throw FetchError.invalidResponse
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
[6/14] Compiling SwiftFetch FetchError.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:109:34: error: cannot find 'URLRequest' in scope
107 | let resolvedQuery = mergeQueries(configuration.defaultQuery, query)
108 | let url = try makeURL(from: request.url, query: resolvedQuery)
109 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | urlRequest.httpMethod = request.method.rawValue
111 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:134:47: error: cannot infer contextual base in reference to member 'success'
132 | do {
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'success'
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
136 | return response
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:135:77: error: 'nil' requires a contextual type
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
136 | return response
137 | } catch let error as FetchError {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:138:47: error: cannot infer contextual base in reference to member 'failure'
136 | return response
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'failure'
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:139:67: error: 'nil' requires a contextual type
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
141 | throw error
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:254:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | guard let httpResponse = response as? HTTPURLResponse else {
256 | throw FetchError.invalidResponse
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
[7/14] Compiling SwiftFetch MockFetchClient.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
[8/14] Compiling SwiftFetch LoggingInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:62: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:34: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:39:86: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | public func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
40 | switch result {
41 | case .success(let response):
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
[9/14] Compiling SwiftFetch SwiftFetch.swift
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:13:27: error: cannot find type 'URLRequest' in scope
11 | retryPolicy: FetchClient.RetryPolicy = .init(),
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
| `- error: cannot find type 'URLRequest' in scope
14 | session: URLSession = .shared
15 | ) -> FetchService {
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:14:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | ) -> FetchService {
16 | FetchService(
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/SwiftFetch/SwiftFetch.swift:14:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | ) -> FetchService {
16 | FetchService(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:16:21: error: extra arguments at positions #1, #2, #3, #4, #5, #6, #7 in call
14 | session: URLSession = .shared
15 | ) -> FetchService {
16 | FetchService(
| `- error: extra arguments at positions #1, #2, #3, #4, #5, #6, #7 in call
17 | baseURL: baseURL,
18 | defaultHeaders: defaultHeaders,
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:8:12: note: 'init(client:)' declared here
6 | public var client: FetchClient
7 |
8 | public init(client: FetchClient) {
| `- note: 'init(client:)' declared here
9 | self.client = client
10 | }
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:17:13: error: missing argument for parameter 'client' in call
15 | ) -> FetchService {
16 | FetchService(
17 | baseURL: baseURL,
| `- error: missing argument for parameter 'client' in call
18 | defaultHeaders: defaultHeaders,
19 | defaultQuery: defaultQuery,
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:8:12: note: 'init(client:)' declared here
6 | public var client: FetchClient
7 |
8 | public init(client: FetchClient) {
| `- note: 'init(client:)' declared here
9 | self.client = client
10 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/14] Emitting module SwiftFetch
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:62: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:34: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:39:86: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | public func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
40 | switch result {
41 | case .success(let response):
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:13:27: error: cannot find type 'URLRequest' in scope
11 | retryPolicy: FetchClient.RetryPolicy = .init(),
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
| `- error: cannot find type 'URLRequest' in scope
14 | session: URLSession = .shared
15 | ) -> FetchService {
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:14:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | ) -> FetchService {
16 | FetchService(
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/SwiftFetch/SwiftFetch.swift:14:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | ) -> FetchService {
16 | FetchService(
[11/14] Compiling SwiftFetch FetchInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
[12/14] Compiling SwiftFetch FetchRequest.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
[13/14] Compiling SwiftFetch FetchResponse.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:10:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
9 | public var statusCode: Int {
10 | response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | }
12 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:75: error: cannot infer contextual base in reference to member 'get'
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: cannot infer contextual base in reference to member 'get'
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:104: error: 'nil' requires a contextual type
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: 'nil' requires a contextual type
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
[14/14] Compiling SwiftFetch FetchService.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:10:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
9 | public var statusCode: Int {
10 | response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | }
12 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:75: error: cannot infer contextual base in reference to member 'get'
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: cannot infer contextual base in reference to member 'get'
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:104: error: 'nil' requires a contextual type
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: 'nil' requires a contextual type
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling SwiftFetch HTTPMethod.swift
[3/13] Compiling SwiftFetch FetchInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
[4/13] Compiling SwiftFetch FetchRequest.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
[5/13] Compiling SwiftFetch FetchResponse.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:10:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
9 | public var statusCode: Int {
10 | response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | }
12 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:75: error: cannot infer contextual base in reference to member 'get'
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: cannot infer contextual base in reference to member 'get'
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:104: error: 'nil' requires a contextual type
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: 'nil' requires a contextual type
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
[6/13] Compiling SwiftFetch FetchService.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:10:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
9 | public var statusCode: Int {
10 | response.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | }
12 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:75: error: cannot infer contextual base in reference to member 'get'
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: cannot infer contextual base in reference to member 'get'
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:41:104: error: 'nil' requires a contextual type
39 | decoder: JSONDecoder = JSONDecoder()
40 | ) async throws -> T {
41 | let request = FetchRequest(url: try makeURL(from: path), method: .get, headers: headers, body: nil)
| `- error: 'nil' requires a contextual type
42 | let response = try await client.perform(request, query: query)
43 | return try client.decodeJSON(T.self, from: response, decoder: decoder)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] Emitting module SwiftFetch
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 | contentLength: Int64? = nil,
26 | timeoutInterval: TimeInterval? = nil,
27 | cachePolicy: URLRequest.CachePolicy? = nil
| `- error: cannot find type 'URLRequest' in scope
28 | ) {
29 | self.url = url
/host/spi-builder-workspace/Sources/SwiftFetch/FetchResponse.swift:6:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public struct FetchResponse {
5 | public let data: Data
6 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 |
8 | /// Convenience accessor for `HTTPURLResponse.statusCode`.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchService.swift:16:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | defaultHeaders: [String: String] = [:],
15 | defaultQuery: [String: String] = [:],
16 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:62: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:34: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:39:86: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | public func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
40 | switch result {
41 | case .success(let response):
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:13:27: error: cannot find type 'URLRequest' in scope
11 | retryPolicy: FetchClient.RetryPolicy = .init(),
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
| `- error: cannot find type 'URLRequest' in scope
14 | session: URLSession = .shared
15 | ) -> FetchService {
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:14:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | ) -> FetchService {
16 | FetchService(
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/SwiftFetch/SwiftFetch.swift:14:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | ) -> FetchService {
16 | FetchService(
[8/13] Compiling SwiftFetch FetchClient.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:109:34: error: cannot find 'URLRequest' in scope
107 | let resolvedQuery = mergeQueries(configuration.defaultQuery, query)
108 | let url = try makeURL(from: request.url, query: resolvedQuery)
109 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | urlRequest.httpMethod = request.method.rawValue
111 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:134:47: error: cannot infer contextual base in reference to member 'success'
132 | do {
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'success'
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
136 | return response
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:135:77: error: 'nil' requires a contextual type
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
136 | return response
137 | } catch let error as FetchError {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:138:47: error: cannot infer contextual base in reference to member 'failure'
136 | return response
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'failure'
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:139:67: error: 'nil' requires a contextual type
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
141 | throw error
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:254:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | guard let httpResponse = response as? HTTPURLResponse else {
256 | throw FetchError.invalidResponse
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
[9/13] Compiling SwiftFetch FetchError.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:62:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | public var defaultQuery: [String: String]
61 | /// The underlying session, useful for testing via `URLProtocol` injection.
62 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// Optional retry policy; disabled by default.
64 | public var retryPolicy: RetryPolicy
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/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:68:38: error: cannot find type 'URLRequest' in scope
66 | public var interceptors: [FetchInterceptor]
67 | /// Optional metrics hook invoked with timing and result details.
68 | public var metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
69 |
70 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:74:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
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/SwiftFetch/FetchClient.swift:74:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
72 | defaultHeaders: [String: String] = [:],
73 | defaultQuery: [String: String] = [:],
74 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:252:44: error: cannot find type 'URLRequest' in scope
250 |
251 | /// Executes the HTTP request once and maps errors into `FetchError`.
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
| `- error: cannot find type 'URLRequest' in scope
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:76: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:308:48: error: cannot find type 'URLRequest' in scope
306 | }
307 |
308 | private func applyInterceptors(to request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
309 | var current = request
310 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:318:22: error: cannot find type 'URLRequest' in scope
316 | private func notifyInterceptors(
317 | _ result: Result<FetchResponse, FetchError>,
318 | for request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
319 | ) async {
320 | for interceptor in configuration.interceptors {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:109:34: error: cannot find 'URLRequest' in scope
107 | let resolvedQuery = mergeQueries(configuration.defaultQuery, query)
108 | let url = try makeURL(from: request.url, query: resolvedQuery)
109 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
110 | urlRequest.httpMethod = request.method.rawValue
111 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/SwiftFetch/FetchRequest.swift:17:29: error: cannot find type 'URLRequest' in scope
15 | public var timeoutInterval: TimeInterval?
16 | /// Optional cache policy override applied to the `URLRequest`.
17 | public var cachePolicy: URLRequest.CachePolicy?
| `- error: cannot find type 'URLRequest' in scope
18 |
19 | public init(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:134:47: error: cannot infer contextual base in reference to member 'success'
132 | do {
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'success'
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
136 | return response
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:135:77: error: 'nil' requires a contextual type
133 | let response = try await performOnce(adaptedRequest)
134 | await notifyInterceptors(.success(response), for: adaptedRequest)
135 | configuration.metricsHandler?(adaptedRequest, response, nil, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
136 | return response
137 | } catch let error as FetchError {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:138:47: error: cannot infer contextual base in reference to member 'failure'
136 | return response
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
| `- error: cannot infer contextual base in reference to member 'failure'
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:139:67: error: 'nil' requires a contextual type
137 | } catch let error as FetchError {
138 | await notifyInterceptors(.failure(error), for: adaptedRequest)
139 | configuration.metricsHandler?(adaptedRequest, nil, error, Date().timeIntervalSince(start))
| `- error: 'nil' requires a contextual type
140 | guard shouldRetry(error: error, attempt: attempt, policy: policy) else {
141 | throw error
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:254:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
252 | private func performOnce(_ urlRequest: URLRequest) async throws -> FetchResponse {
253 | do {
254 | let (data, response) = try await configuration.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
255 | guard let httpResponse = response as? HTTPURLResponse else {
256 | throw FetchError.invalidResponse
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:55: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:14:27: error: cannot find type 'URLRequest' in scope
12 |
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
16 | }
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:15:79: error: cannot find type 'URLRequest' in scope
13 | public extension FetchInterceptor {
14 | func adapt(_ request: URLRequest) async throws -> URLRequest { request }
15 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {}
| `- error: cannot find type 'URLRequest' in scope
16 | }
17 |
[10/13] Compiling SwiftFetch SwiftFetch.swift
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:13:27: error: cannot find type 'URLRequest' in scope
11 | retryPolicy: FetchClient.RetryPolicy = .init(),
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
| `- error: cannot find type 'URLRequest' in scope
14 | session: URLSession = .shared
15 | ) -> FetchService {
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:14:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | ) -> FetchService {
16 | FetchService(
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/SwiftFetch/SwiftFetch.swift:14:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 | interceptors: [FetchInterceptor] = [],
13 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil,
14 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 | ) -> FetchService {
16 | FetchService(
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:19:27: error: cannot find type 'URLRequest' in scope
17 | retryPolicy: FetchClient.RetryPolicy = .init(),
18 | interceptors: [FetchInterceptor] = [],
19 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
20 | ) {
21 | self.client = FetchClient(
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:16:21: error: extra arguments at positions #1, #2, #3, #4, #5, #6, #7 in call
14 | session: URLSession = .shared
15 | ) -> FetchService {
16 | FetchService(
| `- error: extra arguments at positions #1, #2, #3, #4, #5, #6, #7 in call
17 | baseURL: baseURL,
18 | defaultHeaders: defaultHeaders,
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:8:12: note: 'init(client:)' declared here
6 | public var client: FetchClient
7 |
8 | public init(client: FetchClient) {
| `- note: 'init(client:)' declared here
9 | self.client = client
10 | }
/host/spi-builder-workspace/Sources/SwiftFetch/SwiftFetch.swift:17:13: error: missing argument for parameter 'client' in call
15 | ) -> FetchService {
16 | FetchService(
17 | baseURL: baseURL,
| `- error: missing argument for parameter 'client' in call
18 | defaultHeaders: defaultHeaders,
19 | defaultQuery: defaultQuery,
/host/spi-builder-workspace/Sources/SwiftFetch/FetchService.swift:8:12: note: 'init(client:)' declared here
6 | public var client: FetchClient
7 |
8 | public init(client: FetchClient) {
| `- note: 'init(client:)' declared here
9 | self.client = client
10 | }
[11/13] Compiling SwiftFetch MultipartFormData.swift
[12/13] Compiling SwiftFetch MockFetchClient.swift
/host/spi-builder-workspace/Sources/SwiftFetch/FetchClient.swift:77:31: error: cannot find type 'URLRequest' in scope
75 | retryPolicy: RetryPolicy = .init(),
76 | interceptors: [FetchInterceptor] = [],
77 | metricsHandler: ((URLRequest, FetchResponse?, FetchError?, TimeInterval) -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
78 | ) {
79 | self.baseURL = baseURL
[13/13] Compiling SwiftFetch LoggingInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:62: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:24:34: error: cannot find type 'URLRequest' in scope
22 | }
23 |
24 | public func adapt(_ request: URLRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 | var summary = "[SwiftFetch] → \(request.httpMethod ?? "GET") \(request.url?.absoluteString ?? "<nil>")"
26 | if let headers = request.allHTTPHeaderFields, !headers.isEmpty {
/host/spi-builder-workspace/Sources/SwiftFetch/LoggingInterceptor.swift:39:86: error: cannot find type 'URLRequest' in scope
37 | }
38 |
39 | public func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
40 | switch result {
41 | case .success(let response):
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:55: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:7:27: error: cannot find type 'URLRequest' in scope
5 | public protocol FetchInterceptor {
6 | /// Give the interceptor a chance to mutate or replace the outbound URLRequest.
7 | func adapt(_ request: URLRequest) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
/host/spi-builder-workspace/Sources/SwiftFetch/FetchInterceptor.swift:10:79: error: cannot find type 'URLRequest' in scope
8 |
9 | /// Observe the final result (success or error) for the given request.
10 | func didReceive(_ result: Result<FetchResponse, FetchError>, for request: URLRequest) async
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
BUILD FAILURE 6.1 linux