Build Information
Failed to build SwiftQuests, reference develop (18d8aa
), with Swift 6.0 for Linux on 2 Nov 2024 17:34:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ast3r10n/swiftquests.git
Reference: develop
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/Ast3r10n/swiftquests
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 18d8aa0 Merge pull request #35 from Ast3r10n/release/0.4.0
Cloned https://github.com/Ast3r10n/swiftquests.git
Revision (git rev-parse @):
18d8aa018ce6d3a91c55a78f116312018703c5ac
SUCCESS checkout https://github.com/Ast3r10n/swiftquests.git at develop
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/Ast3r10n/swiftquests.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module SwiftQuests
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:34:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// The default `URLSession` used for all `Request`s.
34 | var defaultURLSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
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/SwiftQuests/DefaultRequestConfiguration.swift:40:26: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | /// The URLProtectionSpace generated by the configuration properties.
40 | var protectionSpace: URLProtectionSpace {
| `- error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | URLProtectionSpace(host: baseURL,
42 | port: port,
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' 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 URLProtectionSpace = AnyObject
| `- note: 'URLProtectionSpace' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The configuration assigned to the holder.
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
76 | open var authenticationRealm = "Restricted"
77 |
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
| `- error: cannot find 'NSURLAuthenticationMethodDefault' in scope
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
81 |
82 | public init() {
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
81 |
82 | public init() {
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:41:9: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | /// The URLProtectionSpace generated by the configuration properties.
40 | var protectionSpace: URLProtectionSpace {
41 | URLProtectionSpace(host: baseURL,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | port: port,
43 | protocol: requestProtocol,
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:20:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// A typealias of a successful response.
20 | public typealias Response = (data: Data?, urlResponse: URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// A common interface for `Request`s and `RequestDecorator`s.
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/SwiftQuests/Request.swift:69:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | /// If not provided, the request will use the default credential
68 | /// stored in the `URLCredentialStorage` `shared` instance.
69 | public let credential: URLCredential?
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | /// The request `URLSession`.
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | ///
73 | /// Defaults to a session with a `default` `URLSessionConfiguration` unless otherwise specified.
74 | public var session = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 |
76 | /// The wrapped `URLRequest` object.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:53: error: cannot infer contextual base in reference to member 'ephemeral'
72 | ///
73 | /// Defaults to a session with a `default` `URLSessionConfiguration` unless otherwise specified.
74 | public var session = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
75 |
76 | /// The wrapped `URLRequest` object.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:77:28: error: cannot find type 'URLRequest' in scope
75 |
76 | /// The wrapped `URLRequest` object.
77 | public var urlRequest: URLRequest!
| `- error: cannot find type 'URLRequest' in scope
78 |
79 | /// The request configuration.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:102:35: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | body: Data? = nil,
101 | headers: [String: String]? = nil,
102 | using credential: URLCredential? = nil,
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | onSession session: URLSession? = nil,
104 | configuration: RequestConfiguration? = nil) throws {
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:103:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | headers: [String: String]? = nil,
102 | using credential: URLCredential? = nil,
103 | onSession session: URLSession? = nil,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | configuration: RequestConfiguration? = nil) throws {
105 |
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/SwiftQuests/Request.swift:183:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | /// - result: The response result.
182 | @available(macOS 12, iOS 13, watchOS 8, tvOS 15, *)
183 | public func perform<T: Decodable>(decoding object: T.Type) async throws -> (T, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | let result = try await perform()
185 | guard let data = result.data,
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/SwiftQuests/Request.swift:204:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 | decoding object: T.Type,
203 | _ completionHandler: @escaping (
204 | _ result: Result<(T, URLResponse?), Error>) throws -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 | perform { result in
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/SwiftQuests/Request.swift:231:38: error: cannot find type 'URLRequest' in scope
229 |
230 | // MARK: - Private Methods
231 | private func prepare() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
232 | guard let url = requestComponents.url else {
233 | throw NSError(domain: "Request",
[4/7] Compiling SwiftQuests NetworkError.swift
[5/7] Compiling SwiftQuests DefaultRequestConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:34:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// The default `URLSession` used for all `Request`s.
34 | var defaultURLSession: URLSession { get }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | }
36 |
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/SwiftQuests/DefaultRequestConfiguration.swift:40:26: error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | /// The URLProtectionSpace generated by the configuration properties.
40 | var protectionSpace: URLProtectionSpace {
| `- error: 'URLProtectionSpace' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | URLProtectionSpace(host: baseURL,
42 | port: port,
Foundation.URLProtectionSpace:2:18: note: 'URLProtectionSpace' 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 URLProtectionSpace = AnyObject
| `- note: 'URLProtectionSpace' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The configuration assigned to the holder.
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
76 | open var authenticationRealm = "Restricted"
77 |
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
| `- error: cannot find 'NSURLAuthenticationMethodDefault' in scope
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
81 |
82 | public init() {
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
81 |
82 | public init() {
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:41:9: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 | /// The URLProtectionSpace generated by the configuration properties.
40 | var protectionSpace: URLProtectionSpace {
41 | URLProtectionSpace(host: baseURL,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | port: port,
43 | protocol: requestProtocol,
[6/7] Compiling SwiftQuests RequestConfigurationHolder.swift
/host/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The configuration assigned to the holder.
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:78:37: error: cannot find 'NSURLAuthenticationMethodDefault' in scope
76 | open var authenticationRealm = "Restricted"
77 |
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
| `- error: cannot find 'NSURLAuthenticationMethodDefault' in scope
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
81 |
82 | public init() {
/host/spi-builder-workspace/Sources/SwiftQuests/DefaultRequestConfiguration.swift:80:61: error: cannot infer contextual base in reference to member 'ephemeral'
78 | open var authenticationMethod = NSURLAuthenticationMethodDefault
79 |
80 | open var defaultURLSession = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
81 |
82 | public init() {
[7/7] Compiling SwiftQuests Request.swift
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:20:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// A typealias of a successful response.
20 | public typealias Response = (data: Data?, urlResponse: URLResponse?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// A common interface for `Request`s and `RequestDecorator`s.
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/SwiftQuests/Request.swift:69:28: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | /// If not provided, the request will use the default credential
68 | /// stored in the `URLCredentialStorage` `shared` instance.
69 | public let credential: URLCredential?
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |
71 | /// The request `URLSession`.
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:26: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | ///
73 | /// Defaults to a session with a `default` `URLSessionConfiguration` unless otherwise specified.
74 | public var session = URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
75 |
76 | /// The wrapped `URLRequest` object.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:74:53: error: cannot infer contextual base in reference to member 'ephemeral'
72 | ///
73 | /// Defaults to a session with a `default` `URLSessionConfiguration` unless otherwise specified.
74 | public var session = URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
75 |
76 | /// The wrapped `URLRequest` object.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:77:28: error: cannot find type 'URLRequest' in scope
75 |
76 | /// The wrapped `URLRequest` object.
77 | public var urlRequest: URLRequest!
| `- error: cannot find type 'URLRequest' in scope
78 |
79 | /// The request configuration.
/host/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | /// The configuration assigned to the holder.
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:102:35: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | body: Data? = nil,
101 | headers: [String: String]? = nil,
102 | using credential: URLCredential? = nil,
| `- error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | onSession session: URLSession? = nil,
104 | configuration: RequestConfiguration? = nil) throws {
Foundation.URLCredential:2:18: note: 'URLCredential' 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 URLCredential = AnyObject
| `- note: 'URLCredential' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:103:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | headers: [String: String]? = nil,
102 | using credential: URLCredential? = nil,
103 | onSession session: URLSession? = nil,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | configuration: RequestConfiguration? = nil) throws {
105 |
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/SwiftQuests/Request.swift:183:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | /// - result: The response result.
182 | @available(macOS 12, iOS 13, watchOS 8, tvOS 15, *)
183 | public func perform<T: Decodable>(decoding object: T.Type) async throws -> (T, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | let result = try await perform()
185 | guard let data = result.data,
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/SwiftQuests/Request.swift:204:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 | decoding object: T.Type,
203 | _ completionHandler: @escaping (
204 | _ result: Result<(T, URLResponse?), Error>) throws -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 | perform { result in
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/SwiftQuests/Request.swift:231:38: error: cannot find type 'URLRequest' in scope
229 |
230 | // MARK: - Private Methods
231 | private func prepare() throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
232 | guard let url = requestComponents.url else {
233 | throw NSError(domain: "Request",
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:129:34: error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
127 | open func perform() async throws -> Response {
128 | if let credential = credential {
129 | URLCredentialStorage.shared.set(
| `- error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
130 | credential,
131 | for: configuration.protectionSpace)
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:135:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
133 |
134 | let response = try await session.data(for: urlRequest)
135 | if let statusCode = (response.1 as? HTTPURLResponse)?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
136 | !(200..<300 ~= statusCode) {
137 |
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:158:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 | }
157 |
158 | if let statusCode = (response as? HTTPURLResponse)?.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | !(200..<300 ~= statusCode) {
160 |
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:169:34: error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
167 |
168 | if let credential = credential {
169 | URLCredentialStorage.shared.set(
| `- error: type 'URLCredentialStorage' (aka 'AnyObject') has no member 'shared'
170 | credential,
171 | for: configuration.protectionSpace,
/host/spi-builder-workspace/Sources/SwiftQuests/Request.swift:238:23: error: cannot find 'URLRequest' in scope
236 | }
237 |
238 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
239 | request.httpMethod = method.rawValue
240 |
BUILD FAILURE 6.0 linux