Build Information
Failed to build SwiftPresso, reference 2.0.3 (51394b
), with Swift 6.0 for Linux on 6 Nov 2024 03:32:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/Livsy90/SwiftPresso.git
Reference: 2.0.3
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/Livsy90/SwiftPresso
* tag 2.0.3 -> FETCH_HEAD
HEAD is now at 51394bd Update README.md
Cloned https://github.com/Livsy90/SwiftPresso.git
Revision (git rev-parse @):
51394bd90f619479b9162fbafa71ae96f4595eda
SUCCESS checkout https://github.com/Livsy90/SwiftPresso.git at 2.0.3
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/Livsy90/SwiftPresso.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Fetching https://github.com/Livsy90/SkavokNetworking.git
Fetching https://github.com/Livsy90/ApricotNavigation.git
[1/25] Fetching apricotnavigation
[26/71] Fetching apricotnavigation, skavoknetworking
Fetched https://github.com/Livsy90/ApricotNavigation.git from cache (0.18s)
Fetched https://github.com/Livsy90/SkavokNetworking.git from cache (0.18s)
Computing version for https://github.com/Livsy90/ApricotNavigation.git
Computed https://github.com/Livsy90/ApricotNavigation.git at 1.0.0 (0.40s)
Computing version for https://github.com/Livsy90/SkavokNetworking.git
Computed https://github.com/Livsy90/SkavokNetworking.git at 1.0.2 (0.41s)
Creating working copy for https://github.com/Livsy90/ApricotNavigation.git
Working copy of https://github.com/Livsy90/ApricotNavigation.git resolved at 1.0.0
Creating working copy for https://github.com/Livsy90/SkavokNetworking.git
Working copy of https://github.com/Livsy90/SkavokNetworking.git resolved at 1.0.2
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/15] Compiling ApricotNavigation AnyIdentifiable.swift
/host/spi-builder-workspace/.build/checkouts/ApricotNavigation/Sources/ApricotNavigation/Router/Router.swift:1:8: error: no such module 'SwiftUI'
1 | import SwiftUI
| `- error: no such module 'SwiftUI'
2 | import Observation
3 |
[6/15] Compiling ApricotNavigation Router.swift
/host/spi-builder-workspace/.build/checkouts/ApricotNavigation/Sources/ApricotNavigation/Router/Router.swift:1:8: error: no such module 'SwiftUI'
1 | import SwiftUI
| `- error: no such module 'SwiftUI'
2 | import Observation
3 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/15] Emitting module ApricotNavigation
/host/spi-builder-workspace/.build/checkouts/ApricotNavigation/Sources/ApricotNavigation/Router/Router.swift:1:8: error: no such module 'SwiftUI'
1 | import SwiftUI
| `- error: no such module 'SwiftUI'
2 | import Observation
3 |
[8/15] Compiling SkavokNetworking APIClientDelegate.swift
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | /// - client: The client that sends the request.
12 | /// - request: The request about to be sent. Can be modified
13 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Validates response for the given request.
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:26:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:26:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:41:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ///
40 | /// - returns: Return `true` to retry the request.
41 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// Constructs URL for the given request.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:78:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | false // Disabled by default
80 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:82:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:82:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:83:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
83 | guard (200..<300).contains(response.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | throw APIError.unacceptableStatusCode(response.statusCode)
85 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:84:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 | }
86 | }
[9/15] Compiling SkavokNetworking APIClientProtocol.swift
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionDataDelegate' in scope
4 | func send<T: Decodable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
7 | configure: ((inout URLRequest) throws -> Void)?
8 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:7:28: error: cannot find type 'URLRequest' in scope
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
7 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
8 | ) async throws -> Response<T>
9 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:12:19: error: cannot find type 'URLSessionDataDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
13 | configure: ((inout URLRequest) throws -> Void)?
14 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
13 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
14 | ) async throws -> Response<Void>
15 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:18:19: error: cannot find type 'URLSessionDataDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
19 | configure: ((inout URLRequest) throws -> Void)?
20 | ) async throws -> Response<Data>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:19:28: error: cannot find type 'URLRequest' in scope
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:37:28: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:53:28: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:71:28: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:87:28: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 | }
94 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:13: error: cannot convert return expression of type 'Int' to return type 'Response<T>'
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<T>'
98 | }
99 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
| `- note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
98 | }
99 |
SwiftGlibc.send:1:13: note: 'send' declared here
1 | public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
| `- note: 'send' declared here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:23: error: extraneous argument labels 'delegate:configure:' in call
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
98 | }
99 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:62: error: missing argument for parameter #4 in call
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
98 | }
99 |
SwiftGlibc.send:1:13: note: 'send' declared here
1 | public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
| `- note: 'send' declared here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:24: error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
98 | }
99 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:97:59: error: 'nil' is not compatible with expected argument type 'Int'
95 | public extension ApiClientProtocol {
96 | func send<T: Decodable>(_ request: Request<T>) async throws -> Response<T> {
97 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
98 | }
99 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:13: error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
103 | }
104 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftGlibc'
| `- note: use 'SwiftGlibc.' to reference the global function in module 'SwiftGlibc'
103 | }
104 |
SwiftGlibc.send:1:13: note: 'send' declared here
1 | public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
| `- note: 'send' declared here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:23: error: extraneous argument labels 'delegate:configure:' in call
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
103 | }
104 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:62: error: missing argument for parameter #4 in call
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
103 | }
104 |
SwiftGlibc.send:1:13: note: 'send' declared here
1 | public func send(_ __fd: Int32, _ __buf: UnsafeRawPointer!, _ __n: Int, _ __flags: Int32) -> Int
| `- note: 'send' declared here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:24: error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
103 | }
104 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:102:59: error: 'nil' is not compatible with expected argument type 'Int'
100 | @discardableResult
101 | func send(_ request: Request<Void>) async throws -> Response<Void> {
102 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
103 | }
104 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:107:25: error: extra arguments at positions #3, #4 in call
104 |
105 | @discardableResult
106 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
| `- note: 'upload(for:from:)' declared here
107 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
108 | }
109 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:107:62: error: 'nil' requires a contextual type
105 | @discardableResult
106 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
107 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
108 | }
109 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:107:78: error: 'nil' requires a contextual type
105 | @discardableResult
106 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
107 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
108 | }
109 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/15] Emitting module SkavokNetworking
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:8:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public nonisolated let configuration: Configuration
7 | /// The underlying `URLSession` instance.
8 | public nonisolated let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | private let decoder: JSONDecoder
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | /// - client: The client that sends the request.
12 | /// - request: The request about to be sent. Can be modified
13 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Validates response for the given request.
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:24:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:24:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:26:37: error: cannot find type 'URLSessionDelegate' in scope
24 | public var sessionConfiguration: URLSessionConfiguration = .default
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
27 | /// Overrides the default delegate queue.
28 | public var sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:37:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | delegate: APIClientDelegate? = nil
39 | ) {
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:37:62: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
38 | delegate: APIClientDelegate? = nil
39 | ) {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:84:19: error: cannot find type 'URLSessionDataDelegate' in scope
82 | @discardableResult public func send<T: Decodable>(
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
85 | configure: ((inout URLRequest) throws -> Void)? = nil
86 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:85:28: error: cannot find type 'URLRequest' in scope
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
85 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
86 | ) async throws -> Response<T> {
87 | let response = try await data(for: request, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:103:19: error: cannot find type 'URLSessionDataDelegate' in scope
101 | @discardableResult public func send(
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
104 | configure: ((inout URLRequest) throws -> Void)? = nil
105 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:104:28: error: cannot find type 'URLRequest' in scope
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
104 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
105 | ) async throws -> Response<Void> {
106 | try await data(for: request, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:120:19: error: cannot find type 'URLSessionDataDelegate' in scope
118 | public func data<T>(
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
121 | configure: ((inout URLRequest) throws -> Void)? = nil
122 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:121:28: error: cannot find type 'URLRequest' in scope
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
121 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
122 | ) async throws -> Response<Data> {
123 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:152:19: error: cannot find type 'URLSessionTaskDelegate' in scope
150 | for request: Request<T>,
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
153 | configure: ((inout URLRequest) throws -> Void)? = nil
154 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:153:28: error: cannot find type 'URLRequest' in scope
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
153 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
154 | ) async throws -> Response<T> {
155 | let response = try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:173:19: error: cannot find type 'URLSessionTaskDelegate' in scope
171 | for request: Request<Void>,
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
174 | configure: ((inout URLRequest) throws -> Void)? = nil
175 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
174 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
175 | ) async throws -> Response<Void> {
176 | try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:182:19: error: cannot find type 'URLSessionTaskDelegate' in scope
180 | for request: Request<T>,
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
183 | configure: ((inout URLRequest) throws -> Void)?
184 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:183:28: error: cannot find type 'URLRequest' in scope
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
183 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
184 | ) async throws -> Response<Data> {
185 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:214:19: error: cannot find type 'URLSessionTaskDelegate' in scope
212 | for request: Request<T>,
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
215 | configure: ((inout URLRequest) throws -> Void)? = nil
216 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:215:28: error: cannot find type 'URLRequest' in scope
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
215 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
216 | ) async throws -> Response<T> {
217 | let response = try await _upload(for: request, from: data, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:235:19: error: cannot find type 'URLSessionTaskDelegate' in scope
233 | for request: Request<Void>,
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
236 | configure: ((inout URLRequest) throws -> Void)? = nil
237 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:236:28: error: cannot find type 'URLRequest' in scope
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
236 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
237 | ) async throws -> Response<Void> {
238 | try await _upload(for: request, from: data, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:244:19: error: cannot find type 'URLSessionTaskDelegate' in scope
242 | for request: Request<T>,
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
245 | configure: ((inout URLRequest) throws -> Void)?
246 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:245:28: error: cannot find type 'URLRequest' in scope
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
245 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
246 | ) async throws -> Response<Data> {
247 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:264:76: error: cannot find type 'URLRequest' in scope
262 | // MARK: Making Requests
263 | /// Creates `URLRequest` for the given request.
264 | public func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
265 | try await makeURLRequest(for: request, { _ in })
266 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:270:30: error: cannot find type 'URLRequest' in scope
268 | private func makeURLRequest<T>(
269 | for request: Request<T>,
270 | _ configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
271 | ) async throws -> URLRequest {
272 | let url = try makeURL(for: request)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:271:23: error: cannot find type 'URLRequest' in scope
269 | for request: Request<T>,
270 | _ configure: ((inout URLRequest) throws -> Void)?
271 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
272 | let url = try makeURL(for: request)
273 | var urlRequest = URLRequest(url: url)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionDataDelegate' in scope
4 | func send<T: Decodable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
7 | configure: ((inout URLRequest) throws -> Void)?
8 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:7:28: error: cannot find type 'URLRequest' in scope
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
7 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
8 | ) async throws -> Response<T>
9 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:12:19: error: cannot find type 'URLSessionDataDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
13 | configure: ((inout URLRequest) throws -> Void)?
14 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
13 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
14 | ) async throws -> Response<Void>
15 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:18:19: error: cannot find type 'URLSessionDataDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
19 | configure: ((inout URLRequest) throws -> Void)?
20 | ) async throws -> Response<Data>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:19:28: error: cannot find type 'URLRequest' in scope
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:37:28: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:53:28: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:71:28: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:87:28: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 | }
94 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:65:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | self.configuration = configuration
64 | let delegateQueue = configuration.sessionDelegateQueue ?? .serial()
65 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: dataLoader, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | self.dataLoader.userSessionDelegate = configuration.sessionDelegate
67 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:7:30: error: cannot find type 'URLSessionDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
7 | var userSessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:26:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:26:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:41:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ///
40 | /// - returns: Return `true` to retry the request.
41 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// Constructs URL for the given request.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:78:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | false // Disabled by default
80 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:82:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:82:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:4:35: error: cannot find type 'URLSessionDataDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:4:59: error: cannot find type 'URLSessionDownloadDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:283:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
281 | private final class TaskHandlersDictionary {
282 | private let lock = NSLock()
283 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
284 |
285 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:283:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
281 | private final class TaskHandlersDictionary {
282 | private let lock = NSLock()
283 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
284 |
285 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:14:35: error: cannot find type 'URLSessionTaskDelegate' in scope
12 | }
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:9:56: error: cannot find type 'URLSessionTaskDelegate' in scope
7 | var userSessionDelegate: URLSessionDelegate? {
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:15:35: error: cannot find type 'URLSessionDataDelegate' in scope
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
17 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:10:56: error: cannot find type 'URLSessionDataDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
| `- error: cannot find type 'URLSessionDataDelegate' in scope
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
12 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:16:39: error: cannot find type 'URLSessionDownloadDelegate' in scope
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
17 |
18 | private static let downloadDirectoryURL: URL = {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:11:60: error: cannot find type 'URLSessionDownloadDelegate' in scope
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
12 | }
13 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:24:83: error: cannot find type 'URLSessionDataDelegate' in scope
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:24:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:24:61: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:38:91: error: cannot find type 'URLSessionDownloadDelegate' in scope
36 | }
37 |
38 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
39 | try await withTaskCancellationHandler(operation: {
40 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:38:36: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try await withTaskCancellationHandler(operation: {
40 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:38:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | try await withTaskCancellationHandler(operation: {
40 | try await withUnsafeThrowingContinuation { continuation in
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:52:87: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | }
51 |
52 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | try await withTaskCancellationHandler(operation: {
54 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:52:34: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | try await withTaskCancellationHandler(operation: {
54 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:52:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | }
51 |
52 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | try await withTaskCancellationHandler(operation: {
54 | try await withUnsafeThrowingContinuation { continuation in
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:68:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | // MARK: - URLSessionDelegate
67 |
68 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | userSessionDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
70 | }
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:72:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | }
71 |
72 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | if #available(macOS 11.0, *) {
74 | userSessionDelegate?.urlSessionDidFinishEvents?(forBackgroundURLSession: session)
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:82:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | // MARK: - URLSessionTaskDelegate
81 |
82 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard let handler = handlers[task] else { return assertionFailure() }
84 | handlers[task] = nil
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:82:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | // MARK: - URLSessionTaskDelegate
81 |
82 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard let handler = handlers[task] else { return assertionFailure() }
84 | handlers[task] = nil
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:108:95: error: cannot find type 'URLSessionTaskMetrics' in scope
106 | }
107 |
108 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
109 | let handler = handlers[task]
110 | handler?.metrics = metrics
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:108:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | }
107 |
108 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | let handler = handlers[task]
110 | handler?.metrics = metrics
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:108:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | }
107 |
108 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | let handler = handlers[task]
110 | handler?.metrics = metrics
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:115:140: error: cannot find type 'URLRequest' in scope
113 | }
114 |
115 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
116 | handlers[task]?.delegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
117 | userTaskDelegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:115:182: error: cannot find type 'URLRequest' in scope
113 | }
114 |
115 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
116 | handlers[task]?.delegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
117 | userTaskDelegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:115:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 |
115 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | handlers[task]?.delegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
117 | userTaskDelegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:115:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 |
115 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | handlers[task]?.delegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
117 | userTaskDelegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:115:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 |
115 | func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Void) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | handlers[task]?.delegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
117 | userTaskDelegate?.urlSession?(session, task: task, willPerformHTTPRedirection: response, newRequest: request, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:121:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | }
120 |
121 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
123 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:121:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | }
120 |
121 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
123 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:126:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
124 | }
125 |
126 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
127 | handlers[task]?.delegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
128 | userTaskDelegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:126:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | }
125 |
126 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | handlers[task]?.delegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
128 | userTaskDelegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:126:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | }
125 |
126 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | handlers[task]?.delegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
128 | userTaskDelegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:126:88: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | }
125 |
126 | func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | handlers[task]?.delegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
128 | userTaskDelegate?.urlSession?(session, task: task, didReceive: challenge, completionHandler: completionHandler) ??
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:132:99: error: cannot find type 'URLRequest' in scope
130 | }
131 |
132 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
133 | handlers[task]?.delegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
134 | userTaskDelegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:132:152: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
130 | }
131 |
132 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
133 | handlers[task]?.delegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
134 | userTaskDelegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:132:179: error: cannot find type 'URLRequest' in scope
130 | }
131 |
132 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
133 | handlers[task]?.delegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
134 | userTaskDelegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:132:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
132 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | handlers[task]?.delegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
134 | userTaskDelegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:132:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | }
131 |
132 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | handlers[task]?.delegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
134 | userTaskDelegate?.urlSession?(session, task: task, willBeginDelayedRequest: request, completionHandler: completionHandler) ??
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:139:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
137 |
138 | // MARK: - URLSessionDataDelegate
139 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
140 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
141 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:139:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | // MARK: - URLSessionDataDelegate
139 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
141 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:139:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | // MARK: - URLSessionDataDelegate
139 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
141 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:139:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
137 |
138 | // MARK: - URLSessionDataDelegate
139 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
141 | userDataDelegate?.urlSession?(session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:145:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
147 |
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:145:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
147 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:158:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |
157 |
158 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
160 | userDataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:158:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |
157 |
158 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
160 | userDataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:158:110: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |
157 |
158 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
160 | userDataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:158:159: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
156 |
157 |
158 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Void) {
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
160 | userDataDelegate?.urlSession?(session, dataTask: dataTask, willCacheResponse: proposedResponse, completionHandler: completionHandler) ??
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:165:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 | // MARK: - URLSessionDownloadDelegate
165 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
167 | let downloadsURL = DataLoader.downloadDirectoryURL
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:165:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 | // MARK: - URLSessionDownloadDelegate
165 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
167 | let downloadsURL = DataLoader.downloadDirectoryURL
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:176:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 | }
175 |
176 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
178 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:176:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 | }
175 |
176 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
178 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:181:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 | }
180 |
181 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
183 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:181:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 | }
180 |
181 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
183 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:189:19: error: cannot find type 'URLSessionTaskDelegate' in scope
187 | // MARK: - TaskHandlers
188 | private class TaskHandler {
189 | let delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
190 | var metrics: URLSessionTaskMetrics?
191 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:190:18: error: cannot find type 'URLSessionTaskMetrics' in scope
188 | private class TaskHandler {
189 | let delegate: URLSessionTaskDelegate?
190 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
191 |
192 | init(delegate: URLSessionTaskDelegate?) {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:192:20: error: cannot find type 'URLSessionTaskDelegate' in scope
190 | var metrics: URLSessionTaskMetrics?
191 |
192 | init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
193 | self.delegate = delegate
194 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:200:23: error: cannot find type 'URLSessionDataDelegate' in scope
198 | typealias Completion = (Result<Response<Data>, Error>) -> Void
199 |
200 | let dataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
201 | var completion: Completion?
202 | var data: Data?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:204:29: error: cannot find type 'URLSessionTaskDelegate' in scope
202 | var data: Data?
203 |
204 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
205 | self.dataDelegate = delegate as? URLSessionDataDelegate
206 | super.init(delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:204:14: error: initializer does not override a designated initializer from its superclass
202 | var data: Data?
203 |
204 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: initializer does not override a designated initializer from its superclass
205 | self.dataDelegate = delegate as? URLSessionDataDelegate
206 | super.init(delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:213:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
211 | typealias Completion = (Result<Response<URL>, Error>) -> Void
212 |
213 | let downloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
214 | var completion: Completion?
215 | var location: URL?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:217:20: error: cannot find type 'URLSessionDownloadDelegate' in scope
215 | var location: URL?
216 |
217 | init(delegate: URLSessionDownloadDelegate?) {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
218 | self.downloadDelegate = delegate
219 | super.init(delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:227:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 | struct DataLoaderError: Error {
227 | let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | let error: Error
229 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:285:21: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 | private var handlers = [URLSessionTask: TaskHandler]()
284 |
285 | subscript(task: URLSessionTask) -> TaskHandler? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 | get {
287 | lock.lock()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/APIConfiguration.swift:8:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public var baseURL: URL?
7 | /// By default, `URLSessionConfiguration.default`.
8 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/APIConfiguration.swift:8:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
6 | public var baseURL: URL?
7 | /// By default, `URLSessionConfiguration.default`.
8 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/APIConfiguration.swift:10:33: error: cannot find type 'URLSessionDelegate' in scope
8 | public var sessionConfiguration: URLSessionConfiguration = .default
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
11 | /// Overrides the default delegate queue.
12 | public var sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/APIConfiguration.swift:21:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | public init(
20 | baseURL: URL?,
21 | sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | ) {
23 | self.baseURL = baseURL
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/APIConfiguration.swift:21:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | public init(
20 | baseURL: URL?,
21 | sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
22 | ) {
23 | self.baseURL = baseURL
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:8:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public let value: T
7 | /// Original response.
8 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:14:33: error: cannot find type 'URLRequest' in scope
12 | public let data: Data
13 | /// Original request.
14 | public var originalRequest: URLRequest? { task.originalRequest }
| `- error: cannot find type 'URLRequest' in scope
15 | /// The URL request object currently being handled by the task. May be
16 | /// different from the original request.
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:17:32: error: cannot find type 'URLRequest' in scope
15 | /// The URL request object currently being handled by the task. May be
16 | /// different from the original request.
17 | public var currentRequest: URLRequest? { task.currentRequest }
| `- error: cannot find type 'URLRequest' in scope
18 | /// Completed task.
19 | public let task: URLSessionTask
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:19:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public var currentRequest: URLRequest? { task.currentRequest }
18 | /// Completed task.
19 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Task metrics collected for the request.
21 | public let metrics: URLSessionTaskMetrics?
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:21:25: error: cannot find type 'URLSessionTaskMetrics' in scope
19 | public let task: URLSessionTask
20 | /// Task metrics collected for the request.
21 | public let metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
22 |
23 | /// Initializes the response.
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:24:93: error: cannot find type 'URLSessionTaskMetrics' in scope
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
25 | self.value = value
26 | self.data = data
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:24:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.value = value
26 | self.data = 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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/Models/Response.swift:24:68: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.value = value
26 | self.data = data
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:8:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public nonisolated let configuration: Configuration
7 | /// The underlying `URLSession` instance.
8 | public nonisolated let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | private let decoder: JSONDecoder
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | /// - client: The client that sends the request.
12 | /// - request: The request about to be sent. Can be modified
13 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Validates response for the given request.
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:24:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:24:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:26:37: error: cannot find type 'URLSessionDelegate' in scope
24 | public var sessionConfiguration: URLSessionConfiguration = .default
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
27 | /// Overrides the default delegate queue.
28 | public var sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:37:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | delegate: APIClientDelegate? = nil
39 | ) {
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/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:37:62: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
38 | delegate: APIClientDelegate? = nil
39 | ) {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:84:19: error: cannot find type 'URLSessionDataDelegate' in scope
82 | @discardableResult public func send<T: Decodable>(
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
85 | configure: ((inout URLRequest) throws -> Void)? = nil
86 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:85:28: error: cannot find type 'URLRequest' in scope
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
85 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
86 | ) async throws -> Response<T> {
87 | let response = try await data(for: request, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:103:19: error: cannot find type 'URLSessionDataDelegate' in scope
101 | @discardableResult public func send(
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
104 | configure: ((inout URLRequest) throws -> Void)? = nil
105 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:104:28: error: cannot find type 'URLRequest' in scope
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
104 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
105 | ) async throws -> Response<Void> {
106 | try await data(for: request, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:120:19: error: cannot find type 'URLSessionDataDelegate' in scope
118 | public func data<T>(
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
121 | configure: ((inout URLRequest) throws -> Void)? = nil
122 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:121:28: error: cannot find type 'URLRequest' in scope
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
121 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
122 | ) async throws -> Response<Data> {
123 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:152:19: error: cannot find type 'URLSessionTaskDelegate' in scope
150 | for request: Request<T>,
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
153 | configure: ((inout URLRequest) throws -> Void)? = nil
154 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:153:28: error: cannot find type 'URLRequest' in scope
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
153 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
154 | ) async throws -> Response<T> {
155 | let response = try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:173:19: error: cannot find type 'URLSessionTaskDelegate' in scope
171 | for request: Request<Void>,
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
174 | configure: ((inout URLRequest) throws -> Void)? = nil
175 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
174 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
175 | ) async throws -> Response<Void> {
176 | try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:182:19: error: cannot find type 'URLSessionTaskDelegate' in scope
180 | for request: Request<T>,
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
183 | configure: ((inout URLRequest) throws -> Void)?
184 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:183:28: error: cannot find type 'URLRequest' in scope
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
183 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
184 | ) async throws -> Response<Data> {
185 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:214:19: error: cannot find type 'URLSessionTaskDelegate' in scope
212 | for request: Request<T>,
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
215 | configure: ((inout URLRequest) throws -> Void)? = nil
216 | ) async throws -> Response<T> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:215:28: error: cannot find type 'URLRequest' in scope
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
215 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
216 | ) async throws -> Response<T> {
217 | let response = try await _upload(for: request, from: data, delegate: delegate, configure: configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:235:19: error: cannot find type 'URLSessionTaskDelegate' in scope
233 | for request: Request<Void>,
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
236 | configure: ((inout URLRequest) throws -> Void)? = nil
237 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:236:28: error: cannot find type 'URLRequest' in scope
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
236 | configure: ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
237 | ) async throws -> Response<Void> {
238 | try await _upload(for: request, from: data, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:244:19: error: cannot find type 'URLSessionTaskDelegate' in scope
242 | for request: Request<T>,
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
245 | configure: ((inout URLRequest) throws -> Void)?
246 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:245:28: error: cannot find type 'URLRequest' in scope
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
245 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
246 | ) async throws -> Response<Data> {
247 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:264:76: error: cannot find type 'URLRequest' in scope
262 | // MARK: Making Requests
263 | /// Creates `URLRequest` for the given request.
264 | public func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
265 | try await makeURLRequest(for: request, { _ in })
266 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:270:30: error: cannot find type 'URLRequest' in scope
268 | private func makeURLRequest<T>(
269 | for request: Request<T>,
270 | _ configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
271 | ) async throws -> URLRequest {
272 | let url = try makeURL(for: request)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:271:23: error: cannot find type 'URLRequest' in scope
269 | for request: Request<T>,
270 | _ configure: ((inout URLRequest) throws -> Void)?
271 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
272 | let url = try makeURL(for: request)
273 | var urlRequest = URLRequest(url: url)
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionDataDelegate' in scope
4 | func send<T: Decodable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
7 | configure: ((inout URLRequest) throws -> Void)?
8 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:7:28: error: cannot find type 'URLRequest' in scope
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
7 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
8 | ) async throws -> Response<T>
9 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:12:19: error: cannot find type 'URLSessionDataDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
13 | configure: ((inout URLRequest) throws -> Void)?
14 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
13 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
14 | ) async throws -> Response<Void>
15 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:18:19: error: cannot find type 'URLSessionDataDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
19 | configure: ((inout URLRequest) throws -> Void)?
20 | ) async throws -> Response<Data>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:19:28: error: cannot find type 'URLRequest' in scope
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:37:28: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:53:28: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:71:28: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:87:28: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 | }
94 |
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:65:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | self.configuration = configuration
64 | let delegateQueue = configuration.sessionDelegateQueue ?? .serial()
65 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: dataLoader, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | self.dataLoader.userSessionDelegate = configuration.sessionDelegate
67 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/DataLoader.swift:7:30: error: cannot find type 'URLSessionDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
7 | var userSessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:273:26: error: cannot find 'URLRequest' in scope
271 | ) async throws -> URLRequest {
272 | let url = try makeURL(for: request)
273 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
274 | urlRequest.allHTTPHeaderFields = request.headers
275 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:280:25: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
278 | urlRequest.httpBody = try await encode(body, using: encoder)
279 | if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil &&
280 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
281 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
282 | }
/host/spi-builder-workspace/.build/checkouts/SkavokNetworking/Sources/SkavokNetworking/APIClient.swift:285:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
283 | }
284 | if urlRequest.value(forHTTPHeaderField: "Accept") == nil &&
285 | session.configuration.httpAdditionalHeaders?["Accept"] == nil {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
286 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
287 | }
BUILD FAILURE 6.0 linux