Build Information
Failed to build TMDb, reference 13.4.0 (9874e1), with Swift 6.1 for Wasm on 5 Dec 2025 23:32:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
100 | }
101 | #endif
[146/234] Compiling TMDb CodableAPIRequest.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
[147/234] Compiling TMDb DecodableAPIRequest.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
[148/234] Compiling TMDb APIConfiguration.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
[149/234] Compiling TMDb AccountAvatar.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
[150/234] Compiling TMDb AccountDetails.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
[151/234] Compiling TMDb AggregrateCastMember.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
[152/234] Compiling TMDb AggregrateCrewMember.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
[153/234] Compiling TMDb CastMember.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
[154/234] Compiling TMDb CastRole.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
[155/234] Compiling TMDb Certification.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
[156/234] 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
[157/234] 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
[158/234] 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
[159/234] 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
[160/234] 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
[161/234] 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
[162/234] 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
[163/234] 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
[164/234] 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
[165/234] Compiling TMDb TVEpisodeImageCollection.swift
[166/234] Compiling TMDb TVSeason.swift
[167/234] Compiling TMDb TVSeasonAggregateCredits.swift
[168/234] Compiling TMDb TVSeasonImageCollection.swift
[169/234] Compiling TMDb TVSeries.swift
[170/234] Compiling TMDb TVSeriesAggregateCredits.swift
[171/234] Compiling TMDb TVSeriesExternalLinksCollection.swift
[172/234] Compiling TMDb TVSeriesListItem.swift
[173/234] Compiling TMDb TVSeriesPageableList.swift
[174/234] Compiling TMDb TikTokLink.swift
[175/234] Compiling TMDb Token.swift
[176/234] Compiling TMDb TwitterLink.swift
[177/234] Compiling TMDb VideoCollection.swift
[178/234] Compiling TMDb VideoMetadata.swift
[179/234] Compiling TMDb VideoSize.swift
[180/234] Compiling TMDb VideoType.swift
[181/234] Compiling TMDb WatchProvider.swift
[182/234] Compiling TMDb WatchProviderRegions.swift
[183/234] Compiling TMDb WatchProviderResult.swift
[184/234] Compiling TMDb WikiDataLink.swift
[185/234] Compiling TMDb AccountService.swift
[186/234] Compiling TMDb AccountRequest.swift
[187/234] Compiling TMDb AddFavouriteRequest.swift
[188/234] Compiling TMDb Department.swift
[189/234] Compiling TMDb ExternalLink.swift
[190/234] Compiling TMDb FacebookLink.swift
[191/234] Compiling TMDb Gender.swift
[192/234] Compiling TMDb Genre.swift
[193/234] Compiling TMDb GenreList.swift
[194/234] Compiling TMDb GuestSession.swift
[195/234] Compiling TMDb IMDbLink.swift
[196/234] Compiling TMDb ImageCollection.swift
[197/234] Compiling TMDb ImageMetadata.swift
[198/234] Compiling TMDb ImagesConfiguration+URLs.swift
[199/234] Compiling TMDb ImagesConfiguration.swift
[200/234] Compiling TMDb InstagramLink.swift
[201/234] Compiling TMDb Language.swift
[202/234] Compiling TMDb Media.swift
[203/234] Compiling TMDb MediaPageableList.swift
[204/234] Compiling TMDb Movie.swift
[205/234] Compiling TMDb MovieExternalLinksCollection.swift
[206/234] Compiling TMDb MovieListItem.swift
[207/234] Compiling TMDb MoviePageableList.swift
[208/234] Compiling TMDb Network.swift
[209/234] Compiling TMDb PageableListResult.swift
[210/234] Compiling TMDb Person.swift
[211/234] Compiling TMDb PersonCombinedCredits.swift
[212/234] Compiling TMDb TMDbTVSeasonService.swift
[213/234] Compiling TMDb TVSeasonService.swift
[214/234] Compiling TMDb TVSeriesImageFilter.swift
[215/234] Compiling TMDb TVSeriesVideoFilter.swift
[216/234] Compiling TMDb ContentRatingRequest.swift
[217/234] Compiling TMDb PopularTVSeriesRequest.swift
[218/234] Compiling TMDb SimilarTVSeriesRequest.swift
[219/234] Compiling TMDb TVSeriesAggregateCreditsRequest.swift
[220/234] Compiling TMDb TVSeriesCreditsRequest.swift
[221/234] Compiling TMDb TVSeriesExternalLinksRequest.swift
[222/234] Compiling TMDb TVSeriesImagesRequest.swift
[223/234] Compiling TMDb TVSeriesRecommendationsRequest.swift
[224/234] Compiling TMDb TVSeriesRequest.swift
[225/234] Compiling TMDb TVSeriesReviewsRequest.swift
[226/234] Compiling TMDb TVSeriesVideosRequest.swift
[227/234] Compiling TMDb TVSeriesWatchProvidersRequest.swift
[228/234] Compiling TMDb TMDbTVSeriesService.swift
[229/234] Compiling TMDb TVSeriesService.swift
[230/234] Compiling TMDb TrendingTimeWindowFilterType.swift
[231/234] Compiling TMDb TrendingMoviesRequest.swift
[232/234] Compiling TMDb TrendingPeopleRequest.swift
[233/234] Compiling TMDb TrendingTVSeriesRequest.swift
[234/234] Compiling TMDb TMDbTrendingService.swift
BUILD FAILURE 6.1 wasm