Build Information
Failed to build Lingua, reference 1.0.6 (3b02ee), with Swift 6.3 for Wasm on 16 Apr 2026 22:21:51 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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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 {
[17/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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 {
[18/120] 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:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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 {
[19/120] Compiling LinguaLib FileCleanupStrategy.swift
[20/120] Compiling LinguaLib FileProcessor.swift
[21/120] Compiling LinguaLib LocalizedCodeFileGenerating.swift
[22/120] Compiling LinguaLib LocalizedContentFormatting.swift
[23/120] Compiling LinguaLib LocalizedContentGenerating.swift
[24/120] Compiling LinguaLib LocalizedFilesGenerating.swift
[25/120] Compiling LinguaLib LocalizedOutputGenerating.swift
[26/120] Compiling LinguaLib LocalizedSwiftCodeGenerating.swift
[27/120] Compiling LinguaLib LocalizedSwiftCodeOutputStringBuilder.swift
[28/120] Compiling LinguaLib MergableFileProcessor.swift
[29/120] Compiling LinguaLib PlatformFilesGenerating.swift
[30/120] Compiling LinguaLib PlatformFilesNameGenerating.swift
[31/120] Compiling LinguaLib PlatformLocalizationGenerating.swift
[32/120] Compiling LinguaLib SheetDataLoader.swift
[33/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[34/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[35/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[36/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[37/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[38/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[39/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[40/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[41/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[42/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[43/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[44/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[45/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[46/120] 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 | }
/host/spi-builder-workspace/Sources/LinguaLib/Infrastructure/Networking/HTTPClient/URLSessionHTTPClient.swift:9:44: error: default argument value of type '_' cannot be converted to type 'AnyObject'
7 | private let urlSession: URLSession
8 |
9 | init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
10 | self.urlSession = urlSession
11 | }
[47/120] Compiling LinguaLib LocalizationModule.swift
[48/120] Compiling LinguaLib LocalizationModuleFactory.swift
[49/120] Compiling LinguaLib FileCleanupFactory.swift
[50/120] Compiling LinguaLib LocalizedContentGeneratorFactory.swift
[51/120] Compiling LinguaLib LocalizedFilesGeneratorFactory.swift
[52/120] Compiling LinguaLib PlatformFilesNameGeneratorFactory.swift
[53/120] Compiling LinguaLib PlatformLocalizationGeneratorFactory.swift
[54/120] Compiling LinguaLib ConfigInitialFileGenerator.swift
[55/120] Compiling LinguaLib LocalizedContentGenerator.swift
[56/120] Compiling LinguaLib LocalizedFilesGenerator.swift
[57/120] Compiling LinguaLib LocalizedPlatformFilesGenerator.swift
[58/120] Compiling LinguaLib PlatformLocalizationGenerator.swift
[59/120] Compiling LinguaLib AndroidFileCleanupStrategy.swift
[60/120] Compiling LinguaLib AndroidNonPluralFormatter.swift
[61/120] 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)
[62/120] 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)
[63/120] 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)
[64/120] 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)
[65/120] 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)
[66/120] 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)
[67/120] 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)
[68/120] 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)
[69/120] 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)
[70/120] 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)
[71/120] 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)
[72/120] 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)
[73/120] 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)
[74/120] 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)
[75/120] Compiling LinguaLib String+Extension.swift
[76/120] Compiling LinguaLib CustomJSONEncoder.swift
[77/120] Compiling LinguaLib JSONDecoding.swift
[78/120] Compiling LinguaLib JSONEncoding.swift
[79/120] Compiling LinguaLib Command.swift
[80/120] Compiling LinguaLib Config.swift
[81/120] Compiling LinguaLib LocalizationEntry.swift
[82/120] Compiling LinguaLib LocalizationPlatform.swift
[83/120] Compiling LinguaLib LocalizationSheet.swift
[84/120] Compiling LinguaLib PluralCategory.swift
[85/120] Compiling LinguaLib DataParsing.swift
[86/120] Compiling LinguaLib FileReading.swift
[87/120] Compiling LinguaLib Transformable.swift
[88/120] Compiling LinguaLib ConfigInitialFileGenerating.swift
[89/120] Compiling LinguaLib GoogleSheetsFetchable.swift
[90/120] Compiling LinguaLib GoogleSheetsFetcher.swift
[91/120] Compiling LinguaLib SheetDataRequest.swift
[92/120] Compiling LinguaLib SheetNamesRequest.swift
[93/120] Compiling LinguaLib GoogleSheetErrorResponse.swift
[94/120] Compiling LinguaLib GoogleSheetsError.swift
[95/120] Compiling LinguaLib SheetDataResponse.swift
[96/120] Compiling LinguaLib SheetMetadata.swift
[97/120] Compiling LinguaLib ContentFileCreatable.swift
[98/120] Compiling LinguaLib ContentWritable.swift
[99/120] Compiling LinguaLib DirectoryOperable.swift
[100/120] Compiling LinguaLib DirectoryOperationError.swift
[101/120] Compiling LinguaLib FileManagerProvider.swift
[102/120] Compiling LinguaLib FileReader.swift
[103/120] Compiling LinguaLib AndroidPlaceholderMapper.swift
[104/120] Compiling LinguaLib AndroidPlatformFilesNameGenerator.swift
[105/120] Compiling LinguaLib AndroidPluralFormatter.swift
[106/120] Compiling LinguaLib AndroidStringEscaper.swift
[107/120] Compiling LinguaLib LocalizationEntry+Android.swift
[108/120] Compiling LinguaLib LocalizationPlaceholderMapping.swift
[109/120] Compiling LinguaLib LocalizedOutputGenerator.swift
[110/120] Compiling LinguaLib IOSFileCleanupStrategy.swift
[111/120] Compiling LinguaLib IOSNonPluralFormatter.swift
[112/120] Compiling LinguaLib IOSPlaceholderMapper.swift
[113/120] Compiling LinguaLib IOSPlatformFilesNameGenerator.swift
[114/120] Compiling LinguaLib IOSPluralFormatter.swift
[115/120] Compiling LinguaLib IOSStringEscaper.swift
[116/120] Compiling LinguaLib ConsoleLogger.swift
BUILD FAILURE 6.3 wasm