Build Information
Failed to build SessionPlus, reference 2.2.0 (d15b52
), with Swift 6.1 for Wasm on 28 May 2025 13:15:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
| `- error: cannot find 'NSMutableURLRequest' in scope
85 | request.httpMethod = HTTP.RequestMethod.get.rawValue
86 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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
[19/46] Compiling SessionPlus HTTPInjectable.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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
[20/46] Compiling SessionPlus Authorization.swift
[21/46] Compiling SessionPlus Client+Decoding.swift
[22/46] Compiling SessionPlus Client.swift
[23/46] Compiling SessionPlus Header.swift
[24/46] Compiling SessionPlus Response.swift
[25/46] Compiling SessionPlus Socket.swift
[26/46] Compiling SessionPlus StatusCode.swift
[27/46] Compiling SessionPlus WebSocket.swift
[28/46] Compiling SessionPlus Patch.swift
[29/46] Compiling SessionPlus Post.swift
[30/46] Compiling SessionPlus Put.swift
[31/46] Compiling SessionPlus Address.swift
[32/46] Compiling SessionPlus WebAPI.swift
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = session {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/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/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:34:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:55: error: cannot infer contextual base in reference to member 'default'
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:99: error: 'nil' requires a contextual type
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:42:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
40 |
41 | private func resetSession() {
42 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
44 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:109: error: 'nil' requires a contextual type
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:54:22: error: cannot find type 'URLRequest' in scope
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
54 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
/host/spi-builder-workspace/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/Sources/SessionPlus/Deprecated/WebAPI.swift:56:98: error: 'nil' requires a contextual type
54 | var request: URLRequest
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
57 | } catch {
58 | completion(0, nil, nil, error)
/host/spi-builder-workspace/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:90:31: error: extra argument 'request' in call
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: extra argument 'request' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:90:21: error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
51 | /// The request `content-type` will be set to `image/png`.
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
| `- note: 'execute(method:path:queryItems:pngImageData:filename:completion:)' declared here
54 | var request: URLRequest
55 | do {
:
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[33/46] Compiling SessionPlus URLCache+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = session {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/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/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:34:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:55: error: cannot infer contextual base in reference to member 'default'
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:99: error: 'nil' requires a contextual type
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:42:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
40 |
41 | private func resetSession() {
42 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
44 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:109: error: 'nil' requires a contextual type
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:54:22: error: cannot find type 'URLRequest' in scope
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
54 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
/host/spi-builder-workspace/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/Sources/SessionPlus/Deprecated/WebAPI.swift:56:98: error: 'nil' requires a contextual type
54 | var request: URLRequest
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
57 | } catch {
58 | completion(0, nil, nil, error)
/host/spi-builder-workspace/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:90:31: error: extra argument 'request' in call
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: extra argument 'request' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:90:21: error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
51 | /// The request `content-type` will be set to `image/png`.
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
| `- note: 'execute(method:path:queryItems:pngImageData:filename:completion:)' declared here
54 | var request: URLRequest
55 | do {
:
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[34/46] Compiling SessionPlus URLQueryItem+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = session {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/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/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:34:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:55: error: cannot infer contextual base in reference to member 'default'
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:99: error: 'nil' requires a contextual type
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:42:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
40 |
41 | private func resetSession() {
42 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
44 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:109: error: 'nil' requires a contextual type
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:54:22: error: cannot find type 'URLRequest' in scope
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
54 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
/host/spi-builder-workspace/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/Sources/SessionPlus/Deprecated/WebAPI.swift:56:98: error: 'nil' requires a contextual type
54 | var request: URLRequest
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
57 | } catch {
58 | completion(0, nil, nil, error)
/host/spi-builder-workspace/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:90:31: error: extra argument 'request' in call
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: extra argument 'request' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:90:21: error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
51 | /// The request `content-type` will be set to `image/png`.
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
| `- note: 'execute(method:path:queryItems:pngImageData:filename:completion:)' declared here
54 | var request: URLRequest
55 | do {
:
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[35/46] Compiling SessionPlus URLRequest+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = session {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/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/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:34:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:55: error: cannot infer contextual base in reference to member 'default'
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:99: error: 'nil' requires a contextual type
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:42:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
40 |
41 | private func resetSession() {
42 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
44 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:109: error: 'nil' requires a contextual type
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:54:22: error: cannot find type 'URLRequest' in scope
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
54 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
/host/spi-builder-workspace/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/Sources/SessionPlus/Deprecated/WebAPI.swift:56:98: error: 'nil' requires a contextual type
54 | var request: URLRequest
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
57 | } catch {
58 | completion(0, nil, nil, error)
/host/spi-builder-workspace/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:90:31: error: extra argument 'request' in call
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: extra argument 'request' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:90:21: error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
51 | /// The request `content-type` will be set to `image/png`.
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
| `- note: 'execute(method:path:queryItems:pngImageData:filename:completion:)' declared here
54 | var request: URLRequest
55 | do {
:
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[36/46] Compiling SessionPlus URLResponse+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:11:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | public var baseURL: URL
11 | public var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public var authorization: HTTP.Authorization?
13 | public var jsonEncoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | didSet {
19 | resetSession()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:17:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:23:33: error: cannot find type 'URLSessionDelegate' in scope
21 | }
22 |
23 | public var sessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
24 | didSet {
25 | resetSession()
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:69: error: cannot find type 'URLSessionDelegate' in scope
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: cannot find type 'URLSessionDelegate' in scope
30 | self.baseURL = baseURL
31 | if let session = session {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:29:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | public init(baseURL: URL, session: URLSession? = nil, delegate: URLSessionDelegate? = nil) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | self.baseURL = baseURL
31 | if let session = session {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/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/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:34:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:55: error: cannot infer contextual base in reference to member 'default'
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:34:99: error: 'nil' requires a contextual type
32 | self.session = session
33 | } else {
34 | self.session = URLSession(configuration: .default, delegate: delegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
35 | }
36 | if let delegate = delegate {
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:42:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
40 |
41 | private func resetSession() {
42 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
44 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:43:109: error: 'nil' requires a contextual type
41 | private func resetSession() {
42 | session.invalidateAndCancel()
43 | session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
44 | }
45 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:54:22: error: cannot find type 'URLRequest' in scope
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
54 | var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
/host/spi-builder-workspace/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/Sources/SessionPlus/Deprecated/WebAPI.swift:56:98: error: 'nil' requires a contextual type
54 | var request: URLRequest
55 | do {
56 | request = try self.request(method: method, path: path, queryItems: queryItems, data: nil)
| `- error: 'nil' requires a contextual type
57 | } catch {
58 | completion(0, nil, nil, error)
/host/spi-builder-workspace/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/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/Sources/SessionPlus/Deprecated/WebAPI.swift:90:31: error: extra argument 'request' in call
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: extra argument 'request' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Deprecated/WebAPI.swift:90:21: error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
51 | /// The request `content-type` will be set to `image/png`.
52 | @available(*, deprecated, message: "See `PNGImageFormDataRequest`.")
53 | func execute(method: HTTP.RequestMethod, path: String, queryItems: [URLQueryItem]?, pngImageData: Data, filename: String = "image.png", completion: @escaping HTTP.DataTaskCompletion) {
| `- note: 'execute(method:path:queryItems:pngImageData:filename:completion:)' declared here
54 | var request: URLRequest
55 | do {
:
88 | request.httpBody = data
89 |
90 | self.execute(request: request, completion: completion)
| `- error: missing arguments for parameters 'method', 'path', 'queryItems', 'pngImageData' in call
91 | }
92 | }
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:6:18: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
7 | /// Initialize a `URLRequest` appropriate for JSON apis.
8 | ///
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLRequest+SessionPlus.swift:80:18: error: cannot find type 'URLRequest' in scope
78 | }
79 |
80 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
81 | @available(*, deprecated, renamed: "setValue(_:forHeader:)")
82 | mutating func setValue(_ value: String, forHTTPHeader header: Header) {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLResponse+SessionPlus.swift:6:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:12:41: error: cannot find type 'Capacity' in scope
10 | case gigabytes(Int)
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
| `- error: cannot find type 'Capacity' in scope
13 | public static var twoHundredMB: Capacity = .megabytes(200)
14 |
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:13:41: error: cannot find type 'Capacity' in scope
11 |
12 | public static var twentyFiveMB: Capacity = .megabytes(25)
13 | public static var twoHundredMB: Capacity = .megabytes(200)
| `- error: cannot find type 'Capacity' in scope
14 |
15 | public var bytes: Int {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:38: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLCache+SessionPlus.swift:27:78: error: cannot find type 'Capacity' in scope
25 | }
26 |
27 | convenience init(memoryCapacity: Capacity = .twentyFiveMB, diskCapacity: Capacity = .twoHundredMB) {
| `- error: cannot find type 'Capacity' in scope
28 | #if canImport(FoundationNetworking)
29 | self.init(memoryCapacity: memoryCapacity.bytes, diskCapacity: diskCapacity.bytes, diskPath: "SessionPlusCache")
[37/46] Compiling SessionPlus AnyResponse.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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!))
[38/46] Compiling SessionPlus BaseURLSessionClient.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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!))
[39/46] Compiling SessionPlus Delete.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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!))
[40/46] Compiling SessionPlus Get.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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!))
[41/46] Compiling SessionPlus PNGImageFormDataRequest.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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!))
[42/46] Compiling SessionPlus URLSessionConfiguration+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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
[43/46] Compiling SessionPlus URLSessionDelegate+SessionPlus.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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
[44/46] Compiling SessionPlus AbsoluteURLSessionClient.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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
[45/46] Compiling SessionPlus AbsoluteURLWebSocket.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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
[46/46] Compiling SessionPlus AnyRequest.swift
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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
BUILD FAILURE 6.1 wasm