Build Information
Failed to build TMDb, reference main (a3f131), with Swift 6.3 for Wasm on 5 Oct 2026 08:12:47 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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
| `- 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
[129/256] 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 '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 '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 '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 '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
[130/256] 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 '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 '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 '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 '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
[131/256] 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 '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 '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 '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 '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
[132/256] 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 '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 '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 '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 '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
[133/304] Compiling TMDb CastMember.swift
[134/304] Compiling TMDb CastRole.swift
[135/304] Compiling TMDb Certification.swift
[136/304] Compiling TMDb Certifications.swift
[137/304] Compiling TMDb Change.swift
[138/304] Compiling TMDb Collection.swift
[139/304] Compiling TMDb CollectionImageCollection.swift
[140/304] Compiling TMDb CollectionListItem.swift
[141/304] Compiling TMDb CollectionPageableList.swift
[142/304] Compiling TMDb CollectionTranslation.swift
[143/304] Compiling TMDb CollectionTranslationData.swift
[144/304] Compiling TMDb Company.swift
[145/304] Compiling TMDb CompanyAlternativeName.swift
[146/304] Compiling TMDb CompanyAlternativeNameCollection.swift
[147/304] Compiling TMDb CompanyImageCollection.swift
[148/304] Compiling TMDb CompanyPageableList.swift
[149/304] Compiling TMDb ContentRating.swift
[150/304] Compiling TMDb ContentRatingResult.swift
[151/304] Compiling TMDb Country.swift
[152/304] Compiling TMDb CreateListResult.swift
[153/304] Compiling TMDb Creator.swift
[154/304] Compiling TMDb Credential.swift
[155/304] Compiling TMDb Credit.swift
[156/304] Compiling TMDb CreditMedia.swift
[157/304] Compiling TMDb CreditMovie.swift
[158/304] Compiling TMDb TVEpisodeImageCollection.swift
[159/304] Compiling TMDb TVEpisodePageableList.swift
[160/304] Compiling TMDb TVSeason.swift
[161/304] Compiling TMDb TVSeasonAggregateCredits.swift
[162/304] Compiling TMDb TVSeasonAppendOption.swift
[163/304] Compiling TMDb TVSeasonDetailsResponse.swift
[164/304] Compiling TMDb TVSeasonExternalLinksCollection.swift
[165/304] Compiling TMDb TVSeasonImageCollection.swift
[166/304] Compiling TMDb TVSeries.swift
[167/304] Compiling TMDb TVSeriesAggregateCredits.swift
[168/304] Compiling TMDb TVSeriesAppendOption.swift
[169/304] Compiling TMDb TVSeriesCastCredit.swift
[170/304] Compiling TMDb TVSeriesCrewCredit.swift
[171/304] Compiling TMDb TVSeriesDetailsResponse.swift
[172/304] Compiling TMDb TVSeriesExternalLinksCollection.swift
[173/304] Compiling TMDb TVSeriesListItem.swift
[174/304] Compiling TMDb TVSeriesPageableList.swift
[175/304] Compiling TMDb TVSeriesStatus.swift
[176/304] Compiling TMDb TVSeriesType.swift
[177/304] Compiling TMDb TaggedImage.swift
[178/304] Compiling TMDb TaggedImageMedia.swift
[179/304] Compiling TMDb TaggedImagePageableList.swift
[180/304] Compiling TMDb TikTokLink.swift
[181/304] Compiling TMDb Timezone.swift
[182/304] Compiling TMDb Token.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 MovieSort.swift
[209/400] Compiling TMDb TVSeriesSort.swift
[210/400] Compiling TMDb TMDbDiscoverService.swift
[211/400] Compiling TMDb FindService.swift
[212/400] Compiling TMDb FindByIDRequest.swift
[213/400] Compiling TMDb TMDbFindService.swift
[214/400] Compiling TMDb GenreService.swift
[215/400] Compiling TMDb MovieGenresRequest.swift
[216/400] Compiling TMDb TVSeriesGenresRequest.swift
[217/400] Compiling TMDb TMDbGenreService.swift
[218/400] Compiling TMDb GuestSessionService+Defaults.swift
[219/400] Compiling TMDb GuestSessionService+Pagination.swift
[220/400] Compiling TMDb GuestSessionService.swift
[221/400] Compiling TMDb GuestSessionRatedMoviesRequest.swift
[222/400] Compiling TMDb GuestSessionRatedTVEpisodesRequest.swift
[223/400] Compiling TMDb GuestSessionRatedTVSeriesRequest.swift
[224/400] Compiling TMDb TMDbGuestSessionService.swift
[225/400] Compiling TMDb APIConfigurationStore.swift
[226/400] Compiling TMDb ImageService+URLs.swift
[227/400] Compiling TMDb ImageService.swift
[228/400] Compiling TMDb ResumeOnce.swift
[229/400] Compiling TMDb TMDbImageService.swift
[230/400] Compiling TMDb KeywordService+Pagination.swift
[231/400] Compiling TMDb KeywordService.swift
[232/424] Compiling TMDb CompanyDetailsRequest.swift
[233/424] Compiling TMDb CompanyImagesRequest.swift
[234/424] Compiling TMDb TMDbCompanyService.swift
[235/424] Compiling TMDb ConfigurationService.swift
[236/424] Compiling TMDb APIConfigurationRequest.swift
[237/424] Compiling TMDb ConfigurationPrimaryTranslationsRequest.swift
[238/424] Compiling TMDb ConfigurationTimezonesRequest.swift
[239/424] Compiling TMDb CountriesConfigurationRequest.swift
[240/424] Compiling TMDb JobsConfigurationRequest.swift
[241/424] Compiling TMDb LanguaguesConfigurationRequest.swift
[242/424] Compiling TMDb TMDbConfigurationService.swift
[243/424] Compiling TMDb CreditService.swift
[244/424] Compiling TMDb CreditRequest.swift
[245/424] Compiling TMDb TMDbCreditService.swift
[246/424] Compiling TMDb DiscoverService+Conveniences.swift
[247/424] Compiling TMDb DiscoverService+Pagination.swift
[248/424] Compiling TMDb DiscoverService.swift
[249/424] Compiling TMDb DiscoverFilterJoin.swift
[250/424] Compiling TMDb DiscoverMovieFilter+Fluent.swift
[251/424] Compiling TMDb DiscoverMovieFilter.swift
[252/424] Compiling TMDb DiscoverTVSeriesFilter+Fluent.swift
[253/424] Compiling TMDb DiscoverTVSeriesFilter.swift
[254/424] Compiling TMDb DiscoverMoviesRequest.swift
[255/424] Compiling TMDb DiscoverTVSeriesRequest.swift
[256/448] Compiling TMDb NetworkRequest.swift
[257/448] Compiling TMDb TMDbNetworkService.swift
[258/448] Compiling TMDb PersonService+Conveniences.swift
[259/448] Compiling TMDb PersonService+Defaults.swift
[260/448] Compiling TMDb PersonService+Pagination.swift
[261/448] Compiling TMDb PersonService.swift
[262/448] Compiling TMDb LatestPersonRequest.swift
[263/448] Compiling TMDb PersonChangesListRequest.swift
[264/448] Compiling TMDb PersonChangesRequest.swift
[265/448] Compiling TMDb PersonCombinedCreditsRequest.swift
[266/448] Compiling TMDb PersonDetailsAppendRequest.swift
[267/448] Compiling TMDb PersonExternalLinksRequest.swift
[268/448] Compiling TMDb PersonImagesRequest.swift
[269/448] Compiling TMDb PersonMovieCreditsRequest.swift
[270/448] Compiling TMDb PersonRequest.swift
[271/448] Compiling TMDb PersonTVSeriesCreditsRequest.swift
[272/448] Compiling TMDb PersonTaggedImagesRequest.swift
[273/448] Compiling TMDb PersonTranslationsRequest.swift
[274/448] Compiling TMDb PopularPeopleRequest.swift
[275/448] Compiling TMDb TMDbPersonService+Changes.swift
[276/448] Compiling TMDb TMDbPersonService+Media.swift
[277/448] Compiling TMDb TMDbPersonService+Translations.swift
[278/448] Compiling TMDb TMDbPersonService.swift
[279/448] Compiling TMDb ReviewRequest.swift
[280/448] Compiling TMDb MovieChangesListRequest.swift
[281/448] Compiling TMDb MovieChangesRequest.swift
[282/448] Compiling TMDb MovieCreditsRequest.swift
[283/448] Compiling TMDb MovieDetailsAppendRequest.swift
[284/448] Compiling TMDb MovieExternalLinksRequest.swift
[285/448] Compiling TMDb MovieImagesRequest.swift
[286/448] Compiling TMDb MovieKeywordsRequest.swift
[287/448] Compiling TMDb MovieListsRequest.swift
[288/448] Compiling TMDb MovieRecommendationsRequest.swift
[289/448] Compiling TMDb MovieReleaseDatesRequest.swift
[290/448] Compiling TMDb MovieRequest.swift
[291/448] Compiling TMDb MovieReviewsRequest.swift
[292/448] Compiling TMDb MovieTranslationsRequest.swift
[293/448] Compiling TMDb MovieVideosRequest.swift
[294/448] Compiling TMDb MovieWatchProvidersRequest.swift
[295/448] Compiling TMDb MoviesNowPlayingRequest.swift
[296/448] Compiling TMDb PopularMoviesRequest.swift
[297/448] Compiling TMDb SimilarMoviesRequest.swift
[298/448] Compiling TMDb TopRatedMoviesRequest.swift
[299/448] Compiling TMDb UpcomingMoviesRequest.swift
[300/448] Compiling TMDb TMDbMovieService.swift
[301/448] Compiling TMDb NetworkService.swift
[302/448] Compiling TMDb NetworkAlternativeNamesRequest.swift
[303/448] Compiling TMDb NetworkImagesRequest.swift
[304/448] Compiling TMDb WatchProviderRegions.swift
[305/448] Compiling TMDb WatchProviderResult.swift
[306/448] Compiling TMDb WikiDataLink.swift
[307/448] Compiling TMDb AccountService+AuthenticatedSession.swift
[308/448] Compiling TMDb AccountService+Conveniences.swift
[309/448] Compiling TMDb AccountService+Defaults.swift
[310/448] Compiling TMDb AccountService+Pagination.swift
[311/448] Compiling TMDb AccountService.swift
[312/448] Compiling TMDb AccountListsRequest.swift
[313/448] Compiling TMDb AccountRequest.swift
[314/448] Compiling TMDb AddFavouriteRequest.swift
[315/448] Compiling TMDb AddToWatchlistRequest.swift
[316/448] Compiling TMDb FavouriteMoviesRequest.swift
[317/448] Compiling TMDb FavouriteTVSeriesRequest.swift
[318/448] Compiling TMDb MovieWatchlistRequest.swift
[319/448] Compiling TMDb RatedMoviesRequest.swift
[320/448] Compiling TMDb RatedTVEpisodesRequest.swift
[321/448] Compiling TMDb RatedTVSeriesRequest.swift
[322/448] Compiling TMDb TVSeriesWatchlistRequest.swift
[323/448] Compiling TMDb FavouriteSort.swift
[324/448] Compiling TMDb RatedSort.swift
[325/448] Compiling TMDb WatchlistSort.swift
[326/448] Compiling TMDb TMDbAccountService.swift
[327/448] Compiling TMDb AuthenticateURLBuilding.swift
[328/448] Compiling TMDb AuthenticationService.swift
[329/520] Compiling TMDb CreateGuestSessionRequest.swift
[330/520] Compiling TMDb CreateRequestTokenRequest.swift
[331/520] Compiling TMDb CreateSessionFromV4AccessTokenRequest.swift
[332/520] Compiling TMDb CreateSessionRequest.swift
[333/520] Compiling TMDb DeleteSessionRequest.swift
[334/520] Compiling TMDb ValidateKeyRequest.swift
[335/520] Compiling TMDb ValidateTokenWithLoginRequest.swift
[336/520] Compiling TMDb TMDbAuthenticationService.swift
[337/520] Compiling TMDb AuthenticateURLBuilder.swift
[338/520] Compiling TMDb CertificationService.swift
[339/520] Compiling TMDb MovieCertificationsRequest.swift
[340/520] Compiling TMDb TVSeriesCertificationsRequest.swift
[341/520] Compiling TMDb TMDbCertificationService.swift
[342/520] Compiling TMDb ChangesService+Conveniences.swift
[343/520] Compiling TMDb ChangesService+Pagination.swift
[344/520] Compiling TMDb ChangesService.swift
[345/520] Compiling TMDb TMDbChangesService.swift
[346/520] Compiling TMDb CollectionService.swift
[347/520] Compiling TMDb CollectionImagesRequest.swift
[348/520] Compiling TMDb CollectionRequest.swift
[349/520] Compiling TMDb CollectionTranslationsRequest.swift
[350/520] Compiling TMDb TMDbCollectionService.swift
[351/520] Compiling TMDb CompanyService.swift
[352/520] Compiling TMDb CompanyAlternativeNamesRequest.swift
[353/544] Compiling TMDb KeywordMoviesRequest.swift
[354/544] Compiling TMDb KeywordRequest.swift
[355/544] Compiling TMDb TMDbKeywordService.swift
[356/544] Compiling TMDb ListService+Pagination.swift
[357/544] Compiling TMDb ListService.swift
[358/544] Compiling TMDb AddMediaRequest.swift
[359/544] Compiling TMDb ClearListRequest.swift
[360/544] Compiling TMDb CreateListRequest.swift
[361/544] Compiling TMDb DeleteListRequest.swift
[362/544] Compiling TMDb ListItemStatusRequest.swift
[363/544] Compiling TMDb ListRequest.swift
[364/544] Compiling TMDb RemoveMediaRequest.swift
[365/544] Compiling TMDb TMDbListService.swift
[366/544] Compiling TMDb MovieImageFilter.swift
[367/544] Compiling TMDb MovieVideoFilter.swift
[368/544] Compiling TMDb MovieKeywordsResponse.swift
[369/544] Compiling TMDb MovieService+Conveniences.swift
[370/544] Compiling TMDb MovieService+Pagination.swift
[371/544] Compiling TMDb MovieService.swift
[372/544] Compiling TMDb AddMovieRatingRequest.swift
[373/544] Compiling TMDb DeleteMovieRatingRequest.swift
[374/544] Compiling TMDb LatestMovieRequest.swift
[375/544] Compiling TMDb MovieAccountStatesRequest.swift
[376/544] Compiling TMDb MovieAlternativeTitlesRequest.swift
[377/544] Compiling TMDb ReviewService.swift
[378/544] Compiling TMDb TMDbReviewService.swift
[379/544] Compiling TMDb AllMediaSearchFilter.swift
[380/544] Compiling TMDb MovieSearchFilter.swift
[381/544] Compiling TMDb PersonSearchFilter.swift
[382/544] Compiling TMDb TVSeriesSearchFilter.swift
[383/544] Compiling TMDb CollectionSearchRequest.swift
[384/544] Compiling TMDb CompanySearchRequest.swift
[385/544] Compiling TMDb KeywordSearchRequest.swift
[386/544] Compiling TMDb MovieSearchRequest.swift
[387/544] Compiling TMDb MultiSearchRequest.swift
[388/544] Compiling TMDb PersonSearchRequest.swift
[389/544] Compiling TMDb TVSeriesSearchRequest.swift
[390/544] Compiling TMDb SearchService+Conveniences.swift
[391/544] Compiling TMDb SearchService+Pagination.swift
[392/544] Compiling TMDb SearchService.swift
[393/544] Compiling TMDb TMDbSearchService.swift
[394/544] Compiling TMDb TVEpisodeGroupRequest.swift
[395/544] Compiling TMDb TMDbTVEpisodeGroupService.swift
[396/544] Compiling TMDb TVEpisodeGroupService.swift
[397/544] Compiling TMDb TVEpisodeImageFilter.swift
[398/544] Compiling TMDb TVEpisodeVideoFilter.swift
[399/544] Compiling TMDb TVEpisodeAccountStatesRequest.swift
[400/544] Compiling TMDb TVEpisodeAddRatingRequest.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.3 wasm