Build Information
Failed to build SessionPlus, reference 2.2.0 (d15b52), with Swift 6.3 for Wasm on 20 Apr 2026 18:52:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/45] Emitting module SessionPlus
/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/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/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/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:17:65: error: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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/Extensions/URLCache+SessionPlus.swift:6:8: error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLSessionConfiguration+SessionPlus.swift:6:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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/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:18:80: error: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[19/49] 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: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/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")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[20/49] 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: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/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")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/49] 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: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/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")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[22/49] 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: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/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")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[23/49] 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: value of type '_' expected to be instance of class or class-constrained type
15 | public var injectedResponses: [InjectedPath : InjectedResponse] = [:]
16 |
17 | public var sessionConfiguration: URLSessionConfiguration = .default {
| `- error: value of type '_' expected to be instance of class or class-constrained type
18 | didSet {
19 | resetSession()
/host/spi-builder-workspace/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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLCache {
| `- error: non-nominal type 'URLCache' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | enum Capacity {
8 | case bytes(Int)
/host/spi-builder-workspace/Sources/SessionPlus/Extensions/URLQueryItem+SessionPlus.swift:6:1: warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
4 | #endif
5 |
6 | extension URLQueryItem: Codable {
| |- warning: extension declares a conformance of imported type 'URLQueryItem' to imported protocols 'Decodable', 'Encodable'; this will not behave correctly if the owners of 'FoundationEssentials' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | enum CodingKeys: String, CodingKey {
8 | case name
/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 [#NominalTypes]
4 | #endif
5 |
6 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// `StatusCode` from the `HTTPURLResponse` interpreted response.
8 | var statusCode: StatusCode {
/host/spi-builder-workspace/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")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[24/49] Compiling SessionPlus Authorization.swift
[25/49] Compiling SessionPlus Client+Decoding.swift
[26/49] Compiling SessionPlus Client.swift
[27/49] Compiling SessionPlus Header.swift
[28/49] Compiling SessionPlus Headers.swift
[29/49] Compiling SessionPlus MIMEType.swift
[30/49] Compiling SessionPlus Method.swift
[31/49] Compiling SessionPlus Request.swift
[32/49] 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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[33/49] 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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[34/49] 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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[35/49] 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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[36/49] 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 [#NominalTypes]
4 | #endif
5 |
6 | public extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
7 | /// A `URLSessionConfiguration` which includes a `URLCache` and has the `.returnCacheDataElseLoad` policy applied.
8 | static func cachingElseLoad(
/host/spi-builder-workspace/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:14:66: error: value of type '_' expected to be instance of class or class-constrained type
12 | public let session: URLSession
13 |
14 | public init(sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
15 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
16 | }
/host/spi-builder-workspace/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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[37/49] 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: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/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/49] 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: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/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/49] 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: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/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/49] 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: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/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/49] 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: value of type '_' expected to be instance of class or class-constrained type
16 | public let session: URLSession
17 |
18 | public init(baseURL: URL, sessionConfiguration: URLSessionConfiguration = .default, sessionDelegate: URLSessionDelegate? = nil) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
19 | self.baseURL = baseURL
20 | self.session = URLSession(configuration: sessionConfiguration, delegate: sessionDelegate, delegateQueue: nil)
/host/spi-builder-workspace/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/49] Compiling SessionPlus Patch.swift
[43/49] Compiling SessionPlus Post.swift
[44/49] Compiling SessionPlus Put.swift
[45/49] Compiling SessionPlus Address.swift
[46/49] Compiling SessionPlus Response.swift
[47/49] Compiling SessionPlus Socket.swift
[48/49] Compiling SessionPlus StatusCode.swift
[49/49] Compiling SessionPlus WebSocket.swift
BUILD FAILURE 6.3 wasm