Build Information
Failed to build RequestSpec, reference main (f3727f), with Swift 6.1 for Wasm on 16 Nov 2025 00:46:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibrahimcetin/RequestSpec.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ibrahimcetin/RequestSpec
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f3727f1 Update README
Cloned https://github.com/ibrahimcetin/RequestSpec.git
Revision (git rev-parse @):
f3727f191a751f430f4cae64a0c642686955a859
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ibrahimcetin/RequestSpec.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ibrahimcetin/RequestSpec.git
https://github.com/ibrahimcetin/RequestSpec.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "RequestSpec",
"name" : "RequestSpec",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "RequestSpec",
"targets" : [
"RequestSpec"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RequestSpecTests",
"module_type" : "SwiftTarget",
"name" : "RequestSpecTests",
"path" : "Tests/RequestSpecTests",
"sources" : [
"Core/HTTPResponseTests.swift",
"Core/NetworkService/NetworkServiceTests.swift",
"Core/Request/RequestModifiersTests.swift",
"Core/Request/RequestTests.swift",
"Helpers/HTTPResponse+Mock.swift",
"Helpers/Tags.swift",
"Helpers/TestModels.swift",
"Methods/HTTPMethodsTests.swift"
],
"target_dependencies" : [
"RequestSpec"
],
"type" : "test"
},
{
"c99name" : "RequestSpec",
"module_type" : "SwiftTarget",
"name" : "RequestSpec",
"path" : "Sources/RequestSpec",
"product_memberships" : [
"RequestSpec"
],
"sources" : [
"Core/HTTPMethod.swift",
"Core/HTTPResponse.swift",
"Core/NetworkService/NetworkService.swift",
"Core/Request/Request+Modifiers.swift",
"Core/Request/Request.swift",
"Core/Request/RequestComponents.swift",
"Core/Request/RequestSpec.swift",
"DSL/Builders/BodyBuilder.swift",
"DSL/Builders/HeadersBuilder.swift",
"DSL/Builders/QueryItemsBuilder.swift",
"DSL/Headers.swift",
"DSL/QueryItem.swift",
"Methods/Delete.swift",
"Methods/Get.swift",
"Methods/Head.swift",
"Methods/Options.swift",
"Methods/Patch.swift",
"Methods/Post.swift",
"Methods/Put.swift",
"Supporting/Decoder.swift",
"Supporting/Encoder.swift",
"Supporting/Error.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/23] Compiling RequestSpec HTTPMethod.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[4/23] Compiling RequestSpec HTTPResponse.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[5/23] Compiling RequestSpec NetworkService.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[6/25] Compiling RequestSpec Delete.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[7/25] Compiling RequestSpec Get.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[8/25] Compiling RequestSpec Head.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[9/25] Compiling RequestSpec QueryItemsBuilder.swift
[10/25] Compiling RequestSpec Headers.swift
[11/25] Compiling RequestSpec QueryItem.swift
[12/25] Compiling RequestSpec Request+Modifiers.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[13/25] Compiling RequestSpec Request.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/25] Compiling RequestSpec RequestComponents.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[15/25] Compiling RequestSpec Options.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[16/25] Compiling RequestSpec Patch.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[17/25] Compiling RequestSpec Post.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[18/25] Compiling RequestSpec Put.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[19/25] Compiling RequestSpec Decoder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[20/25] Compiling RequestSpec RequestSpec.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[21/25] Compiling RequestSpec BodyBuilder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[22/25] Compiling RequestSpec HeadersBuilder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[23/25] Emitting module RequestSpec
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[24/25] Compiling RequestSpec Encoder.swift
[25/25] Compiling RequestSpec Error.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/22] Compiling RequestSpec Put.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[3/22] Compiling RequestSpec Decoder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/24] Emitting module RequestSpec
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[5/24] Compiling RequestSpec Request+Modifiers.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[6/24] Compiling RequestSpec Request.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[7/24] Compiling RequestSpec RequestComponents.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request+Modifiers.swift:216:39: error: cannot find type 'URLRequest' in scope
214 | ///
215 | /// - Note: This method returns a copy of the request, allowing for method chaining.
216 | public func cachePolicy(_ policy: URLRequest.CachePolicy) -> Self {
| `- error: cannot find type 'URLRequest' in scope
217 | var copy = self
218 | copy.components.cachePolicy = policy
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:125:26: error: cannot find 'URLRequest' in scope
123 |
124 | // Create URLRequest
125 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
126 | urlRequest.httpMethod = method.rawValue
127 | urlRequest.timeoutInterval = components.timeout
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[8/24] Compiling RequestSpec QueryItemsBuilder.swift
[9/24] Compiling RequestSpec Headers.swift
[10/24] Compiling RequestSpec QueryItem.swift
[11/24] Compiling RequestSpec RequestSpec.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[12/24] Compiling RequestSpec BodyBuilder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[13/24] Compiling RequestSpec HeadersBuilder.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestSpec.swift:102:70: error: cannot find type 'URLRequest' in scope
100 | ///
101 | /// - Note: This is a shortcut for ``Request/urlRequest(baseURL:)`` method.
102 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
103 | try self.request.urlRequest(baseURL: baseURL)
104 | }
[14/24] Compiling RequestSpec Delete.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[15/24] Compiling RequestSpec Get.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[16/24] Compiling RequestSpec Head.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[17/24] Compiling RequestSpec Options.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[18/24] Compiling RequestSpec Patch.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[19/24] Compiling RequestSpec Post.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:40:29: error: cannot find type 'URLRequest' in scope
38 | ///
39 | /// Determines how the request interacts with the URL cache system.
40 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
41 |
42 | /// Whether the request can use cellular network access.
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/RequestComponents.swift:63:22: error: cannot find type 'URLRequest' in scope
61 | body: Data? = nil,
62 | timeout: TimeInterval = 60,
63 | cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
64 | allowsCellularAccess: Bool = true
65 | ) {
[20/24] Compiling RequestSpec HTTPMethod.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[21/24] Compiling RequestSpec HTTPResponse.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[22/24] Compiling RequestSpec NetworkService.swift
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:55:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
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/RequestSpec/Core/HTTPResponse.swift:62:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - body: The decoded response body
61 | /// - originalResponse: The original `HTTPURLResponse` from the network request
62 | public init(body: Body, originalResponse: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self.body = body
64 | self.originalResponse = originalResponse
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/RequestSpec/Core/HTTPResponse.swift:55:16: error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
53 | ///
54 | /// Use this property to access additional HTTP response information not exposed by other properties.
55 | public let originalResponse: HTTPURLResponse
| `- error: stored property 'originalResponse' of 'Sendable'-conforming generic struct 'HTTPResponse' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
56 |
57 | /// Creates an HTTP response with the decoded body and original HTTP response.
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:69:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | /// The HTTP status code of the response (e.g., 200, 404, 500).
68 | public var statusCode: Int {
69 | originalResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | }
71 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/HTTPResponse.swift:77:26: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
75 | /// filtering to include only string key-value pairs.
76 | public var headers: [String: String] {
77 | originalResponse.allHeaderFields.reduce(into: [:]) { result, pair in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
78 | if let key = pair.key as? String, let value = pair.value as? String {
79 | result[key] = value
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:91:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | /// A default implementation is provided that uses `URLSession.shared`. Override this
90 | /// to customize session configuration, add delegates, or modify networking behavior.
91 | var session: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// The decoder used to decode response bodies.
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/RequestSpec/Core/NetworkService/NetworkService.swift:127:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | ///
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | URLSession.shared
129 | }
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/RequestSpec/Core/NetworkService/NetworkService.swift:147:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 | /// - Returns: A tuple containing the response data and the `URLResponse`
146 | /// - Throws: Errors from URL construction or network execution
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:128:20: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
126 | /// Override this property in your conforming type to provide a custom session configuration.
127 | public var session: URLSession {
128 | URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
129 | }
130 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/Request/Request.swift:105:70: error: cannot find type 'URLRequest' in scope
103 | /// - Returns: A fully configured `URLRequest` ready to be executed
104 | /// - Throws: ``RequestSpecError/invalidURL`` if the URL cannot be constructed from the components
105 | public func urlRequest(baseURL: URL) throws(RequestSpecError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
106 | // Build URL
107 | guard var urlComponents = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:149:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | func data<R: Request>(for request: R) async throws -> (Data, URLResponse) {
148 | let urlRequest = try request.urlRequest(baseURL: baseURL)
149 | return try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | }
151 |
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:40: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
180 |
181 | do {
/host/spi-builder-workspace/Sources/RequestSpec/Core/NetworkService/NetworkService.swift:179:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | public func send<R: Request>(_ request: R) async throws -> HTTPResponse<R.ResponseBody> {
178 | let (data, response) = try await data(for: request)
179 | let httpURLResponse = response as! HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | do {
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
[23/24] Compiling RequestSpec Encoder.swift
[24/24] Compiling RequestSpec Error.swift
BUILD FAILURE 6.1 wasm