Build Information
Failed to build Lingua, reference v1.1.1 (e5f78a), with Swift 6.1 for Wasm on 25 Jun 2026 22:15:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[72/138] Compiling LinguaLib ConsoleLogger.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[73/138] Compiling LinguaLib ConsolePrinter.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[74/138] Compiling LinguaLib LogLevel.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[75/138] Compiling LinguaLib Logger.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[76/138] Compiling LinguaLib Printer.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[77/138] Compiling LinguaLib URLComponentsProvider.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[78/138] Compiling LinguaLib HTTPClient.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[79/138] Compiling LinguaLib HTTPMethod.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[80/138] Compiling LinguaLib InvalidHTTPResponseError.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[81/138] Compiling LinguaLib URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[82/138] Compiling LinguaLib APIError.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[83/138] Compiling LinguaLib APIErrorHandler.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[84/138] Compiling LinguaLib APIRequestExecutor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:32: error: cannot find type 'URLRequest' in scope
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
8 | }
9 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:7:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | protocol HTTPClient {
7 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:11:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | try await fetchData(with: .init(url: url))
13 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:32: error: no exact matches in call to initializer
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| |- error: no exact matches in call to initializer
| |- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
| |- note: candidate expects value of type 'any Decoder' for parameter #1 (got 'URL')
| `- note: candidate expects value of type 'String' for parameter #1 (got 'URL')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/HTTPClient.swift:12:24: error: incorrect argument label in call (have 'with:', expected 'from:')
10 | extension HTTPClient {
11 | func fetchData(from url: URL) async throws -> (Data, HTTPURLResponse) {
12 | try await fetchData(with: .init(url: url))
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
13 | }
14 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:7:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | class URLSessionHTTPClient: HTTPClient {
7 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | self.urlSession = urlSession
11 | }
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 | self.urlSession = urlSession
11 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:32: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:13:67: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
13 | func fetchData(with request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | #if canImport(FoundationNetworking)
15 | return try await makeData(for: request)
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:30: error: cannot find type 'URLRequest' in scope
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:27:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | private extension URLSessionHTTPClient {
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
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/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:17:49: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 | return try await makeData(for: request)
16 | #else
17 | let (data, response) = try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
18 | guard let httpResponse = response as? HTTPURLResponse else {
19 | throw InvalidHTTPResponseError(statusCode: 0, data: data)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:29:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
27 | func makeData(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
28 | try await withCheckedThrowingContinuation { continuation in
29 | let task = urlSession.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
30 | if let error = error {
31 | continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:35:52: error: cannot find type 'URLRequest' in scope
33 | }
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
37 |
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/APIRequestExecutor.swift:36:62: error: incorrect argument label in call (have 'with:', expected 'from:')
34 |
35 | private func execute<T: Decodable>(with request: URLRequest) async throws -> T {
36 | let (data, httpResponse) = try await httpClient.fetchData(with: request)
| `- error: incorrect argument label in call (have 'with:', expected 'from:')
37 |
38 | guard validStatusCodes.contains(httpResponse.statusCode) else {
[85/138] Compiling LinguaLib Request.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[86/138] Compiling LinguaLib RequestExecutor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[87/138] Compiling LinguaLib URLRequestBuilder.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[88/138] Compiling LinguaLib DefaultLocalizedSwiftCodeOutputStringBuilder.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[89/138] Compiling LinguaLib LocalizedSwiftCodeGenerator.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[90/138] Compiling LinguaLib LocalizedSwiftFileGeneratorFactory.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[91/138] Compiling LinguaLib NullLocalizedCodeFileGenerator.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[92/138] Compiling LinguaLib SwiftLocalizedCodeFileGenerator.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[93/138] Compiling LinguaLib NSRegularExpressionPlaceholderExtractor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[94/138] Compiling LinguaLib Placeholder.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[95/138] Compiling LinguaLib PlaceholderExtractor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[96/138] Compiling LinguaLib PlaceholderExtractorStrategy.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[97/138] Compiling LinguaLib RegexPlaceholderExtractor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[98/138] Compiling LinguaLib FileSectionAndTranslationProcessor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[99/138] Compiling LinguaLib StringsDictFileProcessor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[100/138] Compiling LinguaLib StringsFileProcessor.swift
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:13:53: error: cannot find type 'URLRequest' in scope
11 | }
12 |
13 | func build<R: Request>(from request: R) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
14 | guard let url = URL(string: baseURLString)?.appendingPathComponent(request.path) else {
15 | throw APIError.invalidRequest
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/RequestExecutor/URLRequestBuilder.swift:20:22: error: cannot find 'URLRequest' in scope
18 | let finalURL = try buildURL(url: url, queryItems: request.queryItems)
19 |
20 | var urlRequest = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
21 | urlRequest.httpMethod = request.method.rawValue
22 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsDictFileProcessor.swift:20:51: error: argument passed to call that takes no arguments
18 |
19 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
20 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: NSDictionary] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
21 | var translations: [String: String] = [:]
22 | var sections: Set<String> = []
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/SwiftLocalizeGenerator/Processor/StringsFileProcessor.swift:15:51: error: argument passed to call that takes no arguments
13 |
14 | func processFile(section: String, path: String) -> (translations: [String: String], sections: Set<String>) {
15 | guard let dict = NSDictionary(contentsOfFile: path) as? [String: String] else { return ([:], []) }
| `- error: argument passed to call that takes no arguments
16 | let sections = Set(dict.keys)
17 | return (dict, sections)
[101/138] Compiling LinguaLib CanonicalSheetSelector.swift
[102/138] Compiling LinguaLib DeleteTranslationUseCase.swift
[103/138] Compiling LinguaLib DoctorUseCase.swift
[104/138] Compiling LinguaLib FindTranslationUseCase.swift
[105/138] Compiling LinguaLib ListSectionsUseCase.swift
[106/138] Compiling LinguaLib ListTranslationsUseCase.swift
[107/138] Compiling LinguaLib PluralColumnLayout.swift
[108/138] Compiling LinguaLib SectionSummary.swift
[109/138] Compiling LinguaLib UpdateTranslationUseCase.swift
[110/138] Compiling LinguaLib DataParsing.swift
[111/138] Compiling LinguaLib FileReading.swift
[112/138] Compiling LinguaLib Transformable.swift
[113/138] Compiling LinguaLib ConfigInitialFileGenerating.swift
[114/138] Compiling LinguaLib FileCleanupStrategy.swift
[115/138] Compiling LinguaLib FileProcessor.swift
[116/138] Compiling LinguaLib LocalizedCodeFileGenerating.swift
[117/138] Compiling LinguaLib LocalizedContentFormatting.swift
[118/138] Compiling LinguaLib LocalizedContentGenerating.swift
[119/138] Compiling LinguaLib LocalizedFilesGenerating.swift
[120/138] Compiling LinguaLib LocalizedOutputGenerating.swift
[121/138] Compiling LinguaLib LocalizedSwiftCodeGenerating.swift
[122/138] Compiling LinguaLib LocalizedSwiftCodeOutputStringBuilder.swift
[123/138] Compiling LinguaLib MergableFileProcessor.swift
[124/138] Compiling LinguaLib PlatformFilesGenerating.swift
[125/138] Compiling LinguaLib PlatformFilesNameGenerating.swift
[126/138] Compiling LinguaLib PlatformLocalizationGenerating.swift
[127/138] Compiling LinguaLib SheetDataLoader.swift
[128/138] Compiling LinguaLib StringEscaping.swift
[129/138] Compiling LinguaLib Config+Default.swift
[130/138] Compiling LinguaLib ConfigDto.swift
[131/138] Compiling LinguaLib ConfigDtoTransformer.swift
[132/138] Compiling LinguaLib ConfigTransformer.swift
[133/138] Compiling LinguaLib EntityFileLoader.swift
[134/138] Compiling LinguaLib EntityLoaderFactory.swift
BUILD FAILURE 6.1 wasm