Build Information
Failed to build Hyperspace, reference 5.1.0 (f3bed2
), with Swift 6.2 (beta) for Android on 20 Jun 2025 20:07:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BottleRocketStudios/iOS-Hyperspace.git
Reference: 5.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/BottleRocketStudios/iOS-Hyperspace
* tag 5.1.0 -> FETCH_HEAD
HEAD is now at f3bed24 Merge pull request #173 from BottleRocketStudios/release/5.1.0
Cloned https://github.com/BottleRocketStudios/iOS-Hyperspace.git
Revision (git rev-parse @):
f3bed245fa59a7729c1e46eba67dac5dc059d13e
SUCCESS checkout https://github.com/BottleRocketStudios/iOS-Hyperspace.git at 5.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/BottleRocketStudios/iOS-Hyperspace.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module Hyperspace
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/20] Compiling Hyperspace BackendService.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
73 | } catch let transportFailure as TransportFailure {
74 | guard let quickRecovered = preparedRequest.recoveryTransformer(transportFailure) else {
75 | return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
76 | }
77 |
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
78 | return try await preparedRequest.transform(success: quickRecovered)
79 | } catch {
80 | return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
81 | }
82 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
89 | case .notAttempted: continue
90 | case .failure(let error): throw error
91 | case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
92 | }
93 | }
[5/20] Compiling Hyperspace BackendServicing.swift
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:75:113: error: extra argument 'delegate' in call
73 | } catch let transportFailure as TransportFailure {
74 | guard let quickRecovered = preparedRequest.recoveryTransformer(transportFailure) else {
75 | return try await attemptToRecover(from: transportFailure, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
76 | }
77 |
/host/spi-builder-workspace/Sources/Service/Backend/BackendService.swift:80:98: error: extra argument 'delegate' in call
78 | return try await preparedRequest.transform(success: quickRecovered)
79 | } catch {
80 | return try await attemptToRecover(from: error, executing: preparedRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
81 | }
82 | }
/host/spi-builder-workspace/Sources/Service/Backend/BackendServicing.swift:91:110: error: extra argument 'delegate' in call
89 | case .notAttempted: continue
90 | case .failure(let error): throw error
91 | case .retry(let recoveredRequest): return try await execute(request: recoveredRequest, delegate: delegate)
| `- error: extra argument 'delegate' in call
92 | }
93 | }
[6/20] Compiling Hyperspace NetworkActivityController.swift
[7/20] Compiling Hyperspace PreparationStrategy.swift
[8/20] Compiling Hyperspace JSONCoder+Container.swift
[9/20] Compiling Hyperspace URL+Additions.swift
[10/20] Compiling Hyperspace HTTP.Body+URLForm.swift
[11/20] Compiling Hyperspace Request+Decodable.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
[12/20] Compiling Hyperspace Request+EmptyDecodingStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request+EmptyDecodingStrategy.swift:17:48: error: cannot find type 'URLRequest' in scope
15 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
16 | body: HTTP.Body? = nil,
17 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
18 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
19 | emptyDecodingStrategy: EmptyDecodingStrategy = .default) -> Request {
[13/20] Compiling Hyperspace HTTP.Body.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
212 |
213 | public var statusMessage: String {
214 | return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
215 | }
216 |
[14/20] Compiling Hyperspace HTTP.swift
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:199:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | /// - httpURLResponse: The `HTTPURLResponse` returned by the backend.
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
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/HTTP/HTTP.swift:156:82: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:156:107: error: cannot infer contextual base in reference to member 'init'
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
156 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
157 | body: urlRequest.httpBody)
158 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:200:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
198 | /// - body: The raw `Data` associated with the response, if any was provided.
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:201:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
199 | public init(request: HTTP.Request, httpURLResponse: HTTPURLResponse, body: Data? = nil) {
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
203 | body: body)
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:82: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:202:107: error: cannot infer contextual base in reference to member 'init'
200 | let headers = httpURLResponse.allHeaderFields as? [String: String]
201 | self.init(request: request, code: httpURLResponse.statusCode, url: httpURLResponse.url,
202 | headers: Dictionary(uniqueKeysWithValues: headers?.map { (.init(rawValue: $0.key), .init(rawValue: $0.value)) } ?? []),
| `- error: cannot infer contextual base in reference to member 'init'
203 | body: body)
204 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:214:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
212 |
213 | public var statusMessage: String {
214 | return HTTPURLResponse.localizedString(forStatusCode: code)
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
215 | }
216 |
[15/20] Compiling Hyperspace Request.URLRequestCreationStrategy.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[16/20] Compiling Hyperspace Request.swift
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:16:41: error: cannot find type 'URLRequest' in scope
14 |
15 | // MARK: - Properties
16 | let creationBlock: (Request) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:19:52: error: cannot find type 'URLRequest' in scope
17 |
18 | // MARK: - Interface
19 | func urlRequest(using request: Request) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | return creationBlock(request)
21 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:75: error: cannot find type 'URLRequest' in scope
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: cannot find type 'URLRequest' in scope
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:24:52: error: @escaping attribute only applies to function types
22 |
23 | // MARK: - Presets
24 | public static func custom(_ creationBlock: @escaping (Request) -> URLRequest) -> URLRequestCreationStrategy {
| `- error: @escaping attribute only applies to function types
25 | return URLRequestCreationStrategy(creationBlock: creationBlock)
26 | }
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:30:34: error: cannot find 'URLRequest' in scope
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
| `- error: cannot find 'URLRequest' in scope
31 | urlRequest.httpMethod = request.method.rawValue
32 | urlRequest.httpBody = request.body?.data
/host/spi-builder-workspace/Sources/Request/Request.URLRequestCreationStrategy.swift:29:60: error: cannot find type 'URLRequest' in scope
27 |
28 | public static var `default`: URLRequestCreationStrategy {
29 | return URLRequestCreationStrategy { request -> URLRequest in
| `- error: cannot find type 'URLRequest' in scope
30 | var urlRequest = URLRequest(url: request.url, cachePolicy: request.cachePolicy, timeoutInterval: request.timeout)
31 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/Request/Request.swift:35:29: error: cannot find type 'URLRequest' in scope
33 |
34 | /// The cache policy to use when executing this network request.
35 | public var cachePolicy: URLRequest.CachePolicy
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// The timeout to use when executing this network request.
/host/spi-builder-workspace/Sources/Request/Request.swift:70:30: error: cannot find type 'URLRequest' in scope
68 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
69 | body: HTTP.Body? = nil,
70 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
71 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
72 | successTransformer: @escaping Transformer) {
/host/spi-builder-workspace/Sources/Request/Request.swift:83:28: error: cannot find type 'URLRequest' in scope
81 |
82 | // MARK: - Interface
83 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
84 | return urlRequestCreationStrategy.urlRequest(using: self)
85 | }
/host/spi-builder-workspace/Sources/Request/Request.swift:166:43: error: cannot find type 'URLRequest' in scope
164 | public struct RequestDefaults {
165 |
166 | public static var defaultCachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'URLRequest' in scope
167 | public static var defaultDecoder: JSONDecoder = JSONDecoder()
168 | public static var defaultMaxRecoveryAttempts: UInt = 1
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:47:23: error: cannot find type 'URLRequest' in scope
45 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
46 | body: HTTP.Body? = nil,
47 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
48 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
49 | decoder: JSONDecoder = RequestDefaults.defaultDecoder) {
/host/spi-builder-workspace/Sources/Request/Request+Decodable.swift:58:54: error: cannot find type 'URLRequest' in scope
56 | headers: [HTTP.HeaderKey: HTTP.HeaderValue]? = nil,
57 | body: HTTP.Body? = nil,
58 | cachePolicy: URLRequest.CachePolicy = RequestDefaults.defaultCachePolicy,
| `- error: cannot find type 'URLRequest' in scope
59 | timeout: TimeInterval = RequestDefaults.defaultTimeout,
60 | decoder: JSONDecoder = RequestDefaults.defaultDecoder,
[17/20] Compiling Hyperspace RecoveryStrategy.swift
/host/spi-builder-workspace/Sources/Service/Peripheral/RecoveryStrategy.swift:109:43: error: cannot convert value of type 'Float' to expected argument type 'Double'
107 | // MARK: - BackoffStrategy
108 | public func delay(forRetryCount count: UInt, afterReceiving error: Error) -> TimeInterval {
109 | var delay = TimeInterval(pow(2.0, Float(count))) * 1000
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
110 |
111 | if let jitter {
[18/20] Compiling Hyperspace TransportResult.swift
/host/spi-builder-workspace/Sources/Service/Peripheral/RecoveryStrategy.swift:109:43: error: cannot convert value of type 'Float' to expected argument type 'Double'
107 | // MARK: - BackoffStrategy
108 | public func delay(forRetryCount count: UInt, afterReceiving error: Error) -> TimeInterval {
109 | var delay = TimeInterval(pow(2.0, Float(count))) * 1000
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
110 |
111 | if let jitter {
[19/20] Compiling Hyperspace TransportSession.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
66 |
67 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
68 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
69 | return try response.transportResult.get()
70 | }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
79 |
80 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
81 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
82 | return try response.transportResult.get()
83 | }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
28 | extension URLSession: TransportSession {
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
31 | if #available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *) {
32 | return try await data(for: request, delegate: nil)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[20/20] Compiling Hyperspace Transporting.swift
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:10:50: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | import Foundation
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
12 |
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:11:42: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | public typealias TransportSessionConfiguration = URLSessionConfiguration
11 | public typealias TransportTaskDelegate = URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | /// Represents something that can execute a URLRequest to return a TransportDataTask. Modeled after URLSession to allow for injecting mock sessions into a BackendService.
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:28: error: cannot find type 'URLRequest' in scope
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:21:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | @available(macOS, deprecated: 12.0)
20 | @available(watchOS, deprecated: 8.0)
21 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
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/Service/Transport/TransportSession.swift:24:28: error: cannot find type 'URLRequest' in scope
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
25 | }
26 |
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:24:97: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
24 | func data(for request: URLRequest, delegate: TransportTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/Service/Transport/TransportSession.swift:28:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
26 |
27 | // MARK: - URLSession Conformance to TransportSession
28 | extension URLSession: TransportSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:51:8: error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
49 |
50 | // MARK: - TransportSessionConfiguration Convenience
51 | public extension TransportSessionConfiguration {
| `- error: non-nominal type 'TransportSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
52 |
53 | func set(additionalHTTPHeaders: [HTTP.HeaderKey: HTTP.HeaderValue]?) {
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:23:27: error: cannot find type 'URLRequest' in scope
21 | @available(macOS, deprecated: 12.0)
22 | @available(watchOS, deprecated: 8.0)
23 | func execute(request: URLRequest) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Executes the `URLRequest`, calling the provided completion block when complete.
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:30:27: error: cannot find type 'URLRequest' in scope
28 | /// - request: The `URLRequest` to execute.
29 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
30 | func execute(request: URLRequest, delegate: TransportTaskDelegate?) async throws -> TransportSuccess
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:43:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
41 |
42 | // MARK: - Initializers
43 | public init(session: TransportSession = URLSession.shared, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | self.session = session
45 | self.networkActivityController = networkActivityIndicatable.map { NetworkActivityController(indicator: $0) }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:60:34: error: cannot find type 'URLRequest' in scope
58 | @available(macOS, deprecated: 12.0)
59 | @available(watchOS, deprecated: 8.0)
60 | public func execute(request: URLRequest) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
61 | startTransportTask()
62 | let (data, urlResponse) = try await session.data(for: request)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:73:34: error: cannot find type 'URLRequest' in scope
71 |
72 | @available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
73 | public func execute(request: URLRequest, delegate: TransportTaskDelegate? = nil) async throws -> TransportSuccess {
| `- error: cannot find type 'URLRequest' in scope
74 | startTransportTask()
75 | let (data, urlResponse) = try await session.data(for: request, delegate: delegate)
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:49:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 |
48 | public init(sessionConfiguration: TransportSessionConfiguration, networkActivityIndicatable: NetworkActivityIndicatable? = nil) {
49 | self.init(session: URLSession(configuration: sessionConfiguration), networkActivityIndicatable: networkActivityIndicatable)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 | }
/host/spi-builder-workspace/Sources/HTTP/HTTP.swift:153:33: error: cannot find type 'URLRequest' in scope
151 | /// Initialize a new `Request` given a URL request.
152 | /// - Parameter urlRequest: The `URLRequest` instance used to initiate the request.
153 | public init(urlRequest: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
154 | let headers = urlRequest.allHTTPHeaderFields
155 | self.init(url: urlRequest.url, method: urlRequest.httpMethod.flatMap(HTTP.Method.init),
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:68:65: error: extra argument 'urlRequest' in call
66 |
67 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
68 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
69 | return try response.transportResult.get()
70 | }
/host/spi-builder-workspace/Sources/Service/Transport/Transporting.swift:81:65: error: extra argument 'urlRequest' in call
79 |
80 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else { throw URLError(.badServerResponse) }
81 | let response = HTTP.Response(request: .init(urlRequest: request), httpURLResponse: httpURLResponse, body: data)
| `- error: extra argument 'urlRequest' in call
82 | return try response.transportResult.get()
83 | }
/host/spi-builder-workspace/Sources/Service/Transport/TransportSession.swift:30:35: error: cannot find type 'URLRequest' in scope
28 | extension URLSession: TransportSession {
29 |
30 | public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
31 | if #available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *) {
32 | return try await data(for: request, delegate: nil)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 android