Build Information
Failed to build TMDb, reference main (edbaef
), with Swift 6.1 for Wasm on 30 May 2025 04:06:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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
[214/232] Compiling TMDb APIRequestQueryItem.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
[215/232] 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
[216/232] 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
[217/232] 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
[218/232] 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
[219/232] 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
[220/232] 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
[221/232] 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
[222/232] 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
[223/232] 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
[224/232] 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
[225/232] 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
[226/232] 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
[227/232] 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
[228/232] 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
[229/232] 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
[230/232] 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
[231/232] 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
[232/232] 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
BUILD FAILURE 6.1 wasm