Build Information
Failed to build Lingua, reference 1.0.6 (3b02ee
), with Swift 6.1 for Wasm on 6 Sep 2025 06:49:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
| |- 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 {
[4/104] 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 {
[5/104] 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 {
[6/104] 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 {
[7/104] 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 {
[8/104] 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 {
[9/104] 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 {
[10/104] 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 {
[11/104] 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 {
[12/104] 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 {
[13/104] 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 {
[14/104] Compiling LinguaLib Request.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 {
[15/104] Compiling LinguaLib RequestExecutor.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 {
[16/118] 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)
[17/118] 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)
[18/118] 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)
[19/118] 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)
[20/118] 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)
[21/118] 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)
[22/118] 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)
[23/118] 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)
[24/118] 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)
[25/118] 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)
[26/118] 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)
[27/118] 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)
[28/118] 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)
[29/118] 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)
[30/118] Compiling LinguaLib LocalizationModule.swift
[31/118] Compiling LinguaLib LocalizationModuleFactory.swift
[32/118] Compiling LinguaLib FileCleanupFactory.swift
[33/118] Compiling LinguaLib LocalizedContentGeneratorFactory.swift
[34/118] Compiling LinguaLib LocalizedFilesGeneratorFactory.swift
[35/118] Compiling LinguaLib PlatformFilesNameGeneratorFactory.swift
[36/118] Compiling LinguaLib PlatformLocalizationGeneratorFactory.swift
[37/118] Compiling LinguaLib ConfigInitialFileGenerator.swift
[38/118] Compiling LinguaLib LocalizedContentGenerator.swift
[39/118] Compiling LinguaLib LocalizedFilesGenerator.swift
[40/118] Compiling LinguaLib LocalizedPlatformFilesGenerator.swift
[41/118] Compiling LinguaLib PlatformLocalizationGenerator.swift
[42/118] Compiling LinguaLib AndroidFileCleanupStrategy.swift
[43/118] Compiling LinguaLib AndroidNonPluralFormatter.swift
[44/118] Compiling LinguaLib AndroidPlaceholderMapper.swift
[45/118] Compiling LinguaLib AndroidPlatformFilesNameGenerator.swift
[46/118] Compiling LinguaLib AndroidPluralFormatter.swift
[47/118] Compiling LinguaLib AndroidStringEscaper.swift
[48/118] Compiling LinguaLib LocalizationEntry+Android.swift
[49/118] Compiling LinguaLib LocalizationPlaceholderMapping.swift
[50/118] Compiling LinguaLib LocalizedOutputGenerator.swift
[51/118] Compiling LinguaLib IOSFileCleanupStrategy.swift
[52/118] Compiling LinguaLib IOSNonPluralFormatter.swift
[53/118] Compiling LinguaLib IOSPlaceholderMapper.swift
[54/118] Compiling LinguaLib IOSPlatformFilesNameGenerator.swift
[55/118] Compiling LinguaLib IOSPluralFormatter.swift
[56/118] Compiling LinguaLib IOSStringEscaper.swift
[57/118] Compiling LinguaLib ConsoleLogger.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[58/118] Emitting module LinguaLib
/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/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/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
[59/118] Compiling LinguaLib String+Extension.swift
[60/118] Compiling LinguaLib CustomJSONEncoder.swift
[61/118] Compiling LinguaLib JSONDecoding.swift
[62/118] Compiling LinguaLib JSONEncoding.swift
[63/118] Compiling LinguaLib Command.swift
[64/118] Compiling LinguaLib Config.swift
[65/118] Compiling LinguaLib LocalizationEntry.swift
[66/118] Compiling LinguaLib LocalizationPlatform.swift
[67/118] Compiling LinguaLib LocalizationSheet.swift
[68/118] Compiling LinguaLib PluralCategory.swift
[69/118] Compiling LinguaLib DataParsing.swift
[70/118] Compiling LinguaLib FileReading.swift
[71/118] Compiling LinguaLib Transformable.swift
[72/118] Compiling LinguaLib ConfigInitialFileGenerating.swift
[73/118] Compiling LinguaLib StringEscaping.swift
/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 | }
[74/118] Compiling LinguaLib Config+Default.swift
/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 | }
[75/118] Compiling LinguaLib ConfigDto.swift
/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 | }
[76/118] Compiling LinguaLib ConfigDtoTransformer.swift
/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 | }
[77/118] Compiling LinguaLib ConfigTransformer.swift
/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 | }
[78/118] Compiling LinguaLib EntityFileLoader.swift
/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 | }
[79/118] Compiling LinguaLib EntityLoaderFactory.swift
/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 | }
[80/118] Compiling LinguaLib JSONDataParser.swift
/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 | }
[81/118] Compiling LinguaLib LocalizationSheetDataDecoder.swift
/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 | }
[82/118] Compiling LinguaLib SheetTranslationBuilder.swift
/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 | }
[83/118] Compiling LinguaLib GoogleSheetDataLoader.swift
/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 | }
[84/118] Compiling LinguaLib GoogleSheetDataLoaderFactory.swift
/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 | }
[85/118] Compiling LinguaLib GoogleSheetsAPIConfig.swift
/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 | }
[86/118] Compiling LinguaLib GoogleSheetsErrorHandler.swift
/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 | }
[87/118] Compiling LinguaLib FileCleanupStrategy.swift
[88/118] Compiling LinguaLib FileProcessor.swift
[89/118] Compiling LinguaLib LocalizedCodeFileGenerating.swift
[90/118] Compiling LinguaLib LocalizedContentFormatting.swift
[91/118] Compiling LinguaLib LocalizedContentGenerating.swift
[92/118] Compiling LinguaLib LocalizedFilesGenerating.swift
[93/118] Compiling LinguaLib LocalizedOutputGenerating.swift
[94/118] Compiling LinguaLib LocalizedSwiftCodeGenerating.swift
[95/118] Compiling LinguaLib LocalizedSwiftCodeOutputStringBuilder.swift
[96/118] Compiling LinguaLib MergableFileProcessor.swift
[97/118] Compiling LinguaLib PlatformFilesGenerating.swift
[98/118] Compiling LinguaLib PlatformFilesNameGenerating.swift
[99/118] Compiling LinguaLib PlatformLocalizationGenerating.swift
[100/118] Compiling LinguaLib SheetDataLoader.swift
[101/118] Compiling LinguaLib GoogleSheetsFetchable.swift
[102/118] Compiling LinguaLib GoogleSheetsFetcher.swift
[103/118] Compiling LinguaLib SheetDataRequest.swift
[104/118] Compiling LinguaLib SheetNamesRequest.swift
[105/118] Compiling LinguaLib GoogleSheetErrorResponse.swift
[106/118] Compiling LinguaLib GoogleSheetsError.swift
[107/118] Compiling LinguaLib SheetDataResponse.swift
[108/118] Compiling LinguaLib SheetMetadata.swift
[109/118] Compiling LinguaLib ContentFileCreatable.swift
[110/118] Compiling LinguaLib ContentWritable.swift
[111/118] Compiling LinguaLib DirectoryOperable.swift
[112/118] Compiling LinguaLib DirectoryOperationError.swift
[113/118] Compiling LinguaLib FileManagerProvider.swift
[114/118] Compiling LinguaLib FileReader.swift
BUILD FAILURE 6.1 wasm