Build Information
Failed to build TMDb, reference main (baeabe
), with Swift 6.1 for Wasm on 14 Jul 2025 21:55:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[64/210] Compiling TMDb Certifications.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[65/210] Compiling TMDb CollectionListItem.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[66/210] Compiling TMDb Company.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[67/210] Compiling TMDb ContentRating.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[68/210] Compiling TMDb ContentRatingResult.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[69/210] Compiling TMDb Country.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[70/210] Compiling TMDb Credential.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[71/210] Compiling TMDb CrewJob.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[72/210] Compiling TMDb CrewMember.swift
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:28:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |
30 | 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:30:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let urlSession: URLSession
29 |
30 | init(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.urlSession = urlSession
32 | }
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:28:17: error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
26 | final class URLSessionHTTPClientAdapter: HTTPClient {
27 |
28 | private let urlSession: URLSession
| `- error: stored property 'urlSession' of 'Sendable'-conforming class 'URLSessionHTTPClientAdapter' has non-sendable type 'URLSession' (aka 'AnyObject')
29 |
30 | init(urlSession: URLSession) {
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:53:70: error: cannot find type 'URLRequest' in scope
51 | extension URLSessionHTTPClientAdapter {
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
54 | var urlRequest = URLRequest(url: httpRequest.url)
55 | urlRequest.httpMethod = httpRequest.method.rawValue
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:64:65: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | }
63 |
64 | 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.
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
66 | 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:98:44: error: cannot find type 'URLRequest' in scope
96 | }
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
99 | try await urlSession.data(for: urlRequest)
100 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:98:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | }
97 | #else
98 | 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.
99 | try await urlSession.data(for: urlRequest)
100 | }
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:38:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | let data: Data
38 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | do {
40 | (data, response) = try await perform(urlRequest)
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:40:36: error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: cannot assign value of type 'HTTPResponse' to type '(Data, URLResponse)' (aka '(Data, AnyObject)')
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:40:50: error: missing argument label 'request:' in call
38 | let response: URLResponse
39 | do {
40 | (data, response) = try await perform(urlRequest)
| `- error: missing argument label 'request:' in call
41 | } catch let error {
42 | throw error
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:54:26: error: cannot find 'URLRequest' in scope
52 |
53 | private static func urlRequest(from httpRequest: HTTPRequest) -> URLRequest {
54 | var urlRequest = URLRequest(url: httpRequest.url)
| `- error: cannot find 'URLRequest' in scope
55 | urlRequest.httpMethod = httpRequest.method.rawValue
56 | urlRequest.httpBody = httpRequest.body
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:46: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | guard let httpURLResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:65:50: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | private static func httpResponse(from data: Data, response: URLResponse) -> HTTPResponse {
65 | 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.
66 | return HTTPResponse(statusCode: -1, data: nil)
67 | }
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:69:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | }
68 |
69 | let statusCode = httpURLResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
70 | return HTTPResponse(statusCode: statusCode, data: data)
71 | }
/host/spi-builder-workspace/Sources/TMDb/Adapters/URLSessionHTTPClientAdapter.swift:99:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
97 | #else
98 | private func perform(_ urlRequest: URLRequest) async throws -> (Data, URLResponse) {
99 | try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
100 | }
101 | #endif
[73/210] Compiling TMDb PersonCombinedCredits.swift
[74/210] Compiling TMDb PersonExternalLinksCollection.swift
[75/210] Compiling TMDb PersonImageCollection.swift
[76/210] Compiling TMDb PersonListItem.swift
[77/210] Compiling TMDb PersonMovieCredits.swift
[78/210] Compiling TMDb PersonPageableList.swift
[79/210] Compiling TMDb PersonTVSeriesCredits.swift
[80/210] Compiling TMDb ProductionCompany.swift
[81/210] Compiling TMDb ProductionCountry.swift
[82/210] Compiling TMDb Review.swift
[83/210] Compiling TMDb ReviewPageableList.swift
[84/210] Compiling TMDb Session.swift
[85/210] Compiling TMDb Show.swift
[86/210] Compiling TMDb ShowCredits.swift
[87/210] Compiling TMDb ShowType.swift
[88/210] Compiling TMDb ShowWatchProvider.swift
[89/210] Compiling TMDb ShowWatchProviderResult.swift
[90/210] Compiling TMDb SpokenLanguage.swift
[91/210] Compiling TMDb Status.swift
[92/210] Compiling TMDb SuccessResult.swift
[93/210] Compiling TMDb TMDbError+TMDbAPIError.swift
[94/210] Compiling TMDb TMDbError.swift
[95/210] Compiling TMDb TMDbStatusResponse.swift
[96/233] Compiling TMDb MovieCreditsRequest.swift
[97/233] Compiling TMDb MovieExternalLinksRequest.swift
[98/233] Compiling TMDb MovieImagesRequest.swift
[99/233] Compiling TMDb MovieRecommendationsRequest.swift
[100/233] Compiling TMDb MovieRequest.swift
[101/233] Compiling TMDb MovieReviewsRequest.swift
[102/233] Compiling TMDb MovieVideosRequest.swift
[103/233] Compiling TMDb MovieWatchProvidersRequest.swift
[104/233] Compiling TMDb MoviesNowPlayingRequest.swift
[105/233] Compiling TMDb PopularMoviesRequest.swift
[106/233] Compiling TMDb SimilarMoviesRequest.swift
[107/233] Compiling TMDb TopRatedMoviesRequest.swift
[108/233] Compiling TMDb UpcomingMoviesRequest.swift
[109/233] Compiling TMDb TMDbMovieService.swift
[110/233] Compiling TMDb PersonService.swift
[111/233] Compiling TMDb PersonCombinedCreditsRequest.swift
[112/233] Compiling TMDb PersonExternalLinksRequest.swift
[113/233] Compiling TMDb PersonImagesRequest.swift
[114/233] Compiling TMDb PersonMovieCreditsRequest.swift
[115/233] Compiling TMDb PersonRequest.swift
[116/233] Compiling TMDb PersonTVSeriesCreditsRequest.swift
[117/233] Compiling TMDb PopularPeopleRequest.swift
[118/233] Compiling TMDb TMDbPersonService.swift
[119/233] Compiling TMDb AllMediaSearchFilter.swift
[120/233] Compiling TMDb MovieSearchFilter.swift
[121/233] Compiling TMDb PersonSearchFilter.swift
[122/233] Compiling TMDb TVSeriesSearchFilter.swift
[123/233] Compiling TMDb MovieSearchRequest.swift
[124/233] Compiling TMDb MultiSearchRequest.swift
[125/233] Compiling TMDb PersonSearchRequest.swift
[126/233] Compiling TMDb TVSeriesSearchRequest.swift
[127/233] Compiling TMDb SearchService.swift
[128/233] Compiling TMDb TMDbSearchService.swift
[129/233] Compiling TMDb TVEpisodeImageFilter.swift
[130/233] Compiling TMDb TVEpisodeVideoFilter.swift
[131/233] Compiling TMDb TVEpisodeImagesRequest.swift
[132/233] Compiling TMDb TVEpisodeRequest.swift
[133/233] Compiling TMDb TVEpisodeVideosRequest.swift
[134/233] Compiling TMDb TMDbTVEpisodeService.swift
[135/233] Compiling TMDb TVEpisodeService.swift
[136/233] Compiling TMDb TVSeasonImageFilter.swift
[137/233] Compiling TMDb TVSeasonVideoFilter.swift
[138/233] Compiling TMDb TVSeasonAggregateCreditsRequest.swift
[139/233] Compiling TMDb TVSeasonImagesRequest.swift
[140/233] Compiling TMDb TVSeasonRequest.swift
[141/233] Compiling TMDb TVSeasonVideosRequest.swift
[142/233] Compiling TMDb TrendingService.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[143/233] Compiling TMDb WatchProviderFilter.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[144/233] Compiling TMDb WatchProviderRegionsRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[145/233] Compiling TMDb WatchProvidersForMoviesRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[146/233] Compiling TMDb WatchProvidersForTVSeriesRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[147/233] Compiling TMDb TMDbWatchProviderService.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[148/233] Compiling TMDb WatchProviderService.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[149/233] Compiling TMDb DateFormatter+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[150/233] Compiling TMDb JSONDecoder+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[151/233] Compiling TMDb JSONEncoder+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[152/233] Compiling TMDb Sequence+Uniqued.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[153/233] Compiling TMDb URL+TMDb.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[154/233] Compiling TMDb HTTPClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[155/233] Compiling TMDb HTTPRequest.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[156/233] Compiling TMDb HTTPResponse.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[157/233] Compiling TMDb Serialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[158/233] Compiling TMDb TMDbAuthJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[159/233] Compiling TMDb TMDbJSONSerialiser.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[160/233] Compiling TMDb TMDbAPIClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[161/233] Compiling TMDb TMDbAPIError+HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[162/233] Compiling TMDb TMDbAPIError.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[163/233] Compiling TMDb TMDBClient.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[164/233] Compiling TMDb TMDbFactory.swift
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:68:37: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | }
67 |
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:70:54: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | private static let urlSession = URLSession(configuration: urlSessionConfiguration())
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | let configuration = URLSessionConfiguration.default
72 | 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:84:43: error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
| `- error: 'URLCache' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
86 | }
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:71:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
69 |
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
73 | configuration.timeoutIntervalForRequest = 30
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:72:45: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
70 | private static func urlSessionConfiguration() -> URLSessionConfiguration {
71 | let configuration = URLSessionConfiguration.default
72 | configuration.requestCachePolicy = .useProtocolCachePolicy
| `- error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
73 | configuration.timeoutIntervalForRequest = 30
74 |
/host/spi-builder-workspace/Sources/TMDb/TMDbFactory.swift:85:13: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | #if !canImport(FoundationNetworking)
84 | private static func urlCache() -> URLCache {
85 | URLCache(memoryCapacity: 50_000_000, diskCapacity: 1_000_000_000)
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 | #endif
[165/233] Compiling TMDb TVEpisode.swift
[166/233] Compiling TMDb TVEpisodeImageCollection.swift
[167/233] Compiling TMDb TVSeason.swift
[168/233] Compiling TMDb TVSeasonAggregateCredits.swift
[169/233] Compiling TMDb TVSeasonImageCollection.swift
[170/233] Compiling TMDb TVSeries.swift
[171/233] Compiling TMDb TVSeriesAggregateCredits.swift
[172/233] Compiling TMDb TVSeriesExternalLinksCollection.swift
[173/233] Compiling TMDb TVSeriesListItem.swift
[174/233] Compiling TMDb TVSeriesPageableList.swift
[175/233] Compiling TMDb TikTokLink.swift
[176/233] Compiling TMDb Token.swift
[177/233] Compiling TMDb TwitterLink.swift
[178/233] Compiling TMDb VideoCollection.swift
[179/233] Compiling TMDb VideoMetadata.swift
[180/233] Compiling TMDb VideoSize.swift
[181/233] Compiling TMDb VideoType.swift
[182/233] Compiling TMDb WatchProvider.swift
[183/233] Compiling TMDb WatchProviderRegions.swift
[184/233] Compiling TMDb WatchProviderResult.swift
[185/233] Compiling TMDb WikiDataLink.swift
[186/233] Compiling TMDb AccountService.swift
[187/233] Compiling TMDb AccountRequest.swift
[188/233] Compiling TMDb Department.swift
[189/233] Compiling TMDb ExternalLink.swift
[190/233] Compiling TMDb FacebookLink.swift
[191/233] Compiling TMDb Gender.swift
[192/233] Compiling TMDb Genre.swift
[193/233] Compiling TMDb GenreList.swift
[194/233] Compiling TMDb GuestSession.swift
[195/233] Compiling TMDb IMDbLink.swift
[196/233] Compiling TMDb ImageCollection.swift
[197/233] Compiling TMDb ImageMetadata.swift
[198/233] Compiling TMDb ImagesConfiguration+URLs.swift
[199/233] Compiling TMDb ImagesConfiguration.swift
[200/233] Compiling TMDb InstagramLink.swift
[201/233] Compiling TMDb Language.swift
[202/233] Compiling TMDb Media.swift
[203/233] Compiling TMDb MediaPageableList.swift
[204/233] Compiling TMDb Movie.swift
[205/233] Compiling TMDb MovieExternalLinksCollection.swift
[206/233] Compiling TMDb MovieListItem.swift
[207/233] Compiling TMDb MoviePageableList.swift
[208/233] Compiling TMDb Network.swift
[209/233] Compiling TMDb PageableListResult.swift
[210/233] Compiling TMDb Person.swift
[211/233] Compiling TMDb TMDbTVSeasonService.swift
[212/233] Compiling TMDb TVSeasonService.swift
[213/233] Compiling TMDb TVSeriesImageFilter.swift
[214/233] Compiling TMDb TVSeriesVideoFilter.swift
[215/233] Compiling TMDb ContentRatingRequest.swift
[216/233] Compiling TMDb PopularTVSeriesRequest.swift
[217/233] Compiling TMDb SimilarTVSeriesRequest.swift
[218/233] Compiling TMDb TVSeriesAggregateCreditsRequest.swift
[219/233] Compiling TMDb TVSeriesCreditsRequest.swift
[220/233] Compiling TMDb TVSeriesExternalLinksRequest.swift
[221/233] Compiling TMDb TVSeriesImagesRequest.swift
[222/233] Compiling TMDb TVSeriesRecommendationsRequest.swift
[223/233] Compiling TMDb TVSeriesRequest.swift
[224/233] Compiling TMDb TVSeriesReviewsRequest.swift
[225/233] Compiling TMDb TVSeriesVideosRequest.swift
[226/233] Compiling TMDb TVSeriesWatchProvidersRequest.swift
[227/233] Compiling TMDb TMDbTVSeriesService.swift
[228/233] Compiling TMDb TVSeriesService.swift
[229/233] Compiling TMDb TrendingTimeWindowFilterType.swift
[230/233] Compiling TMDb TrendingMoviesRequest.swift
[231/233] Compiling TMDb TrendingPeopleRequest.swift
[232/233] Compiling TMDb TrendingTVSeriesRequest.swift
[233/233] Compiling TMDb TMDbTrendingService.swift
BUILD FAILURE 6.1 wasm