Build Information
Failed to build TMDb, reference 17.0.1 (8f48b2), with Swift 6.3 for Wasm on 16 Apr 2026 23:29:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[121/203] 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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[122/203] Compiling TMDb CastMember.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[123/203] Compiling TMDb CastRole.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[124/203] Compiling TMDb Certification.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[125/203] Compiling TMDb Certifications.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[126/203] Compiling TMDb Change.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[127/203] Compiling TMDb Collection.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[128/203] Compiling TMDb CollectionImageCollection.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 {
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 | 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:18:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private let urlSession: URLSession
17 |
18 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | self.urlSession = urlSession
20 | }
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 {
15 |
16 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-Sendable type 'AnyObject'
17 |
18 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:34:70: error: cannot find type 'URLRequest' in scope
32 | extension URLSessionHTTPClientAdapter {
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var urlRequest = URLRequest(url: httpRequest.url)
36 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:45:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | }
44 |
45 | 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.
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
47 | 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:115:44: error: cannot find type 'URLRequest' in scope
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
116 | try await urlSession.data(for: urlRequest)
117 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:115:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | }
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | try await urlSession.data(for: urlRequest)
117 | }
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:25:36: error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: cannot convert value of type 'HTTPResponse' to specified type '(_, _)'
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:25:50: error: missing argument label 'request:' in call
23 | let urlRequest = Self.urlRequest(from: request)
24 |
25 | let (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
26 |
27 | return Self.httpResponse(from: data, response: response)
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:35:26: error: cannot find 'URLRequest' in scope
33 |
34 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
35 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
36 | urlRequest.httpMethod = httpRequest.method.rawValue
37 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:46:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
46 | 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.
47 | return HTTPResponse(statusCode: -1, data: nil)
48 | }
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:50:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
48 | }
49 |
50 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:52:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
50 | let statusCode = httpURLResponse.statusCode
51 | var headers = [String: String]()
52 | for (key, value) in httpURLResponse.allHeaderFields {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 | if let key = key as? String, let value = value as? String {
54 | headers[key] = value
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:116:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | #else
115 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
116 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
117 | }
118 | #endif
[129/328] Compiling TMDb MovieAppendOption.swift
[130/328] Compiling TMDb MovieCastCredit.swift
[131/328] Compiling TMDb MovieCrewCredit.swift
[132/328] Compiling TMDb MovieDetailsResponse.swift
[133/328] Compiling TMDb MovieExternalLinksCollection.swift
[134/328] Compiling TMDb MovieListItem.swift
[135/328] Compiling TMDb MoviePageableList.swift
[136/328] Compiling TMDb MovieReleaseDatesByCountry.swift
[137/328] Compiling TMDb MovieReleaseDatesResult.swift
[138/328] Compiling TMDb MovieReleaseType.swift
[139/328] Compiling TMDb Network.swift
[140/328] Compiling TMDb NetworkAlternativeName.swift
[141/328] Compiling TMDb NetworkLogo.swift
[142/328] Compiling TMDb PageableListResult.swift
[143/328] Compiling TMDb PagedAsyncSequence.swift
[144/328] Compiling TMDb PagedPagesAsyncSequence.swift
[145/328] Compiling TMDb Person.swift
[146/328] Compiling TMDb PersonAppendOption.swift
[147/328] Compiling TMDb PersonCombinedCredits.swift
[148/328] Compiling TMDb PersonDetailsResponse.swift
[149/328] Compiling TMDb PersonExternalLinksCollection.swift
[150/328] Compiling TMDb PersonImageCollection.swift
[151/328] Compiling TMDb PersonListItem.swift
[152/328] Compiling TMDb PersonMovieCredits.swift
[153/328] Compiling TMDb PersonPageableList.swift
[154/328] Compiling TMDb TMDbError.swift
[155/328] Compiling TMDb TMDbStatusResponse.swift
[156/328] Compiling TMDb TVEpisode.swift
[157/328] Compiling TMDb TVEpisodeAirDate.swift
[158/328] Compiling TMDb TVEpisodeAppendOption.swift
[159/328] Compiling TMDb TVEpisodeDetailsResponse.swift
[160/328] Compiling TMDb TVEpisodeExternalLinksCollection.swift
[161/328] Compiling TMDb TVEpisodeGroup.swift
[162/328] Compiling TMDb TVEpisodeGroupCollection.swift
[163/328] Compiling TMDb TVEpisodeImageCollection.swift
[164/328] Compiling TMDb TVEpisodePageableList.swift
[165/328] Compiling TMDb TVSeason.swift
[166/328] Compiling TMDb TVSeasonAggregateCredits.swift
[167/328] Compiling TMDb TVSeasonAppendOption.swift
[168/328] Compiling TMDb TVSeasonDetailsResponse.swift
[169/328] Compiling TMDb TVSeasonExternalLinksCollection.swift
[170/328] Compiling TMDb TVSeasonImageCollection.swift
[171/328] Compiling TMDb TVSeries.swift
[172/328] Compiling TMDb TVSeriesAggregateCredits.swift
[173/328] Compiling TMDb TVSeriesAppendOption.swift
[174/328] Compiling TMDb TVSeriesCastCredit.swift
[175/328] Compiling TMDb TVSeriesCrewCredit.swift
[176/328] Compiling TMDb TVSeriesDetailsResponse.swift
[177/328] Compiling TMDb TVSeriesExternalLinksCollection.swift
[178/328] Compiling TMDb TVSeriesListItem.swift
[179/377] Compiling TMDb PersonService+Pagination.swift
[180/377] Compiling TMDb PersonService.swift
[181/377] Compiling TMDb LatestPersonRequest.swift
[182/377] Compiling TMDb PersonChangesListRequest.swift
[183/377] Compiling TMDb PersonChangesRequest.swift
[184/377] Compiling TMDb PersonCombinedCreditsRequest.swift
[185/377] Compiling TMDb PersonDetailsAppendRequest.swift
[186/377] Compiling TMDb PersonExternalLinksRequest.swift
[187/377] Compiling TMDb PersonImagesRequest.swift
[188/377] Compiling TMDb PersonMovieCreditsRequest.swift
[189/377] Compiling TMDb PersonRequest.swift
[190/377] Compiling TMDb PersonTVSeriesCreditsRequest.swift
[191/377] Compiling TMDb PersonTaggedImagesRequest.swift
[192/377] Compiling TMDb PersonTranslationsRequest.swift
[193/377] Compiling TMDb PopularPeopleRequest.swift
[194/377] Compiling TMDb TMDbPersonService+Changes.swift
[195/377] Compiling TMDb TMDbPersonService+Media.swift
[196/377] Compiling TMDb TMDbPersonService+Translations.swift
[197/377] Compiling TMDb TMDbPersonService.swift
[198/377] Compiling TMDb ReviewRequest.swift
[199/377] Compiling TMDb ReviewService.swift
[200/377] Compiling TMDb TMDbReviewService.swift
[201/377] Compiling TMDb AllMediaSearchFilter.swift
[202/377] Compiling TMDb MovieSearchFilter.swift
[203/377] Compiling TMDb PersonSearchFilter.swift
[204/401] Compiling TMDb CertificationService.swift
[205/401] Compiling TMDb MovieCertificationsRequest.swift
[206/401] Compiling TMDb TVSeriesCertificationsRequest.swift
[207/401] Compiling TMDb TMDbCertificationService.swift
[208/401] Compiling TMDb ChangesService.swift
[209/401] Compiling TMDb TMDbChangesService.swift
[210/401] Compiling TMDb CollectionService.swift
[211/401] Compiling TMDb CollectionImagesRequest.swift
[212/401] Compiling TMDb CollectionRequest.swift
[213/401] Compiling TMDb CollectionTranslationsRequest.swift
[214/401] Compiling TMDb TMDbCollectionService.swift
[215/401] Compiling TMDb CompanyService.swift
[216/401] Compiling TMDb CompanyAlternativeNamesRequest.swift
[217/401] Compiling TMDb CompanyDetailsRequest.swift
[218/401] Compiling TMDb CompanyImagesRequest.swift
[219/401] Compiling TMDb TMDbCompanyService.swift
[220/401] Compiling TMDb ConfigurationService.swift
[221/401] Compiling TMDb APIConfigurationRequest.swift
[222/401] Compiling TMDb ConfigurationPrimaryTranslationsRequest.swift
[223/401] Compiling TMDb ConfigurationTimezonesRequest.swift
[224/401] Compiling TMDb CountriesConfigurationRequest.swift
[225/401] Compiling TMDb JobsConfigurationRequest.swift
[226/401] Compiling TMDb LanguaguesConfigurationRequest.swift
[227/401] Compiling TMDb TMDbConfigurationService.swift
[228/401] Compiling TMDb CreditService.swift
[229/401] Compiling TMDb CreditRequest.swift
[230/401] Compiling TMDb TMDbCreditService.swift
[231/401] Compiling TMDb DiscoverService+Pagination.swift
[232/401] Compiling TMDb DiscoverService.swift
[233/401] Compiling TMDb DiscoverMovieFilter.swift
[234/401] Compiling TMDb DiscoverTVSeriesFilter.swift
[235/401] Compiling TMDb DiscoverMoviesRequest.swift
[236/401] Compiling TMDb DiscoverTVSeriesRequest.swift
[237/401] Compiling TMDb MovieSort.swift
[238/401] Compiling TMDb TVSeriesSort.swift
[239/401] Compiling TMDb TMDbDiscoverService.swift
[240/401] Compiling TMDb FindService.swift
[241/401] Compiling TMDb FindByIDRequest.swift
[242/401] Compiling TMDb TMDbFindService.swift
[243/401] Compiling TMDb GenreService.swift
[244/401] Compiling TMDb MovieGenresRequest.swift
[245/401] Compiling TMDb TVSeriesGenresRequest.swift
[246/401] Compiling TMDb TMDbGenreService.swift
[247/401] Compiling TMDb GuestSessionService+Defaults.swift
[248/401] Compiling TMDb GuestSessionService.swift
[249/401] Compiling TMDb GuestSessionRatedMoviesRequest.swift
[250/401] Compiling TMDb GuestSessionRatedTVEpisodesRequest.swift
[251/401] Compiling TMDb GuestSessionRatedTVSeriesRequest.swift
[252/401] Compiling TMDb TMDbGuestSessionService.swift
[253/401] Compiling TMDb KeywordService.swift
[254/449] Compiling TMDb TVEpisodeTranslationsRequest.swift
[255/449] Compiling TMDb TVEpisodeVideosRequest.swift
[256/449] Compiling TMDb TMDbTVEpisodeService+Account.swift
[257/449] Compiling TMDb TMDbTVEpisodeService+Changes.swift
[258/449] Compiling TMDb TMDbTVEpisodeService+Metadata.swift
[259/449] Compiling TMDb TMDbTVEpisodeService.swift
[260/449] Compiling TMDb TVEpisodeService.swift
[261/449] Compiling TMDb TVSeasonImageFilter.swift
[262/449] Compiling TMDb TVSeasonVideoFilter.swift
[263/449] Compiling TMDb TVSeasonAccountStatesRequest.swift
[264/449] Compiling TMDb TVSeasonAggregateCreditsRequest.swift
[265/449] Compiling TMDb TVSeasonChangesRequest.swift
[266/449] Compiling TMDb TVSeasonCreditsRequest.swift
[267/449] Compiling TMDb TVSeasonDetailsAppendRequest.swift
[268/449] Compiling TMDb TVSeasonExternalLinksRequest.swift
[269/449] Compiling TMDb TVSeasonImagesRequest.swift
[270/449] Compiling TMDb TVSeasonRequest.swift
[271/449] Compiling TMDb TVSeasonTranslationsRequest.swift
[272/449] Compiling TMDb TVSeasonVideosRequest.swift
[273/449] Compiling TMDb TVSeasonWatchProvidersRequest.swift
[274/449] Compiling TMDb TMDbTVSeasonService+Account.swift
[275/449] Compiling TMDb TMDbTVSeasonService+Changes.swift
[276/449] Compiling TMDb TMDbTVSeasonService+Metadata.swift
[277/449] Compiling TMDb TMDbTVSeasonService.swift
[278/449] Compiling TMDb TVSeriesSearchFilter.swift
[279/449] Compiling TMDb CollectionSearchRequest.swift
[280/449] Compiling TMDb CompanySearchRequest.swift
[281/449] Compiling TMDb KeywordSearchRequest.swift
[282/449] Compiling TMDb MovieSearchRequest.swift
[283/449] Compiling TMDb MultiSearchRequest.swift
[284/449] Compiling TMDb PersonSearchRequest.swift
[285/449] Compiling TMDb TVSeriesSearchRequest.swift
[286/449] Compiling TMDb SearchService+Pagination.swift
[287/449] Compiling TMDb SearchService.swift
[288/449] Compiling TMDb TMDbSearchService.swift
[289/449] Compiling TMDb TVEpisodeGroupRequest.swift
[290/449] Compiling TMDb TMDbTVEpisodeGroupService.swift
[291/449] Compiling TMDb TVEpisodeGroupService.swift
[292/449] Compiling TMDb TVEpisodeImageFilter.swift
[293/449] Compiling TMDb TVEpisodeVideoFilter.swift
[294/449] Compiling TMDb TVEpisodeAccountStatesRequest.swift
[295/449] Compiling TMDb TVEpisodeAddRatingRequest.swift
[296/449] Compiling TMDb TVEpisodeChangesRequest.swift
[297/449] Compiling TMDb TVEpisodeCreditsRequest.swift
[298/449] Compiling TMDb TVEpisodeDeleteRatingRequest.swift
[299/449] Compiling TMDb TVEpisodeDetailsAppendRequest.swift
[300/449] Compiling TMDb TVEpisodeExternalLinksRequest.swift
[301/449] Compiling TMDb TVEpisodeImagesRequest.swift
[302/449] Compiling TMDb TVEpisodeRequest.swift
[303/449] Compiling TMDb KeywordMoviesRequest.swift
[304/449] Compiling TMDb KeywordRequest.swift
[305/449] Compiling TMDb TMDbKeywordService.swift
[306/449] Compiling TMDb ListService+Pagination.swift
[307/449] Compiling TMDb ListService.swift
[308/449] Compiling TMDb AddMediaRequest.swift
[309/449] Compiling TMDb ClearListRequest.swift
[310/449] Compiling TMDb CreateListRequest.swift
[311/449] Compiling TMDb DeleteListRequest.swift
[312/449] Compiling TMDb ListItemStatusRequest.swift
[313/449] Compiling TMDb ListRequest.swift
[314/449] Compiling TMDb RemoveMediaRequest.swift
[315/449] Compiling TMDb TMDbListService.swift
[316/449] Compiling TMDb MovieImageFilter.swift
[317/449] Compiling TMDb MovieVideoFilter.swift
[318/449] Compiling TMDb MovieKeywordsResponse.swift
[319/449] Compiling TMDb MovieService+Pagination.swift
[320/449] Compiling TMDb MovieService.swift
[321/449] Compiling TMDb AddMovieRatingRequest.swift
[322/449] Compiling TMDb DeleteMovieRatingRequest.swift
[323/449] Compiling TMDb LatestMovieRequest.swift
[324/449] Compiling TMDb MovieAccountStatesRequest.swift
[325/449] Compiling TMDb MovieAlternativeTitlesRequest.swift
[326/449] Compiling TMDb MovieChangesListRequest.swift
[327/449] Compiling TMDb MovieChangesRequest.swift
[328/449] Compiling TMDb AccountRequest.swift
[329/449] Compiling TMDb AddFavouriteRequest.swift
[330/449] Compiling TMDb AddToWatchlistRequest.swift
[331/449] Compiling TMDb FavouriteMoviesRequest.swift
[332/449] Compiling TMDb FavouriteTVSeriesRequest.swift
[333/449] Compiling TMDb MovieWatchlistRequest.swift
[334/449] Compiling TMDb RatedMoviesRequest.swift
[335/449] Compiling TMDb RatedTVEpisodesRequest.swift
[336/449] Compiling TMDb RatedTVSeriesRequest.swift
[337/449] Compiling TMDb TVSeriesWatchlistRequest.swift
[338/449] Compiling TMDb FavouriteSort.swift
[339/449] Compiling TMDb RatedSort.swift
[340/449] Compiling TMDb WatchlistSort.swift
[341/449] Compiling TMDb TMDbAccountService.swift
[342/449] Compiling TMDb AuthenticateURLBuilding.swift
[343/449] Compiling TMDb AuthenticationService.swift
[344/449] Compiling TMDb CreateGuestSessionRequest.swift
[345/449] Compiling TMDb CreateRequestTokenRequest.swift
[346/449] Compiling TMDb CreateSessionFromV4AccessTokenRequest.swift
[347/449] Compiling TMDb CreateSessionRequest.swift
[348/449] Compiling TMDb DeleteSessionRequest.swift
[349/449] Compiling TMDb ValidateKeyRequest.swift
[350/449] Compiling TMDb ValidateTokenWithLoginRequest.swift
[351/449] Compiling TMDb TMDbAuthenticationService.swift
[352/449] Compiling TMDb AuthenticateURLBuilder.swift
[353/449] Compiling TMDb MovieCreditsRequest.swift
[354/449] Compiling TMDb MovieDetailsAppendRequest.swift
[355/449] Compiling TMDb MovieExternalLinksRequest.swift
[356/449] Compiling TMDb MovieImagesRequest.swift
[357/449] Compiling TMDb MovieKeywordsRequest.swift
[358/449] Compiling TMDb MovieListsRequest.swift
[359/449] Compiling TMDb MovieRecommendationsRequest.swift
[360/449] Compiling TMDb MovieReleaseDatesRequest.swift
[361/449] Compiling TMDb MovieRequest.swift
[362/449] Compiling TMDb MovieReviewsRequest.swift
[363/449] Compiling TMDb MovieTranslationsRequest.swift
[364/449] Compiling TMDb MovieVideosRequest.swift
[365/449] Compiling TMDb MovieWatchProvidersRequest.swift
[366/449] Compiling TMDb MoviesNowPlayingRequest.swift
[367/449] Compiling TMDb PopularMoviesRequest.swift
[368/449] Compiling TMDb SimilarMoviesRequest.swift
[369/449] Compiling TMDb TopRatedMoviesRequest.swift
[370/449] Compiling TMDb UpcomingMoviesRequest.swift
[371/449] Compiling TMDb TMDbMovieService.swift
[372/449] Compiling TMDb NetworkService.swift
[373/449] Compiling TMDb NetworkAlternativeNamesRequest.swift
[374/449] Compiling TMDb NetworkImagesRequest.swift
[375/449] Compiling TMDb NetworkRequest.swift
[376/449] Compiling TMDb TMDbNetworkService.swift
[377/449] Compiling TMDb PersonService+Defaults.swift
[378/449] Compiling TMDb WatchProviderRegionsRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[379/449] Compiling TMDb WatchProvidersForMoviesRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[380/449] Compiling TMDb WatchProvidersForTVSeriesRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[381/449] Compiling TMDb TMDbWatchProviderService.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[382/449] Compiling TMDb WatchProviderService.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[383/449] Compiling TMDb DateFormatter+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[384/449] Compiling TMDb JSONDecoder+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[385/449] Compiling TMDb JSONEncoder+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[386/449] Compiling TMDb Sequence+Uniqued.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[387/449] Compiling TMDb URL+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[388/449] Compiling TMDb CacheHTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[389/449] Compiling TMDb HTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[390/449] Compiling TMDb HTTPRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[391/449] Compiling TMDb HTTPResponse.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[392/449] Compiling TMDb RetryHTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[393/449] Compiling TMDb Serialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[394/449] Compiling TMDb TMDbAuthJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[395/449] Compiling TMDb TMDbJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[396/449] Compiling TMDb TMDbAPIClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[397/449] Compiling TMDb TMDbAPIError+HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[398/449] Compiling TMDb TMDbAPIError.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[399/449] Compiling TMDb TMDBClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[400/449] Compiling TMDb TMDbConfiguration.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[401/449] Compiling TMDb TMDbFactory.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:76:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | }
75 |
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:78:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | let configuration = URLSessionConfiguration.default
80 | 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:92:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 |
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
94 | }
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:79:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
77 |
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
81 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:80:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
78 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
79 | let configuration = URLSessionConfiguration.default
80 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
81 | configuration.timeoutIntervalForRequest = 30
82 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:93:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
91 | #if !canImport(FoundationNetworking)
92 | private static func urlCache() -> URLCache {
93 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
94 | }
95 | #endif
[402/449] Compiling TMDb TVSeasonService.swift
[403/449] Compiling TMDb TVSeriesImageFilter.swift
[404/449] Compiling TMDb TVSeriesVideoFilter.swift
[405/449] Compiling TMDb ContentRatingRequest.swift
[406/449] Compiling TMDb LatestTVSeriesRequest.swift
[407/449] Compiling TMDb PopularTVSeriesRequest.swift
[408/449] Compiling TMDb SimilarTVSeriesRequest.swift
[409/449] Compiling TMDb TVSeriesAccountStatesRequest.swift
[410/449] Compiling TMDb TVSeriesAddRatingRequest.swift
[411/449] Compiling TMDb TVSeriesAggregateCreditsRequest.swift
[412/449] Compiling TMDb TVSeriesAiringTodayRequest.swift
[413/449] Compiling TMDb TVSeriesAlternativeTitlesRequest.swift
[414/449] Compiling TMDb TVSeriesChangesListRequest.swift
[415/449] Compiling TMDb TVSeriesChangesRequest.swift
[416/449] Compiling TMDb TVSeriesCreditsRequest.swift
[417/449] Compiling TMDb TVSeriesDeleteRatingRequest.swift
[418/449] Compiling TMDb TVSeriesDetailsAppendRequest.swift
[419/449] Compiling TMDb TVSeriesEpisodeGroupsRequest.swift
[420/449] Compiling TMDb TVSeriesExternalLinksRequest.swift
[421/449] Compiling TMDb TVSeriesImagesRequest.swift
[422/449] Compiling TMDb TVSeriesKeywordsRequest.swift
[423/449] Compiling TMDb TVSeriesListsRequest.swift
[424/449] Compiling TMDb TVSeriesOnTheAirRequest.swift
[425/449] Compiling TMDb TVSeriesRecommendationsRequest.swift
[426/449] Compiling TMDb TVSeriesRequest.swift
[427/449] Compiling TMDb TVSeriesReviewsRequest.swift
[428/449] Compiling TMDb TVSeriesScreenedTheatricallyRequest.swift
[429/449] Compiling TMDb TVSeriesTranslationsRequest.swift
[430/449] Compiling TMDb TVSeriesVideosRequest.swift
[431/449] Compiling TMDb TVSeriesWatchProvidersRequest.swift
[432/449] Compiling TMDb TopRatedTVSeriesRequest.swift
[433/449] Compiling TMDb TMDbTVSeriesService+Account.swift
[434/449] Compiling TMDb TMDbTVSeriesService+Changes.swift
[435/449] Compiling TMDb TMDbTVSeriesService+Lists.swift
[436/449] Compiling TMDb TMDbTVSeriesService+Media.swift
[437/449] Compiling TMDb TMDbTVSeriesService+Metadata.swift
[438/449] Compiling TMDb TMDbTVSeriesService.swift
[439/449] Compiling TMDb TVSeriesService+Pagination.swift
[440/449] Compiling TMDb TVSeriesService.swift
[441/449] Compiling TMDb TrendingTimeWindowFilterType.swift
[442/449] Compiling TMDb TrendingAllRequest.swift
[443/449] Compiling TMDb TrendingMoviesRequest.swift
[444/449] Compiling TMDb TrendingPeopleRequest.swift
[445/449] Compiling TMDb TrendingTVSeriesRequest.swift
[446/449] Compiling TMDb TMDbTrendingService.swift
[447/449] Compiling TMDb TrendingService+Pagination.swift
[448/449] Compiling TMDb TrendingService.swift
[449/449] Compiling TMDb WatchProviderFilter.swift
BUILD FAILURE 6.3 wasm