Build Information
Failed to build TMDb, reference main (a3f131), with Swift 6.2 for Wasm on 5 Oct 2026 08:12:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
46 | self.noCacheURLSession = URLSession(configuration: configuration)
47 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
46 | self.noCacheURLSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 | }
48 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:69: error: extra argument 'using' in call
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: extra argument 'using' in call
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:74:26: error: cannot find 'URLRequest' in scope
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
74 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
75 | urlRequest.httpMethod = httpRequest.method.rawValue
76 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:85:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
83 | // read even if some cache is reachable, while the cache-free
84 | // session stops the *write*.
85 | urlRequest.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
86 | }
87 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:96:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | }
95 |
96 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
96 | let statusCode = httpURLResponse.statusCode
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
99 | if let key = key as? String, let value = value as? String {
100 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:171:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
172 | }
173 | #endif
[29/207] Compiling TMDb AppendToResponseOption.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | init(urlSession: URLSession) {
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:39:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let noCacheURLSession: URLSession
38 |
39 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | self.urlSession = urlSession
41 |
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// the shared one.
64 | ///
65 | func session(for request: HTTPRequest) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | request.isUserSpecific ? noCacheURLSession : urlSession
67 | }
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:17: error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
38 |
39 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:73:70: error: cannot find type 'URLRequest' in scope
71 | extension URLSessionHTTPClientAdapter {
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var urlRequest = URLRequest(url: httpRequest.url)
75 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:91:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
93 | return HTTPResponse(statusCode: -1, data: nil)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:168:27: error: cannot find type 'URLRequest' in scope
166 | #else
167 | private func perform(
168 | _ urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:169:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | private func perform(
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:170:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | try await urlSession.data(for: urlRequest)
172 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:42:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
40 | self.urlSession = urlSession
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:43:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
43 | ?? URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
46 | self.noCacheURLSession = URLSession(configuration: configuration)
47 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
46 | self.noCacheURLSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 | }
48 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:69: error: extra argument 'using' in call
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: extra argument 'using' in call
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:74:26: error: cannot find 'URLRequest' in scope
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
74 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
75 | urlRequest.httpMethod = httpRequest.method.rawValue
76 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:85:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
83 | // read even if some cache is reachable, while the cache-free
84 | // session stops the *write*.
85 | urlRequest.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
86 | }
87 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:96:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | }
95 |
96 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
96 | let statusCode = httpURLResponse.statusCode
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
99 | if let key = key as? String, let value = value as? String {
100 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:171:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
172 | }
173 | #endif
[30/207] Compiling TMDb AuthenticatedSession.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | init(urlSession: URLSession) {
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:39:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let noCacheURLSession: URLSession
38 |
39 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | self.urlSession = urlSession
41 |
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// the shared one.
64 | ///
65 | func session(for request: HTTPRequest) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | request.isUserSpecific ? noCacheURLSession : urlSession
67 | }
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:17: error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
38 |
39 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:73:70: error: cannot find type 'URLRequest' in scope
71 | extension URLSessionHTTPClientAdapter {
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var urlRequest = URLRequest(url: httpRequest.url)
75 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:91:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
93 | return HTTPResponse(statusCode: -1, data: nil)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:168:27: error: cannot find type 'URLRequest' in scope
166 | #else
167 | private func perform(
168 | _ urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:169:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | private func perform(
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:170:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | try await urlSession.data(for: urlRequest)
172 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:42:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
40 | self.urlSession = urlSession
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:43:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
43 | ?? URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
46 | self.noCacheURLSession = URLSession(configuration: configuration)
47 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
46 | self.noCacheURLSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 | }
48 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:69: error: extra argument 'using' in call
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: extra argument 'using' in call
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:74:26: error: cannot find 'URLRequest' in scope
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
74 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
75 | urlRequest.httpMethod = httpRequest.method.rawValue
76 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:85:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
83 | // read even if some cache is reachable, while the cache-free
84 | // session stops the *write*.
85 | urlRequest.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
86 | }
87 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:96:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | }
95 |
96 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
96 | let statusCode = httpURLResponse.statusCode
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
99 | if let key = key as? String, let value = value as? String {
100 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:171:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
172 | }
173 | #endif
[31/207] Compiling TMDb BelongsToCollection.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | init(urlSession: URLSession) {
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:39:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let noCacheURLSession: URLSession
38 |
39 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | self.urlSession = urlSession
41 |
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// the shared one.
64 | ///
65 | func session(for request: HTTPRequest) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | request.isUserSpecific ? noCacheURLSession : urlSession
67 | }
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:17: error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
38 |
39 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:73:70: error: cannot find type 'URLRequest' in scope
71 | extension URLSessionHTTPClientAdapter {
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var urlRequest = URLRequest(url: httpRequest.url)
75 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:91:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
93 | return HTTPResponse(statusCode: -1, data: nil)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:168:27: error: cannot find type 'URLRequest' in scope
166 | #else
167 | private func perform(
168 | _ urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:169:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | private func perform(
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:170:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | try await urlSession.data(for: urlRequest)
172 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:42:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
40 | self.urlSession = urlSession
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:43:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
43 | ?? URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
46 | self.noCacheURLSession = URLSession(configuration: configuration)
47 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
46 | self.noCacheURLSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 | }
48 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:69: error: extra argument 'using' in call
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: extra argument 'using' in call
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:74:26: error: cannot find 'URLRequest' in scope
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
74 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
75 | urlRequest.httpMethod = httpRequest.method.rawValue
76 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:85:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
83 | // read even if some cache is reachable, while the cache-free
84 | // session stops the *write*.
85 | urlRequest.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
86 | }
87 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:96:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | }
95 |
96 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
96 | let statusCode = httpURLResponse.statusCode
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
99 | if let key = key as? String, let value = value as? String {
100 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:171:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
172 | }
173 | #endif
[32/207] Compiling TMDb CacheConfiguration.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |
39 | init(urlSession: URLSession) {
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:39:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | private let noCacheURLSession: URLSession
38 |
39 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | self.urlSession = urlSession
41 |
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | /// the shared one.
64 | ///
65 | func session(for request: HTTPRequest) -> URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | request.isUserSpecific ? noCacheURLSession : urlSession
67 | }
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:16:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
14 | final class URLSessionHTTPClientAdapter: HTTPClient, Sendable {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
17 |
18 | /// A second session for user-specific requests, with **no** `URLCache`.
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:37:17: error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
35 | /// so mutating it would unhook the `URLCache` from the primary session too,
36 | /// disabling caching everywhere.
37 | private let noCacheURLSession: URLSession
| `- error: stored property 'noCacheURLSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'URLSession' (aka 'AnyObject')
38 |
39 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:73:70: error: cannot find type 'URLRequest' in scope
71 | extension URLSessionHTTPClientAdapter {
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var urlRequest = URLRequest(url: httpRequest.url)
75 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:91:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
93 | return HTTPResponse(statusCode: -1, data: nil)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:168:27: error: cannot find type 'URLRequest' in scope
166 | #else
167 | private func perform(
168 | _ urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:169:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | private func perform(
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
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/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:170:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 | _ urlRequest: URLRequest,
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | try await urlSession.data(for: urlRequest)
172 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:42:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
40 | self.urlSession = urlSession
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:43:40: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
41 |
42 | let configuration = urlSession.configuration.copy() as? URLSessionConfiguration
43 | ?? URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:45: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
43 | ?? URLSessionConfiguration.default
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
46 | self.noCacheURLSession = URLSession(configuration: configuration)
47 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
44 | configuration.urlCache = nil
45 | configuration.requestCachePolicy = .reloadIgnoringLocalCacheData
46 | self.noCacheURLSession = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
47 | }
48 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:69: error: extra argument 'using' in call
50 | let urlRequest = Self.urlRequest(from: request)
51 |
52 | let (data, response) = try await perform(urlRequest, using: session(for: request))
| `- error: extra argument 'using' in call
53 |
54 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:74:26: error: cannot find 'URLRequest' in scope
72 |
73 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
74 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
75 | urlRequest.httpMethod = httpRequest.method.rawValue
76 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:85:39: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
83 | // read even if some cache is reachable, while the cache-free
84 | // session stops the *write*.
85 | urlRequest.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
86 | }
87 |
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:92:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
92 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | return HTTPResponse(statusCode: -1, data: nil)
94 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:96:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 | }
95 |
96 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
96 | let statusCode = httpURLResponse.statusCode
97 | var headers = [String: String]()
98 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
99 | if let key = key as? String, let value = value as? String {
100 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:171:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
169 | using urlSession: URLSession
170 | ) async throws -> (Data, URLResponse) {
171 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
172 | }
173 | #endif
[33/232] Compiling TMDb CreditPerson.swift
[34/232] Compiling TMDb CreditTVSeries.swift
[35/232] Compiling TMDb CreditType.swift
[36/232] Compiling TMDb CrewJob.swift
[37/232] Compiling TMDb CrewMember.swift
[38/232] Compiling TMDb Department.swift
[39/232] Compiling TMDb DroppedItemCount.swift
[40/232] Compiling TMDb ExternalLink.swift
[41/232] Compiling TMDb ExternalSource.swift
[42/232] Compiling TMDb FacebookLink.swift
[43/232] Compiling TMDb FindResults.swift
[44/232] Compiling TMDb Gender.swift
[45/232] Compiling TMDb Genre.swift
[46/232] Compiling TMDb GenreList.swift
[47/232] Compiling TMDb GuestSession.swift
[48/232] Compiling TMDb IMDbLink.swift
[49/232] Compiling TMDb ImageCollection.swift
[50/232] Compiling TMDb ImageMetadata.swift
[51/232] Compiling TMDb ImageProviding+Conformances.swift
[52/232] Compiling TMDb ImageProviding.swift
[53/232] Compiling TMDb ImageSize.swift
[54/232] Compiling TMDb ImagesConfiguration+URLs.swift
[55/232] Compiling TMDb ImagesConfiguration.swift
[56/232] Compiling TMDb InstagramLink.swift
[57/232] Compiling TMDb Keyword.swift
[58/256] Compiling TMDb KeywordCollection.swift
[59/256] Compiling TMDb KeywordPageableList.swift
[60/256] Compiling TMDb Language.swift
[61/256] Compiling TMDb Media.swift
[62/256] Compiling TMDb MediaList.swift
[63/256] Compiling TMDb MediaListItem.swift
[64/256] Compiling TMDb MediaListItemStatus.swift
[65/256] Compiling TMDb MediaListSummary.swift
[66/256] Compiling TMDb MediaListSummaryPageableList.swift
[67/256] Compiling TMDb MediaPageableList.swift
[68/256] Compiling TMDb Movie.swift
[69/256] Compiling TMDb MovieAppendOption.swift
[70/256] Compiling TMDb MovieCastCredit.swift
[71/256] Compiling TMDb MovieCrewCredit.swift
[72/256] Compiling TMDb MovieDetailsResponse.swift
[73/256] Compiling TMDb MovieExternalLinksCollection.swift
[74/256] Compiling TMDb MovieListItem.swift
[75/256] Compiling TMDb MoviePageableList.swift
[76/256] Compiling TMDb MovieReleaseDatesByCountry.swift
[77/256] Compiling TMDb MovieReleaseDatesResult.swift
[78/256] Compiling TMDb MovieReleaseType.swift
[79/256] Compiling TMDb Network.swift
[80/256] Compiling TMDb NetworkAlternativeName.swift
[81/256] Compiling TMDb NetworkLogo.swift
[82/256] Compiling TMDb PageableListResult.swift
[83/280] Compiling TMDb PagedAsyncSequence.swift
[84/280] Compiling TMDb PagedPagesAsyncSequence.swift
[85/280] Compiling TMDb Person.swift
[86/280] Compiling TMDb PersonAppendOption.swift
[87/280] Compiling TMDb PersonCombinedCredits.swift
[88/280] Compiling TMDb PersonDetailsResponse.swift
[89/280] Compiling TMDb PersonExternalLinksCollection.swift
[90/280] Compiling TMDb PersonImageCollection.swift
[91/280] Compiling TMDb PersonListItem.swift
[92/280] Compiling TMDb PersonMovieCredits.swift
[93/280] Compiling TMDb PersonPageableList.swift
[94/280] Compiling TMDb PersonTVSeriesCredits.swift
[95/280] Compiling TMDb PrefetchPolicy.swift
[96/280] Compiling TMDb ProductionCompany.swift
[97/280] Compiling TMDb ProductionCountry.swift
[98/280] Compiling TMDb ReleaseDate.swift
[99/280] Compiling TMDb ReleaseType.swift
[100/280] Compiling TMDb RetryConfiguration.swift
[101/280] Compiling TMDb RetryableErrors.swift
[102/280] Compiling TMDb Review.swift
[103/280] Compiling TMDb ReviewAuthorDetails.swift
[104/280] Compiling TMDb ReviewPageableList.swift
[105/280] Compiling TMDb ScreenedTheatricallyCollection.swift
[106/280] Compiling TMDb ScreenedTheatricallyResult.swift
[107/280] Compiling TMDb Session.swift
[108/280] Compiling TMDb TVEpisodeImageCollection.swift
[109/280] Compiling TMDb TVEpisodePageableList.swift
[110/280] Compiling TMDb TVSeason.swift
[111/280] Compiling TMDb TVSeasonAggregateCredits.swift
[112/280] Compiling TMDb TVSeasonAppendOption.swift
[113/280] Compiling TMDb TVSeasonDetailsResponse.swift
[114/280] Compiling TMDb TVSeasonExternalLinksCollection.swift
[115/280] Compiling TMDb TVSeasonImageCollection.swift
[116/280] Compiling TMDb TVSeries.swift
[117/280] Compiling TMDb TVSeriesAggregateCredits.swift
[118/280] Compiling TMDb TVSeriesAppendOption.swift
[119/280] Compiling TMDb TVSeriesCastCredit.swift
[120/280] Compiling TMDb TVSeriesCrewCredit.swift
[121/280] Compiling TMDb TVSeriesDetailsResponse.swift
[122/280] Compiling TMDb TVSeriesExternalLinksCollection.swift
[123/280] Compiling TMDb TVSeriesListItem.swift
[124/280] Compiling TMDb TVSeriesPageableList.swift
[125/280] Compiling TMDb TVSeriesStatus.swift
[126/280] Compiling TMDb TVSeriesType.swift
[127/280] Compiling TMDb TaggedImage.swift
[128/280] Compiling TMDb TaggedImageMedia.swift
[129/280] Compiling TMDb TaggedImagePageableList.swift
[130/280] Compiling TMDb TikTokLink.swift
[131/280] Compiling TMDb Timezone.swift
[132/280] Compiling TMDb Token.swift
[133/280] Compiling TMDb Show.swift
[134/280] Compiling TMDb ShowCastCredit.swift
[135/280] Compiling TMDb ShowCredits.swift
[136/280] Compiling TMDb ShowCrewCredit.swift
[137/280] Compiling TMDb ShowType.swift
[138/280] Compiling TMDb ShowWatchProvider.swift
[139/280] Compiling TMDb ShowWatchProviderResult.swift
[140/280] Compiling TMDb ShowWatchProvidersByCountry.swift
[141/280] Compiling TMDb SocialLinkIDs.swift
[142/280] Compiling TMDb SpokenLanguage.swift
[143/280] Compiling TMDb Status.swift
[144/280] Compiling TMDb SuccessResult.swift
[145/280] Compiling TMDb TMDbError+TMDbAPIError.swift
[146/280] Compiling TMDb TMDbError.swift
[147/280] Compiling TMDb TMDbErrorContext.swift
[148/280] Compiling TMDb TMDbStatusCode+RawRepresentable.swift
[149/280] Compiling TMDb TMDbStatusCode.swift
[150/280] Compiling TMDb TMDbStatusResponse.swift
[151/280] Compiling TMDb TVEpisode.swift
[152/280] Compiling TMDb TVEpisodeAirDate.swift
[153/280] Compiling TMDb TVEpisodeAppendOption.swift
[154/280] Compiling TMDb TVEpisodeDetailsResponse.swift
[155/280] Compiling TMDb TVEpisodeExternalLinksCollection.swift
[156/280] Compiling TMDb TVEpisodeGroup.swift
[157/280] Compiling TMDb TVEpisodeGroupCollection.swift
[158/280] Compiling TMDb CastMember.swift
[159/280] Compiling TMDb CastRole.swift
[160/280] Compiling TMDb Certification.swift
[161/280] Compiling TMDb Certifications.swift
[162/280] Compiling TMDb Change.swift
[163/280] Compiling TMDb Collection.swift
[164/280] Compiling TMDb CollectionImageCollection.swift
[165/280] Compiling TMDb CollectionListItem.swift
[166/280] Compiling TMDb CollectionPageableList.swift
[167/280] Compiling TMDb CollectionTranslation.swift
[168/280] Compiling TMDb CollectionTranslationData.swift
[169/280] Compiling TMDb Company.swift
[170/280] Compiling TMDb CompanyAlternativeName.swift
[171/280] Compiling TMDb CompanyAlternativeNameCollection.swift
[172/280] Compiling TMDb CompanyImageCollection.swift
[173/280] Compiling TMDb CompanyPageableList.swift
[174/280] Compiling TMDb ContentRating.swift
[175/280] Compiling TMDb ContentRatingResult.swift
[176/280] Compiling TMDb Country.swift
[177/280] Compiling TMDb CreateListResult.swift
[178/280] Compiling TMDb Creator.swift
[179/280] Compiling TMDb Credential.swift
[180/280] Compiling TMDb Credit.swift
[181/280] Compiling TMDb CreditMedia.swift
[182/280] Compiling TMDb CreditMovie.swift
[183/376] Compiling TMDb Translation.swift
[184/376] Compiling TMDb TrendingItem.swift
[185/376] Compiling TMDb TrendingPageableList.swift
[186/376] Compiling TMDb TwitterLink.swift
[187/376] Compiling TMDb UnknownMediaTypeError.swift
[188/376] Compiling TMDb V4AccessToken.swift
[189/376] Compiling TMDb V4ClearListResult.swift
[190/376] Compiling TMDb V4CreateListResult.swift
[191/376] Compiling TMDb V4List.swift
[192/376] Compiling TMDb V4ListAttributes.swift
[193/376] Compiling TMDb V4ListCreator.swift
[194/376] Compiling TMDb V4ListItem.swift
[195/376] Compiling TMDb V4ListItemComment.swift
[196/376] Compiling TMDb V4ListItemStatusResult.swift
[197/376] Compiling TMDb V4ListItemsResult.swift
[198/376] Compiling TMDb V4ListMediaItem.swift
[199/376] Compiling TMDb V4ListSortBy.swift
[200/376] Compiling TMDb V4ListSummary.swift
[201/376] Compiling TMDb V4RequestToken.swift
[202/376] Compiling TMDb VideoCollection.swift
[203/376] Compiling TMDb VideoMetadata.swift
[204/376] Compiling TMDb VideoSize.swift
[205/376] Compiling TMDb VideoType.swift
[206/376] Compiling TMDb WatchMonetizationType.swift
[207/376] Compiling TMDb WatchProvider.swift
[208/400] Compiling TMDb CreateGuestSessionRequest.swift
[209/400] Compiling TMDb CreateRequestTokenRequest.swift
[210/400] Compiling TMDb CreateSessionFromV4AccessTokenRequest.swift
[211/400] Compiling TMDb CreateSessionRequest.swift
[212/400] Compiling TMDb DeleteSessionRequest.swift
[213/400] Compiling TMDb ValidateKeyRequest.swift
[214/400] Compiling TMDb ValidateTokenWithLoginRequest.swift
[215/400] Compiling TMDb TMDbAuthenticationService.swift
[216/400] Compiling TMDb AuthenticateURLBuilder.swift
[217/400] Compiling TMDb CertificationService.swift
[218/400] Compiling TMDb MovieCertificationsRequest.swift
[219/400] Compiling TMDb TVSeriesCertificationsRequest.swift
[220/400] Compiling TMDb TMDbCertificationService.swift
[221/400] Compiling TMDb ChangesService+Conveniences.swift
[222/400] Compiling TMDb ChangesService+Pagination.swift
[223/400] Compiling TMDb ChangesService.swift
[224/400] Compiling TMDb TMDbChangesService.swift
[225/400] Compiling TMDb CollectionService.swift
[226/400] Compiling TMDb CollectionImagesRequest.swift
[227/400] Compiling TMDb CollectionRequest.swift
[228/400] Compiling TMDb CollectionTranslationsRequest.swift
[229/400] Compiling TMDb TMDbCollectionService.swift
[230/400] Compiling TMDb CompanyService.swift
[231/400] Compiling TMDb CompanyAlternativeNamesRequest.swift
[232/424] Compiling TMDb WatchProviderRegions.swift
[233/424] Compiling TMDb WatchProviderResult.swift
[234/424] Compiling TMDb WikiDataLink.swift
[235/424] Compiling TMDb AccountService+AuthenticatedSession.swift
[236/424] Compiling TMDb AccountService+Conveniences.swift
[237/424] Compiling TMDb AccountService+Defaults.swift
[238/424] Compiling TMDb AccountService+Pagination.swift
[239/424] Compiling TMDb AccountService.swift
[240/424] Compiling TMDb AccountListsRequest.swift
[241/424] Compiling TMDb AccountRequest.swift
[242/424] Compiling TMDb AddFavouriteRequest.swift
[243/424] Compiling TMDb AddToWatchlistRequest.swift
[244/424] Compiling TMDb FavouriteMoviesRequest.swift
[245/424] Compiling TMDb FavouriteTVSeriesRequest.swift
[246/424] Compiling TMDb MovieWatchlistRequest.swift
[247/424] Compiling TMDb RatedMoviesRequest.swift
[248/424] Compiling TMDb RatedTVEpisodesRequest.swift
[249/424] Compiling TMDb RatedTVSeriesRequest.swift
[250/424] Compiling TMDb TVSeriesWatchlistRequest.swift
[251/424] Compiling TMDb FavouriteSort.swift
[252/424] Compiling TMDb RatedSort.swift
[253/424] Compiling TMDb WatchlistSort.swift
[254/424] Compiling TMDb TMDbAccountService.swift
[255/424] Compiling TMDb AuthenticateURLBuilding.swift
[256/424] Compiling TMDb AuthenticationService.swift
[257/448] Compiling TMDb MovieChangesListRequest.swift
[258/448] Compiling TMDb MovieChangesRequest.swift
[259/448] Compiling TMDb MovieCreditsRequest.swift
[260/448] Compiling TMDb MovieDetailsAppendRequest.swift
[261/448] Compiling TMDb MovieExternalLinksRequest.swift
[262/448] Compiling TMDb MovieImagesRequest.swift
[263/448] Compiling TMDb MovieKeywordsRequest.swift
[264/448] Compiling TMDb MovieListsRequest.swift
[265/448] Compiling TMDb MovieRecommendationsRequest.swift
[266/448] Compiling TMDb MovieReleaseDatesRequest.swift
[267/448] Compiling TMDb MovieRequest.swift
[268/448] Compiling TMDb MovieReviewsRequest.swift
[269/448] Compiling TMDb MovieTranslationsRequest.swift
[270/448] Compiling TMDb MovieVideosRequest.swift
[271/448] Compiling TMDb MovieWatchProvidersRequest.swift
[272/448] Compiling TMDb MoviesNowPlayingRequest.swift
[273/448] Compiling TMDb PopularMoviesRequest.swift
[274/448] Compiling TMDb SimilarMoviesRequest.swift
[275/448] Compiling TMDb TopRatedMoviesRequest.swift
[276/448] Compiling TMDb UpcomingMoviesRequest.swift
[277/448] Compiling TMDb TMDbMovieService.swift
[278/448] Compiling TMDb NetworkService.swift
[279/448] Compiling TMDb NetworkAlternativeNamesRequest.swift
[280/448] Compiling TMDb NetworkImagesRequest.swift
[281/448] Compiling TMDb NetworkRequest.swift
[282/448] Compiling TMDb TMDbNetworkService.swift
[283/448] Compiling TMDb PersonService+Conveniences.swift
[284/448] Compiling TMDb PersonService+Defaults.swift
[285/448] Compiling TMDb PersonService+Pagination.swift
[286/448] Compiling TMDb PersonService.swift
[287/448] Compiling TMDb LatestPersonRequest.swift
[288/448] Compiling TMDb PersonChangesListRequest.swift
[289/448] Compiling TMDb PersonChangesRequest.swift
[290/448] Compiling TMDb PersonCombinedCreditsRequest.swift
[291/448] Compiling TMDb PersonDetailsAppendRequest.swift
[292/448] Compiling TMDb PersonExternalLinksRequest.swift
[293/448] Compiling TMDb PersonImagesRequest.swift
[294/448] Compiling TMDb PersonMovieCreditsRequest.swift
[295/448] Compiling TMDb PersonRequest.swift
[296/448] Compiling TMDb PersonTVSeriesCreditsRequest.swift
[297/448] Compiling TMDb PersonTaggedImagesRequest.swift
[298/448] Compiling TMDb PersonTranslationsRequest.swift
[299/448] Compiling TMDb PopularPeopleRequest.swift
[300/448] Compiling TMDb TMDbPersonService+Changes.swift
[301/448] Compiling TMDb TMDbPersonService+Media.swift
[302/448] Compiling TMDb TMDbPersonService+Translations.swift
[303/448] Compiling TMDb TMDbPersonService.swift
[304/448] Compiling TMDb ReviewRequest.swift
[305/496] Compiling TMDb MovieSort.swift
[306/496] Compiling TMDb TVSeriesSort.swift
[307/496] Compiling TMDb TMDbDiscoverService.swift
[308/496] Compiling TMDb FindService.swift
[309/496] Compiling TMDb FindByIDRequest.swift
[310/496] Compiling TMDb TMDbFindService.swift
[311/496] Compiling TMDb GenreService.swift
[312/496] Compiling TMDb MovieGenresRequest.swift
[313/496] Compiling TMDb TVSeriesGenresRequest.swift
[314/496] Compiling TMDb TMDbGenreService.swift
[315/496] Compiling TMDb GuestSessionService+Defaults.swift
[316/496] Compiling TMDb GuestSessionService+Pagination.swift
[317/496] Compiling TMDb GuestSessionService.swift
[318/496] Compiling TMDb GuestSessionRatedMoviesRequest.swift
[319/496] Compiling TMDb GuestSessionRatedTVEpisodesRequest.swift
[320/496] Compiling TMDb GuestSessionRatedTVSeriesRequest.swift
[321/496] Compiling TMDb TMDbGuestSessionService.swift
[322/496] Compiling TMDb APIConfigurationStore.swift
[323/496] Compiling TMDb ImageService+URLs.swift
[324/496] Compiling TMDb ImageService.swift
[325/496] Compiling TMDb ResumeOnce.swift
[326/496] Compiling TMDb TMDbImageService.swift
[327/496] Compiling TMDb KeywordService+Pagination.swift
[328/496] Compiling TMDb KeywordService.swift
[329/520] Compiling TMDb KeywordMoviesRequest.swift
[330/520] Compiling TMDb KeywordRequest.swift
[331/520] Compiling TMDb TMDbKeywordService.swift
[332/520] Compiling TMDb ListService+Pagination.swift
[333/520] Compiling TMDb ListService.swift
[334/520] Compiling TMDb AddMediaRequest.swift
[335/520] Compiling TMDb ClearListRequest.swift
[336/520] Compiling TMDb CreateListRequest.swift
[337/520] Compiling TMDb DeleteListRequest.swift
[338/520] Compiling TMDb ListItemStatusRequest.swift
[339/520] Compiling TMDb ListRequest.swift
[340/520] Compiling TMDb RemoveMediaRequest.swift
[341/520] Compiling TMDb TMDbListService.swift
[342/520] Compiling TMDb MovieImageFilter.swift
[343/520] Compiling TMDb MovieVideoFilter.swift
[344/520] Compiling TMDb MovieKeywordsResponse.swift
[345/520] Compiling TMDb MovieService+Conveniences.swift
[346/520] Compiling TMDb MovieService+Pagination.swift
[347/520] Compiling TMDb MovieService.swift
[348/520] Compiling TMDb AddMovieRatingRequest.swift
[349/520] Compiling TMDb DeleteMovieRatingRequest.swift
[350/520] Compiling TMDb LatestMovieRequest.swift
[351/520] Compiling TMDb MovieAccountStatesRequest.swift
[352/520] Compiling TMDb MovieAlternativeTitlesRequest.swift
[353/544] Compiling TMDb ReviewService.swift
[354/544] Compiling TMDb TMDbReviewService.swift
[355/544] Compiling TMDb AllMediaSearchFilter.swift
[356/544] Compiling TMDb MovieSearchFilter.swift
[357/544] Compiling TMDb PersonSearchFilter.swift
[358/544] Compiling TMDb TVSeriesSearchFilter.swift
[359/544] Compiling TMDb CollectionSearchRequest.swift
[360/544] Compiling TMDb CompanySearchRequest.swift
[361/544] Compiling TMDb KeywordSearchRequest.swift
[362/544] Compiling TMDb MovieSearchRequest.swift
[363/544] Compiling TMDb MultiSearchRequest.swift
[364/544] Compiling TMDb PersonSearchRequest.swift
[365/544] Compiling TMDb TVSeriesSearchRequest.swift
[366/544] Compiling TMDb SearchService+Conveniences.swift
[367/544] Compiling TMDb SearchService+Pagination.swift
[368/544] Compiling TMDb SearchService.swift
[369/544] Compiling TMDb TMDbSearchService.swift
[370/544] Compiling TMDb TVEpisodeGroupRequest.swift
[371/544] Compiling TMDb TMDbTVEpisodeGroupService.swift
[372/544] Compiling TMDb TVEpisodeGroupService.swift
[373/544] Compiling TMDb TVEpisodeImageFilter.swift
[374/544] Compiling TMDb TVEpisodeVideoFilter.swift
[375/544] Compiling TMDb TVEpisodeAccountStatesRequest.swift
[376/544] Compiling TMDb TVEpisodeAddRatingRequest.swift
[377/544] Compiling TMDb CompanyDetailsRequest.swift
[378/544] Compiling TMDb CompanyImagesRequest.swift
[379/544] Compiling TMDb TMDbCompanyService.swift
[380/544] Compiling TMDb ConfigurationService.swift
[381/544] Compiling TMDb APIConfigurationRequest.swift
[382/544] Compiling TMDb ConfigurationPrimaryTranslationsRequest.swift
[383/544] Compiling TMDb ConfigurationTimezonesRequest.swift
[384/544] Compiling TMDb CountriesConfigurationRequest.swift
[385/544] Compiling TMDb JobsConfigurationRequest.swift
[386/544] Compiling TMDb LanguaguesConfigurationRequest.swift
[387/544] Compiling TMDb TMDbConfigurationService.swift
[388/544] Compiling TMDb CreditService.swift
[389/544] Compiling TMDb CreditRequest.swift
[390/544] Compiling TMDb TMDbCreditService.swift
[391/544] Compiling TMDb DiscoverService+Conveniences.swift
[392/544] Compiling TMDb DiscoverService+Pagination.swift
[393/544] Compiling TMDb DiscoverService.swift
[394/544] Compiling TMDb DiscoverFilterJoin.swift
[395/544] Compiling TMDb DiscoverMovieFilter+Fluent.swift
[396/544] Compiling TMDb DiscoverMovieFilter.swift
[397/544] Compiling TMDb DiscoverTVSeriesFilter+Fluent.swift
[398/544] Compiling TMDb DiscoverTVSeriesFilter.swift
[399/544] Compiling TMDb DiscoverMoviesRequest.swift
[400/544] Compiling TMDb DiscoverTVSeriesRequest.swift
[401/544] Compiling TMDb StringCodingKey.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[402/544] Compiling TMDb URL+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[403/544] Compiling TMDb APICredential.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[404/544] Compiling TMDb CacheHTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[405/544] Compiling TMDb EndpointPathRedactor.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[406/544] Compiling TMDb Error+Cancellation.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[407/544] Compiling TMDb HTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[408/544] Compiling TMDb HTTPRequest+StateChanging.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[409/544] Compiling TMDb HTTPRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[410/544] Compiling TMDb HTTPResponse.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[411/544] Compiling TMDb NetworkErrorRedactor.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[412/544] Compiling TMDb RetryHTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[413/544] Compiling TMDb Serialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[414/544] Compiling TMDb TMDbAuthJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[415/544] Compiling TMDb TMDbJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[416/544] Compiling TMDb TMDbV4JSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[417/544] Compiling TMDb TMDbAPIClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[418/544] Compiling TMDb TMDbAPIError+HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[419/544] Compiling TMDb TMDbAPIError.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[420/544] Compiling TMDb URLPathSegmentValidator.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[421/544] Compiling TMDb TMDbClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[422/544] Compiling TMDb TMDbConfiguration.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[423/544] Compiling TMDb TMDbFactory.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[424/544] Compiling TMDb TMDbServiceDependencies.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:115:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
113 | }
114 |
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:117:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
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/TMDb/TMDbFactory.swift:131:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 |
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
133 | }
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/TMDb/TMDbFactory.swift:118:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
116 |
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
120 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:119:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
117 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
118 | let configuration = URLSessionConfiguration.default
119 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
120 | configuration.timeoutIntervalForRequest = 30
121 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:132:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
130 | #if !canImport(FoundationNetworking)
131 | private static func urlCache() -> URLCache {
132 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
133 | }
134 | #endif
[425/544] Compiling TMDb TVEpisodeChangesRequest.swift
[426/544] Compiling TMDb TVEpisodeCreditsRequest.swift
[427/544] Compiling TMDb TVEpisodeDeleteRatingRequest.swift
[428/544] Compiling TMDb TVEpisodeDetailsAppendRequest.swift
[429/544] Compiling TMDb TVEpisodeExternalLinksRequest.swift
[430/544] Compiling TMDb TVEpisodeImagesRequest.swift
[431/544] Compiling TMDb TVEpisodeRequest.swift
[432/544] Compiling TMDb TVEpisodeTranslationsRequest.swift
[433/544] Compiling TMDb TVEpisodeVideosRequest.swift
[434/544] Compiling TMDb TMDbTVEpisodeService+Account.swift
[435/544] Compiling TMDb TMDbTVEpisodeService+Changes.swift
[436/544] Compiling TMDb TMDbTVEpisodeService+Metadata.swift
[437/544] Compiling TMDb TMDbTVEpisodeService.swift
[438/544] Compiling TMDb TVEpisodeService+Conveniences.swift
[439/544] Compiling TMDb TVEpisodeService.swift
[440/544] Compiling TMDb TVSeasonImageFilter.swift
[441/544] Compiling TMDb TVSeasonVideoFilter.swift
[442/544] Compiling TMDb TVSeasonAccountStatesRequest.swift
[443/544] Compiling TMDb TVSeasonAggregateCreditsRequest.swift
[444/544] Compiling TMDb TVSeasonChangesRequest.swift
[445/544] Compiling TMDb TVSeasonCreditsRequest.swift
[446/544] Compiling TMDb TVSeasonDetailsAppendRequest.swift
[447/544] Compiling TMDb TVSeasonExternalLinksRequest.swift
[448/544] Compiling TMDb TVSeasonImagesRequest.swift
[449/544] Compiling TMDb TVSeasonRequest.swift
[450/544] Compiling TMDb TVSeasonTranslationsRequest.swift
[451/544] Compiling TMDb TVSeasonVideosRequest.swift
[452/544] Compiling TMDb TVSeasonWatchProvidersRequest.swift
[453/544] Compiling TMDb TMDbTVSeasonService+Account.swift
[454/544] Compiling TMDb TMDbTVSeasonService+Changes.swift
[455/544] Compiling TMDb TMDbTVSeasonService+Metadata.swift
[456/544] Compiling TMDb TMDbTVSeasonService.swift
[457/544] Compiling TMDb TVSeasonService+Conveniences.swift
[458/544] Compiling TMDb TVSeasonService.swift
[459/544] Compiling TMDb TVSeriesImageFilter.swift
[460/544] Compiling TMDb TVSeriesVideoFilter.swift
[461/544] Compiling TMDb ContentRatingRequest.swift
[462/544] Compiling TMDb LatestTVSeriesRequest.swift
[463/544] Compiling TMDb PopularTVSeriesRequest.swift
[464/544] Compiling TMDb SimilarTVSeriesRequest.swift
[465/544] Compiling TMDb TVSeriesAccountStatesRequest.swift
[466/544] Compiling TMDb TVSeriesAddRatingRequest.swift
[467/544] Compiling TMDb TVSeriesAggregateCreditsRequest.swift
[468/544] Compiling TMDb TVSeriesAiringTodayRequest.swift
[469/544] Compiling TMDb TVSeriesAlternativeTitlesRequest.swift
[470/544] Compiling TMDb TVSeriesChangesListRequest.swift
[471/544] Compiling TMDb TVSeriesChangesRequest.swift
[472/544] Compiling TMDb TVSeriesCreditsRequest.swift
[473/544] Compiling TMDb V4AccountListsRequest.swift
[474/544] Compiling TMDb V4AuthorizationHeaders.swift
[475/544] Compiling TMDb V4ListItemStatusRequest.swift
[476/544] Compiling TMDb V4ListRequest.swift
[477/544] Compiling TMDb TMDbV4ListService.swift
[478/544] Compiling TMDb V4ListService+Conveniences.swift
[479/544] Compiling TMDb V4ListService.swift
[480/544] Compiling TMDb WatchProviderFilter.swift
[481/544] Compiling TMDb WatchProviderRegionsRequest.swift
[482/544] Compiling TMDb WatchProvidersForMoviesRequest.swift
[483/544] Compiling TMDb WatchProvidersForTVSeriesRequest.swift
[484/544] Compiling TMDb TMDbWatchProviderService.swift
[485/544] Compiling TMDb WatchProviderService+Conveniences.swift
[486/544] Compiling TMDb WatchProviderService.swift
[487/544] Compiling TMDb DateFormatter+TMDb.swift
[488/544] Compiling TMDb Double+Rating.swift
[489/544] Compiling TMDb JSONDecoder+TMDb.swift
[490/544] Compiling TMDb JSONEncoder+TMDb.swift
[491/544] Compiling TMDb KeyedDecodingContainer+MediaType.swift
[492/544] Compiling TMDb KeyedDecodingContainer+Nested.swift
[493/544] Compiling TMDb KeyedDecodingContainer+NonEmpty.swift
[494/544] Compiling TMDb Sequence+Uniqued.swift
[495/544] Compiling TMDb String+URLPathSegment.swift
[496/544] Compiling TMDb String+Validation.swift
[497/544] Compiling TMDb TVSeriesService.swift
[498/544] Compiling TMDb TrendingTimeWindowFilterType.swift
[499/544] Compiling TMDb TrendingAllRequest.swift
[500/544] Compiling TMDb TrendingMoviesRequest.swift
[501/544] Compiling TMDb TrendingPeopleRequest.swift
[502/544] Compiling TMDb TrendingTVSeriesRequest.swift
[503/544] Compiling TMDb TMDbTrendingService.swift
[504/544] Compiling TMDb TrendingService+Conveniences.swift
[505/544] Compiling TMDb TrendingService+Pagination.swift
[506/544] Compiling TMDb TrendingService.swift
[507/544] Compiling TMDb CreateV4AccessTokenRequest.swift
[508/544] Compiling TMDb CreateV4RequestTokenRequest.swift
[509/544] Compiling TMDb DeleteV4AccessTokenRequest.swift
[510/544] Compiling TMDb TMDbV4AuthenticationService.swift
[511/544] Compiling TMDb V4AuthenticateURLBuilder.swift
[512/544] Compiling TMDb V4AuthenticateURLBuilding.swift
[513/544] Compiling TMDb V4AuthenticationService.swift
[514/544] Compiling TMDb AddV4ListItemsRequest.swift
[515/544] Compiling TMDb ClearV4ListRequest.swift
[516/544] Compiling TMDb CreateV4ListRequest.swift
[517/544] Compiling TMDb DeleteV4ListRequest.swift
[518/544] Compiling TMDb RemoveV4ListItemsRequest.swift
[519/544] Compiling TMDb UpdateV4ListItemsRequest.swift
[520/544] Compiling TMDb UpdateV4ListRequest.swift
[521/544] Compiling TMDb TVSeriesDeleteRatingRequest.swift
[522/544] Compiling TMDb TVSeriesDetailsAppendRequest.swift
[523/544] Compiling TMDb TVSeriesEpisodeGroupsRequest.swift
[524/544] Compiling TMDb TVSeriesExternalLinksRequest.swift
[525/544] Compiling TMDb TVSeriesImagesRequest.swift
[526/544] Compiling TMDb TVSeriesKeywordsRequest.swift
[527/544] Compiling TMDb TVSeriesListsRequest.swift
[528/544] Compiling TMDb TVSeriesOnTheAirRequest.swift
[529/544] Compiling TMDb TVSeriesRecommendationsRequest.swift
[530/544] Compiling TMDb TVSeriesRequest.swift
[531/544] Compiling TMDb TVSeriesReviewsRequest.swift
[532/544] Compiling TMDb TVSeriesScreenedTheatricallyRequest.swift
[533/544] Compiling TMDb TVSeriesTranslationsRequest.swift
[534/544] Compiling TMDb TVSeriesVideosRequest.swift
[535/544] Compiling TMDb TVSeriesWatchProvidersRequest.swift
[536/544] Compiling TMDb TopRatedTVSeriesRequest.swift
[537/544] Compiling TMDb TMDbTVSeriesService+Account.swift
[538/544] Compiling TMDb TMDbTVSeriesService+Changes.swift
[539/544] Compiling TMDb TMDbTVSeriesService+Lists.swift
[540/544] Compiling TMDb TMDbTVSeriesService+Media.swift
[541/544] Compiling TMDb TMDbTVSeriesService+Metadata.swift
[542/544] Compiling TMDb TMDbTVSeriesService.swift
[543/544] Compiling TMDb TVSeriesService+Conveniences.swift
[544/544] Compiling TMDb TVSeriesService+Pagination.swift
BUILD FAILURE 6.2 wasm