Build Information
Failed to build XcodeServer, reference 3.0.0 (c6a7fe), with Swift 6.3 for Wasm on 13 Apr 2026 03:10:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
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
[144/332] Compiling SWCompression 7zFileInfo.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
[145/332] Compiling SWCompression 7zFolder.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
[146/332] Compiling SWCompression 7zHeader.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
[147/332] Compiling Logging LogHandler.swift
[148/332] Compiling Logging Logging.swift
[149/332] Compiling Logging Locks.swift
[150/332] Compiling Logging LogEvent.swift
[152/333] Compiling SWCompression BZip2.swift
/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: 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/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:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:114: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:50:25: error: cannot find type 'URLRequest' in scope
48 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
49 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
50 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
51 | do {
52 | urlRequest = try URLRequest(request: request)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:52:30: error: cannot find 'URLRequest' in scope
50 | let urlRequest: URLRequest
51 | do {
52 | urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
53 | } catch {
54 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:58:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | }
57 |
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
59 | guard error == nil else {
60 | completion(.failure(error!))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[153/333] Compiling SWCompression BZip2Error.swift
/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: 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/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:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:114: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:50:25: error: cannot find type 'URLRequest' in scope
48 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
49 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
50 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
51 | do {
52 | urlRequest = try URLRequest(request: request)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:52:30: error: cannot find 'URLRequest' in scope
50 | let urlRequest: URLRequest
51 | do {
52 | urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
53 | } catch {
54 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:58:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | }
57 |
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
59 | guard error == nil else {
60 | completion(.failure(error!))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[154/333] Compiling SWCompression BurrowsWheeler.swift
/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: 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/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:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:114: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:50:25: error: cannot find type 'URLRequest' in scope
48 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
49 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
50 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
51 | do {
52 | urlRequest = try URLRequest(request: request)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:52:30: error: cannot find 'URLRequest' in scope
50 | let urlRequest: URLRequest
51 | do {
52 | urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
53 | } catch {
54 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:58:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | }
57 |
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
59 | guard error == nil else {
60 | completion(.failure(error!))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[155/333] Compiling SWCompression SuffixArray.swift
/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: 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/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:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:114: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:50:25: error: cannot find type 'URLRequest' in scope
48 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
49 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
50 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
51 | do {
52 | urlRequest = try URLRequest(request: request)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:52:30: error: cannot find 'URLRequest' in scope
50 | let urlRequest: URLRequest
51 | do {
52 | urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
53 | } catch {
54 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:58:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | }
57 |
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
59 | guard error == nil else {
60 | completion(.failure(error!))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[156/333] Compiling SWCompression Archive.swift
/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: 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/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:15:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:15:114: error: 'nil' requires a contextual type
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
16 | }
17 |
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:50:25: error: cannot find type 'URLRequest' in scope
48 | /// Implementation that uses the default `URLSessionDataTask` methods for handling a `Request`/`Response` interaction.
49 | public func performRequest(_ request: Request, completion: @escaping (Result<Response, Error>) -> Void) {
50 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
51 | do {
52 | urlRequest = try URLRequest(request: request)
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:52:30: error: cannot find 'URLRequest' in scope
50 | let urlRequest: URLRequest
51 | do {
52 | urlRequest = try URLRequest(request: request)
| `- error: cannot find 'URLRequest' in scope
53 | } catch {
54 | completion(.failure(error))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Implementation/AbsoluteURLSessionClient.swift:58:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | }
57 |
58 | session.dataTask(with: urlRequest) { data, urlResponse, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
59 | guard error == nil else {
60 | completion(.failure(error!))
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:9:34: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
11 | ) -> URLSessionConfiguration {
/host/spi-builder-workspace/.build/checkouts/SessionPlus/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:10:32: error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
8 | static func cachingElseLoad(
9 | memoryCapacity: URLCache.Capacity = .twentyFiveMB,
10 | diskCapacity: URLCache.Capacity = .twoHundredMB
| `- error: 'Capacity' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
11 | ) -> URLSessionConfiguration {
12 | let configuration: URLSessionConfiguration = .default
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[157/333] Compiling SWCompression 7zPackInfo.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/333] Compiling SWCompression 7zProperty.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/333] Compiling SWCompression 7zStreamInfo.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/333] Compiling SWCompression 7zSubstreamInfo.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!))
[161/333] Compiling SWCompression CompressionMethod+7z.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!))
[162/333] Compiling SWCompression MsbBitReader+7z.swift
[163/333] Compiling SWCompression BZip2+BlockSize.swift
[164/333] Compiling SWCompression BZip2+Compress.swift
[165/333] Compiling SWCompression BZip2+Lengths.swift
[166/333] Compiling SWCompression CheckSums.swift
[167/333] Compiling SWCompression Code.swift
[168/333] Compiling SWCompression CodeLength.swift
[169/333] Compiling SWCompression DecodingTree.swift
[170/333] Compiling SWCompression EncodingTree.swift
[171/333] Compiling SWCompression CompressionAlgorithm.swift
[172/333] Compiling SWCompression CompressionMethod.swift
[173/333] Compiling SWCompression Container.swift
[174/333] Compiling SessionPlus Response.swift
[175/333] Compiling SessionPlus Socket.swift
[176/333] Compiling SessionPlus StatusCode.swift
[177/333] Compiling SessionPlus WebSocket.swift
[185/333] Compiling SWCompression LZ4+Compress.swift
[186/333] Compiling SWCompression LZ4.swift
[187/333] Compiling SWCompression XxHash32.swift
[188/333] Compiling SWCompression LZMA.swift
[189/333] Compiling SWCompression LZMABitTreeDecoder.swift
[190/333] Compiling SWCompression LZMAConstants.swift
[191/333] Compiling ArgumentParser Tree.swift
[192/333] Compiling ArgumentParser CodingKeyValidator.swift
[193/333] Compiling ArgumentParser NonsenseFlagsValidator.swift
[194/333] Compiling ArgumentParser ParsableArgumentsValidation.swift
[195/333] Compiling ArgumentParser PositionalArgumentsValidator.swift
[196/333] Compiling ArgumentParser UniqueNamesValidator.swift
[197/333] Emitting module SWCompression
[201/333] Compiling SWCompression Permissions.swift
[202/333] Compiling SWCompression DataError.swift
[203/333] Compiling SWCompression DecompressionAlgorithm.swift
[223/333] Compiling SWCompression TarWriter.swift
[224/333] Compiling SWCompression ByteReader+XZ.swift
[225/333] Compiling SWCompression Sha256.swift
[226/333] Compiling SWCompression XZArchive.swift
[227/333] Compiling SWCompression XZBlock.swift
[228/333] Compiling SWCompression XZError.swift
[229/333] Compiling SWCompression XZStreamHeader.swift
[230/333] Compiling SWCompression BuiltinExtraFields.swift
[231/333] Compiling SWCompression CompressionMethod+Zip.swift
[232/333] Compiling SWCompression FileSystemType+Zip.swift
[233/333] Compiling SWCompression LittleEndianByteReader+Zip.swift
[234/333] Compiling SWCompression ZipCentralDirectoryEntry.swift
[235/333] Compiling SWCompression LZMA2Error.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[236/333] Compiling SWCompression ContainerEntryType+Tar.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[237/333] Compiling SWCompression Data+Tar.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[238/333] Compiling SWCompression LittleEndianByteReader+Tar.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[239/333] Compiling SWCompression TarContainer.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[240/333] Compiling SWCompression TarCreateError.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[241/333] Compiling SWCompression TarEntry.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[242/333] Compiling SWCompression TarEntryInfo.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[243/333] Compiling SWCompression TarError.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[244/333] Compiling SWCompression TarExtendedHeader.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[245/333] Compiling SWCompression TarHeader.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[246/333] Compiling SWCompression TarParser.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[247/333] Compiling SWCompression TarReader.swift
/host/spi-builder-workspace/.build/checkouts/SWCompression/Sources/TAR/TarReader.swift:66:20: error: cannot find 'autoreleasepool' in scope
64 | */
65 | public mutating func process<T>(_ transform: (TarEntry?) throws -> T) throws -> T {
66 | return try autoreleasepool {
| `- error: cannot find 'autoreleasepool' in scope
67 | let entry = try read()
68 | return try transform(entry)
[261/333] Wrapping AST for Logging for debugging
error: cancelled
BUILD FAILURE 6.3 wasm