Build Information
Failed to build XcodeServer, reference main (b47a55), with Swift 6.3 for Wasm on 13 Apr 2026 03:11:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
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/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
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/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = 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/SessionPlus/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:12:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | open class AbsoluteURLSessionClient: Client {
11 |
12 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:92: error: cannot find type 'URLSessionDelegate' in scope
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
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/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[154/348] Emitting module CoreDataPlus
[155/348] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:114: error: 'nil' requires a contextual type
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:55:25: error: cannot find type 'URLRequest' in scope
53 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
54 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:57:30: error: cannot find 'URLRequest' in scope
55 | let urlRequest: URLRequest
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
58 | } catch {
59 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:63:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
61 | }
62 |
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
64 | guard error == nil else {
65 | completion(.failure(error!))
[156/348] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:114: error: 'nil' requires a contextual type
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:55:25: error: cannot find type 'URLRequest' in scope
53 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
54 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:57:30: error: cannot find 'URLRequest' in scope
55 | let urlRequest: URLRequest
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
58 | } catch {
59 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:63:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
61 | }
62 |
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
64 | guard error == nil else {
65 | completion(.failure(error!))
[157/348] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:114: error: 'nil' requires a contextual type
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:55:25: error: cannot find type 'URLRequest' in scope
53 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
54 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:57:30: error: cannot find 'URLRequest' in scope
55 | let urlRequest: URLRequest
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
58 | } catch {
59 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:63:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
61 | }
62 |
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
64 | guard error == nil else {
65 | completion(.failure(error!))
[158/348] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:114: error: 'nil' requires a contextual type
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:55:25: error: cannot find type 'URLRequest' in scope
53 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
54 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:57:30: error: cannot find 'URLRequest' in scope
55 | let urlRequest: URLRequest
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
58 | } catch {
59 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:63:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
61 | }
62 |
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
64 | guard error == nil else {
65 | completion(.failure(error!))
[159/348] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:16:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | open var baseURL: URL
16 | public let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = 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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:106: error: cannot find type 'URLSessionDelegate' in scope
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:53: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
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/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:18:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:20:114: error: 'nil' requires a contextual type
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
21 | }
22 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:55:25: error: cannot find type 'URLRequest' in scope
53 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
54 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:57:30: error: cannot find 'URLRequest' in scope
55 | let urlRequest: URLRequest
56 | do {
57 | urlRequest = try URLRequest(request: request, baseUrl: baseURL)
| `- error: cannot find 'URLRequest' in scope
58 | } catch {
59 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/BaseURLSessionClient.swift:63:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
61 | }
62 |
63 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
64 | guard error == nil else {
65 | completion(.failure(error!))
[160/348] Compiling CoreDataPlus ResourceSuffix.swift
[161/348] Compiling CoreDataPlus StoreURL.swift
[162/348] Compiling CoreDataPlus CatalogContainer.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:42:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | fileprivate lazy var session: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
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/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:44:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | fileprivate lazy var session: URLSession = {
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | configuration.urlCache = self.cache
46 | configuration.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:52:24: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | private let cache: URLCache = URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB, diskPath: "Downloader")
51 | #else
52 | private let cache: URLCache = {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
Foundation.URLCache:2:18: note: 'URLCache' 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 URLCache = AnyObject
| `- note: 'URLCache' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:54:20: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | private let cache: URLCache = {
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | } else {
56 | #if targetEnvironment(macCatalyst)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:83:53: error: cannot find type 'URLRequest' in scope
81 | }
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:112:58: error: cannot find type 'URLRequest' in scope
110 | }
111 |
112 | open func getDataAtPath(_ path: String, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
113 | guard let url = self.urlForPath(path) else {
114 | completion(0, nil, Errors.invalidBaseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:84:23: error: cannot find 'NSMutableURLRequest' in scope
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:25: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:89:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
87 | let urlRequest: URLRequest = request as URLRequest
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
90 | #if canImport(ObjectiveC)
91 | DispatchQueue.main.async(execute: { () -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:107:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |
106 | let httpResponse = response as! HTTPURLResponse
107 | completion(httpResponse.statusCode, data, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | #endif
109 | }) .resume()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The `URLSession` used to create tasks.
16 | var session: URLSession { get set }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:58:23: error: cannot find 'URLRequest' in scope
56 | }
57 |
58 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
59 | request.httpMethod = method.rawValue
60 | if let data = data {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:62:59: error: cannot infer contextual base in reference to member 'contentLength'
60 | if let data = data {
61 | request.httpBody = data
62 | request.setValue("\(data.count)", forHeader: .contentLength)
| `- error: cannot infer contextual base in reference to member 'contentLength'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:64:81: error: cannot infer contextual base in reference to member 'date'
62 | request.setValue("\(data.count)", forHeader: .contentLength)
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
| `- error: cannot infer contextual base in reference to member 'date'
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:27: error: cannot infer contextual base in reference to member 'json'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'json'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:45: error: cannot infer contextual base in reference to member 'accept'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'accept'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:27: error: cannot infer contextual base in reference to member 'json'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'json'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:45: error: cannot infer contextual base in reference to member 'contentType'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'contentType'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:69:69: error: cannot infer contextual base in reference to member 'authorization'
67 |
68 | if let authorization = self.authorization {
69 | request.setValue(authorization.headerValue, forHeader: .authorization)
| `- error: cannot infer contextual base in reference to member 'authorization'
70 | }
71 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:80:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | }
79 |
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:91:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
91 | let task: URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | task = try self.task(request: request, completion: completion)
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:99:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
97 | }
98 |
99 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:53: error: cannot infer contextual base in reference to member 'get'
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'get'
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:100: error: 'nil' requires a contextual type
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:115:53: error: cannot infer contextual base in reference to member 'put'
113 | func put(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
114 | do {
115 | let request = try self.request(method: .put, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'put'
116 | self.execute(request: request, completion: completion)
117 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:125:53: error: cannot infer contextual base in reference to member 'post'
123 | func post(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
124 | do {
125 | let request = try self.request(method: .post, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'post'
126 | self.execute(request: request, completion: completion)
127 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:135:53: error: cannot infer contextual base in reference to member 'patch'
133 | func patch(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
134 | do {
135 | let request = try self.request(method: .patch, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'patch'
136 | self.execute(request: request, completion: completion)
137 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:53: error: cannot infer contextual base in reference to member 'delete'
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'delete'
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:103: error: 'nil' requires a contextual type
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:50: error: extra argument 'request' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: extra argument 'request' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:57: error: missing argument for parameter 'absolutePath' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: missing argument for parameter 'absolutePath' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
:
75 | }
76 |
77 | public init(method: HTTP.RequestMethod = .get, absolutePath: String) {
| `- note: 'init(method:absolutePath:)' declared here
78 | self.method = method
79 | self.absolutePath = absolutePath
[163/348] Compiling CoreDataPlus CoreDataPlusError.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:42:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | fileprivate lazy var session: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
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/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:44:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | fileprivate lazy var session: URLSession = {
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | configuration.urlCache = self.cache
46 | configuration.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:52:24: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | private let cache: URLCache = URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB, diskPath: "Downloader")
51 | #else
52 | private let cache: URLCache = {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
Foundation.URLCache:2:18: note: 'URLCache' 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 URLCache = AnyObject
| `- note: 'URLCache' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:54:20: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | private let cache: URLCache = {
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | } else {
56 | #if targetEnvironment(macCatalyst)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:83:53: error: cannot find type 'URLRequest' in scope
81 | }
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:112:58: error: cannot find type 'URLRequest' in scope
110 | }
111 |
112 | open func getDataAtPath(_ path: String, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
113 | guard let url = self.urlForPath(path) else {
114 | completion(0, nil, Errors.invalidBaseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:84:23: error: cannot find 'NSMutableURLRequest' in scope
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:25: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:89:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
87 | let urlRequest: URLRequest = request as URLRequest
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
90 | #if canImport(ObjectiveC)
91 | DispatchQueue.main.async(execute: { () -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:107:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |
106 | let httpResponse = response as! HTTPURLResponse
107 | completion(httpResponse.statusCode, data, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | #endif
109 | }) .resume()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The `URLSession` used to create tasks.
16 | var session: URLSession { get set }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:58:23: error: cannot find 'URLRequest' in scope
56 | }
57 |
58 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
59 | request.httpMethod = method.rawValue
60 | if let data = data {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:62:59: error: cannot infer contextual base in reference to member 'contentLength'
60 | if let data = data {
61 | request.httpBody = data
62 | request.setValue("\(data.count)", forHeader: .contentLength)
| `- error: cannot infer contextual base in reference to member 'contentLength'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:64:81: error: cannot infer contextual base in reference to member 'date'
62 | request.setValue("\(data.count)", forHeader: .contentLength)
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
| `- error: cannot infer contextual base in reference to member 'date'
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:27: error: cannot infer contextual base in reference to member 'json'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'json'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:45: error: cannot infer contextual base in reference to member 'accept'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'accept'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:27: error: cannot infer contextual base in reference to member 'json'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'json'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:45: error: cannot infer contextual base in reference to member 'contentType'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'contentType'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:69:69: error: cannot infer contextual base in reference to member 'authorization'
67 |
68 | if let authorization = self.authorization {
69 | request.setValue(authorization.headerValue, forHeader: .authorization)
| `- error: cannot infer contextual base in reference to member 'authorization'
70 | }
71 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:80:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | }
79 |
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:91:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
91 | let task: URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | task = try self.task(request: request, completion: completion)
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:99:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
97 | }
98 |
99 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:53: error: cannot infer contextual base in reference to member 'get'
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'get'
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:100: error: 'nil' requires a contextual type
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:115:53: error: cannot infer contextual base in reference to member 'put'
113 | func put(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
114 | do {
115 | let request = try self.request(method: .put, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'put'
116 | self.execute(request: request, completion: completion)
117 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:125:53: error: cannot infer contextual base in reference to member 'post'
123 | func post(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
124 | do {
125 | let request = try self.request(method: .post, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'post'
126 | self.execute(request: request, completion: completion)
127 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:135:53: error: cannot infer contextual base in reference to member 'patch'
133 | func patch(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
134 | do {
135 | let request = try self.request(method: .patch, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'patch'
136 | self.execute(request: request, completion: completion)
137 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:53: error: cannot infer contextual base in reference to member 'delete'
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'delete'
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:103: error: 'nil' requires a contextual type
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:50: error: extra argument 'request' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: extra argument 'request' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:57: error: missing argument for parameter 'absolutePath' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: missing argument for parameter 'absolutePath' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
:
75 | }
76 |
77 | public init(method: HTTP.RequestMethod = .get, absolutePath: String) {
| `- note: 'init(method:absolutePath:)' declared here
78 | self.method = method
79 | self.absolutePath = absolutePath
[164/348] Compiling CoreDataPlus Bundle+Resources.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:42:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | fileprivate lazy var session: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
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/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:44:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | fileprivate lazy var session: URLSession = {
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | configuration.urlCache = self.cache
46 | configuration.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:52:24: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | private let cache: URLCache = URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB, diskPath: "Downloader")
51 | #else
52 | private let cache: URLCache = {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
Foundation.URLCache:2:18: note: 'URLCache' 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 URLCache = AnyObject
| `- note: 'URLCache' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:54:20: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | private let cache: URLCache = {
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | } else {
56 | #if targetEnvironment(macCatalyst)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:83:53: error: cannot find type 'URLRequest' in scope
81 | }
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:112:58: error: cannot find type 'URLRequest' in scope
110 | }
111 |
112 | open func getDataAtPath(_ path: String, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
113 | guard let url = self.urlForPath(path) else {
114 | completion(0, nil, Errors.invalidBaseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:84:23: error: cannot find 'NSMutableURLRequest' in scope
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:25: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:89:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
87 | let urlRequest: URLRequest = request as URLRequest
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
90 | #if canImport(ObjectiveC)
91 | DispatchQueue.main.async(execute: { () -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:107:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |
106 | let httpResponse = response as! HTTPURLResponse
107 | completion(httpResponse.statusCode, data, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | #endif
109 | }) .resume()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The `URLSession` used to create tasks.
16 | var session: URLSession { get set }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:58:23: error: cannot find 'URLRequest' in scope
56 | }
57 |
58 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
59 | request.httpMethod = method.rawValue
60 | if let data = data {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:62:59: error: cannot infer contextual base in reference to member 'contentLength'
60 | if let data = data {
61 | request.httpBody = data
62 | request.setValue("\(data.count)", forHeader: .contentLength)
| `- error: cannot infer contextual base in reference to member 'contentLength'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:64:81: error: cannot infer contextual base in reference to member 'date'
62 | request.setValue("\(data.count)", forHeader: .contentLength)
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
| `- error: cannot infer contextual base in reference to member 'date'
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:27: error: cannot infer contextual base in reference to member 'json'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'json'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:45: error: cannot infer contextual base in reference to member 'accept'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'accept'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:27: error: cannot infer contextual base in reference to member 'json'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'json'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:45: error: cannot infer contextual base in reference to member 'contentType'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'contentType'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:69:69: error: cannot infer contextual base in reference to member 'authorization'
67 |
68 | if let authorization = self.authorization {
69 | request.setValue(authorization.headerValue, forHeader: .authorization)
| `- error: cannot infer contextual base in reference to member 'authorization'
70 | }
71 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:80:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | }
79 |
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:91:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
91 | let task: URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | task = try self.task(request: request, completion: completion)
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:99:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
97 | }
98 |
99 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:53: error: cannot infer contextual base in reference to member 'get'
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'get'
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:100: error: 'nil' requires a contextual type
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:115:53: error: cannot infer contextual base in reference to member 'put'
113 | func put(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
114 | do {
115 | let request = try self.request(method: .put, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'put'
116 | self.execute(request: request, completion: completion)
117 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:125:53: error: cannot infer contextual base in reference to member 'post'
123 | func post(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
124 | do {
125 | let request = try self.request(method: .post, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'post'
126 | self.execute(request: request, completion: completion)
127 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:135:53: error: cannot infer contextual base in reference to member 'patch'
133 | func patch(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
134 | do {
135 | let request = try self.request(method: .patch, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'patch'
136 | self.execute(request: request, completion: completion)
137 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:53: error: cannot infer contextual base in reference to member 'delete'
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'delete'
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:103: error: 'nil' requires a contextual type
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:50: error: extra argument 'request' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: extra argument 'request' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:57: error: missing argument for parameter 'absolutePath' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: missing argument for parameter 'absolutePath' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
:
75 | }
76 |
77 | public init(method: HTTP.RequestMethod = .get, absolutePath: String) {
| `- note: 'init(method:absolutePath:)' declared here
78 | self.method = method
79 | self.absolutePath = absolutePath
[165/348] Compiling CoreDataPlus NSEntityMapping+CoreDataPlus.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:42:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | fileprivate lazy var session: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
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/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:44:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | fileprivate lazy var session: URLSession = {
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | configuration.urlCache = self.cache
46 | configuration.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:52:24: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | private let cache: URLCache = URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB, diskPath: "Downloader")
51 | #else
52 | private let cache: URLCache = {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
Foundation.URLCache:2:18: note: 'URLCache' 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 URLCache = AnyObject
| `- note: 'URLCache' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:54:20: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | private let cache: URLCache = {
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | } else {
56 | #if targetEnvironment(macCatalyst)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:83:53: error: cannot find type 'URLRequest' in scope
81 | }
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:112:58: error: cannot find type 'URLRequest' in scope
110 | }
111 |
112 | open func getDataAtPath(_ path: String, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
113 | guard let url = self.urlForPath(path) else {
114 | completion(0, nil, Errors.invalidBaseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:84:23: error: cannot find 'NSMutableURLRequest' in scope
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:25: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:89:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
87 | let urlRequest: URLRequest = request as URLRequest
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
90 | #if canImport(ObjectiveC)
91 | DispatchQueue.main.async(execute: { () -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:107:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |
106 | let httpResponse = response as! HTTPURLResponse
107 | completion(httpResponse.statusCode, data, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | #endif
109 | }) .resume()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The `URLSession` used to create tasks.
16 | var session: URLSession { get set }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:58:23: error: cannot find 'URLRequest' in scope
56 | }
57 |
58 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
59 | request.httpMethod = method.rawValue
60 | if let data = data {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:62:59: error: cannot infer contextual base in reference to member 'contentLength'
60 | if let data = data {
61 | request.httpBody = data
62 | request.setValue("\(data.count)", forHeader: .contentLength)
| `- error: cannot infer contextual base in reference to member 'contentLength'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:64:81: error: cannot infer contextual base in reference to member 'date'
62 | request.setValue("\(data.count)", forHeader: .contentLength)
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
| `- error: cannot infer contextual base in reference to member 'date'
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:27: error: cannot infer contextual base in reference to member 'json'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'json'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:45: error: cannot infer contextual base in reference to member 'accept'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'accept'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:27: error: cannot infer contextual base in reference to member 'json'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'json'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:45: error: cannot infer contextual base in reference to member 'contentType'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'contentType'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:69:69: error: cannot infer contextual base in reference to member 'authorization'
67 |
68 | if let authorization = self.authorization {
69 | request.setValue(authorization.headerValue, forHeader: .authorization)
| `- error: cannot infer contextual base in reference to member 'authorization'
70 | }
71 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:80:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | }
79 |
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:91:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
91 | let task: URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | task = try self.task(request: request, completion: completion)
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:99:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
97 | }
98 |
99 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:53: error: cannot infer contextual base in reference to member 'get'
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'get'
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:100: error: 'nil' requires a contextual type
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:115:53: error: cannot infer contextual base in reference to member 'put'
113 | func put(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
114 | do {
115 | let request = try self.request(method: .put, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'put'
116 | self.execute(request: request, completion: completion)
117 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:125:53: error: cannot infer contextual base in reference to member 'post'
123 | func post(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
124 | do {
125 | let request = try self.request(method: .post, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'post'
126 | self.execute(request: request, completion: completion)
127 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:135:53: error: cannot infer contextual base in reference to member 'patch'
133 | func patch(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
134 | do {
135 | let request = try self.request(method: .patch, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'patch'
136 | self.execute(request: request, completion: completion)
137 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:53: error: cannot infer contextual base in reference to member 'delete'
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'delete'
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:103: error: 'nil' requires a contextual type
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:50: error: extra argument 'request' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: extra argument 'request' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:57: error: missing argument for parameter 'absolutePath' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: missing argument for parameter 'absolutePath' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
:
75 | }
76 |
77 | public init(method: HTTP.RequestMethod = .get, absolutePath: String) {
| `- note: 'init(method:absolutePath:)' declared here
78 | self.method = method
79 | self.absolutePath = absolutePath
[166/348] Compiling CoreDataPlus NSManagedObject+CoreDataPlus.swift
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:42:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | fileprivate lazy var session: URLSession = {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
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/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:44:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | fileprivate lazy var session: URLSession = {
43 | [unowned self] in
44 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | configuration.urlCache = self.cache
46 | configuration.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:52:24: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | private let cache: URLCache = URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB, diskPath: "Downloader")
51 | #else
52 | private let cache: URLCache = {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
Foundation.URLCache:2:18: note: 'URLCache' 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 URLCache = AnyObject
| `- note: 'URLCache' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:54:20: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
52 | private let cache: URLCache = {
53 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
54 | return URLCache(memoryCapacity: Downloader.twentyFiveMB, diskCapacity: Downloader.twoHundredMB)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
55 | } else {
56 | #if targetEnvironment(macCatalyst)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:83:53: error: cannot find type 'URLRequest' in scope
81 | }
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:112:58: error: cannot find type 'URLRequest' in scope
110 | }
111 |
112 | open func getDataAtPath(_ path: String, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
| `- error: cannot find type 'URLRequest' in scope
113 | guard let url = self.urlForPath(path) else {
114 | completion(0, nil, Errors.invalidBaseURL)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:84:23: error: cannot find 'NSMutableURLRequest' in scope
82 |
83 | open func getDataAtURL(_ url: URL, cachePolicy: URLRequest.CachePolicy, completion: @escaping DataCompletion) {
84 | let request = NSMutableURLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeout)
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:25: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
87 | let urlRequest: URLRequest = request as URLRequest
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:89:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
87 | let urlRequest: URLRequest = request as URLRequest
88 |
89 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) -> Void in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
90 | #if canImport(ObjectiveC)
91 | DispatchQueue.main.async(execute: { () -> Void in
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/Downloader.swift:107:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |
106 | let httpResponse = response as! HTTPURLResponse
107 | completion(httpResponse.statusCode, data, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | #endif
109 | }) .resume()
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | /// The `URLSession` used to create tasks.
16 | var session: URLSession { get set }
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// Auth credentials to provide in the request headers.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:23:112: error: cannot find type 'URLRequest' in scope
21 | /// Constructs the request, setting the method, body data, and headers
22 | /// based on parameters specified.
23 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
24 |
25 | /// Creates a URLSessionDataTask using the URLSession.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:24: error: cannot find type 'URLRequest' in scope
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
28 |
29 | /// Executes the specified request.
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:27:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// Creates a URLSessionDataTask using the URLSession.
26 | /// Allows access to the un-started task, useful for background execution.
27 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Executes the specified request.
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:31:27: error: cannot find type 'URLRequest' in scope
29 | /// Executes the specified request.
30 | /// Gets the task from `task(request:completion:)` and calls `.resume()`.
31 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion)
| `- error: cannot find type 'URLRequest' in scope
32 |
33 | #if swift(>=5.5) && canImport(ObjectiveC)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:48:112: error: cannot find type 'URLRequest' in scope
46 | @available(*, deprecated, message: "See 'Client' for more information.")
47 | public extension HTTPClient {
48 | func request(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, data: Data?) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
49 | let pathURL = baseURL.appendingPathComponent(path)
50 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:24: error: cannot find type 'URLRequest' in scope
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: cannot find type 'URLRequest' in scope
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:75:93: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | }
74 |
75 | func task(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) throws -> URLSessionDataTask {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard request.url != nil else {
77 | throw HTTP.Error.invalidURL
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:90:27: error: cannot find type 'URLRequest' in scope
88 | }
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
91 | let task: URLSessionDataTask
92 | do {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:58:23: error: cannot find 'URLRequest' in scope
56 | }
57 |
58 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
59 | request.httpMethod = method.rawValue
60 | if let data = data {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:62:59: error: cannot infer contextual base in reference to member 'contentLength'
60 | if let data = data {
61 | request.httpBody = data
62 | request.setValue("\(data.count)", forHeader: .contentLength)
| `- error: cannot infer contextual base in reference to member 'contentLength'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:64:81: error: cannot infer contextual base in reference to member 'date'
62 | request.setValue("\(data.count)", forHeader: .contentLength)
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
| `- error: cannot infer contextual base in reference to member 'date'
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:27: error: cannot infer contextual base in reference to member 'json'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'json'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:65:45: error: cannot infer contextual base in reference to member 'accept'
63 | }
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
| `- error: cannot infer contextual base in reference to member 'accept'
66 | request.setValue(.json, forHeader: .contentType)
67 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:27: error: cannot infer contextual base in reference to member 'json'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'json'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:66:45: error: cannot infer contextual base in reference to member 'contentType'
64 | request.setValue(Header.dateFormatter.string(from: Date()), forHeader: .date)
65 | request.setValue(.json, forHeader: .accept)
66 | request.setValue(.json, forHeader: .contentType)
| `- error: cannot infer contextual base in reference to member 'contentType'
67 |
68 | if let authorization = self.authorization {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:69:69: error: cannot infer contextual base in reference to member 'authorization'
67 |
68 | if let authorization = self.authorization {
69 | request.setValue(authorization.headerValue, forHeader: .authorization)
| `- error: cannot infer contextual base in reference to member 'authorization'
70 | }
71 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:80:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
78 | }
79 |
80 | return session.dataTask(with: request) { (responseData, urlResponse, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
81 | guard let httpResponse = urlResponse as? HTTPURLResponse else {
82 | completion(0, nil, responseData, error ?? HTTP.Error.invalidResponse)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:86:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
84 | }
85 |
86 | completion(httpResponse.statusCode, httpResponse.allHeaderFields, responseData, error)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
87 | }
88 | }
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:91:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
91 | let task: URLSessionDataTask
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | task = try self.task(request: request, completion: completion)
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/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:99:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
97 | }
98 |
99 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
100 | }
101 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:53: error: cannot infer contextual base in reference to member 'get'
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'get'
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:105:100: error: 'nil' requires a contextual type
103 | func get(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
104 | do {
105 | let request = try self.request(method: .get, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
106 | self.execute(request: request, completion: completion)
107 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:115:53: error: cannot infer contextual base in reference to member 'put'
113 | func put(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
114 | do {
115 | let request = try self.request(method: .put, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'put'
116 | self.execute(request: request, completion: completion)
117 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:125:53: error: cannot infer contextual base in reference to member 'post'
123 | func post(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
124 | do {
125 | let request = try self.request(method: .post, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'post'
126 | self.execute(request: request, completion: completion)
127 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:135:53: error: cannot infer contextual base in reference to member 'patch'
133 | func patch(_ data: Data?, path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
134 | do {
135 | let request = try self.request(method: .patch, path: path, queryItems: queryItems, data: data)
| `- error: cannot infer contextual base in reference to member 'patch'
136 | self.execute(request: request, completion: completion)
137 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:53: error: cannot infer contextual base in reference to member 'delete'
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: cannot infer contextual base in reference to member 'delete'
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPClient.swift:145:103: error: 'nil' requires a contextual type
143 | func delete(_ path: String, queryItems: [URLQueryItem]? = nil, completion: @escaping HTTP.DataTaskCompletion) {
144 | do {
145 | let request = try self.request(method: .delete, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
146 | self.execute(request: request, completion: completion)
147 | } catch {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:14:27: error: cannot find type 'URLRequest' in scope
12 | @available(*, deprecated, message: "See 'Client' for more information.")
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
| `- error: cannot find type 'URLRequest' in scope
15 | let injectedPath = InjectedPath(request: request)
16 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:71:26: error: cannot find type 'URLRequest' in scope
69 | var absolutePath: String
70 |
71 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
72 | let method = HTTP.RequestMethod(stringLiteral: request.httpMethod ?? HTTP.RequestMethod.get.rawValue)
73 | let path = request.url?.absoluteString ?? ""
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:50: error: extra argument 'request' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: extra argument 'request' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Deprecated/HTTPInjectable.swift:15:57: error: missing argument for parameter 'absolutePath' in call
13 | public extension HTTPInjectable where Self: HTTPClient {
14 | func execute(request: URLRequest, completion: @escaping HTTP.DataTaskCompletion) {
15 | let injectedPath = InjectedPath(request: request)
| `- error: missing argument for parameter 'absolutePath' in call
16 |
17 | guard let injectedResponse = injectedResponses[injectedPath] else {
:
75 | }
76 |
77 | public init(method: HTTP.RequestMethod = .get, absolutePath: String) {
| `- note: 'init(method:absolutePath:)' declared here
78 | self.method = method
79 | self.absolutePath = absolutePath
[167/348] Compiling CoreDataPlus Migrator.swift
[168/348] Compiling CoreDataPlus ModelCatalog.swift
[176/348] Compiling CoreDataPlus NSAttributeDescription+CoreDataPlus.swift
[177/348] Compiling CoreDataPlus NSEntityDescription+CoreDataPlus.swift
[181/348] Compiling CoreDataPlus NSRelationshipDescription+CoreDataPlus.swift
[182/348] Compiling CoreDataPlus FileExtension.swift
[184/349] Compiling SessionPlus Response.swift
[185/349] Compiling SessionPlus Socket.swift
[186/349] Compiling SessionPlus StatusCode.swift
[187/349] Compiling SessionPlus WebSocket.swift
[190/349] Compiling ArgumentParser ParentCommand.swift
[191/349] Compiling ArgumentParser AsyncParsableCommand.swift
[191/351] Wrapping AST for CoreDataPlus for debugging
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
[201/370] Emitting module XcodeServerModel_1_1_0
error: cancelled
error: cancelled
BUILD FAILURE 6.3 wasm