Build Information
Failed to build StarCraftKit, reference master (b36215), with Swift 6.2 for Wasm on 14 Jul 2026 19:18:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
133 | }
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 | let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | }
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | switch response.statusCode {
150 | case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | let data: Data
39 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | do {
41 | #if canImport(FoundationNetworking)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 | }
54 | #else
55 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | #endif
57 | } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
69 | updateRateLimitInfo(from: httpResponse)
70 |
71 | let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
72 | if let key = header.key as? String, let value = header.value as? String {
73 | result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
112 | request.httpMethod = method.rawValue
113 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | let remaining = Int(remainingString) {
138 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 | case 200...299:
151 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 | case 404:
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 | case 500...599:
168 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 | }
174 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[44/116] Compiling StarCraftKit NetworkingClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
12 | public actor NetworkingClient {
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let logger: Logger
15 | private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: value of type '_' expected to be instance of class or class-constrained type
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
33 |
34 | /// Execute a request and return the validated raw response body and headers.
35 | public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
| `- error: cannot find type 'URLRequest' in scope
36 | logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | }
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 | let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | }
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | switch response.statusCode {
150 | case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | let data: Data
39 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | do {
41 | #if canImport(FoundationNetworking)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 | }
54 | #else
55 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | #endif
57 | } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
69 | updateRateLimitInfo(from: httpResponse)
70 |
71 | let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
72 | if let key = header.key as? String, let value = header.value as? String {
73 | result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
112 | request.httpMethod = method.rawValue
113 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | let remaining = Int(remainingString) {
138 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 | case 200...299:
151 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 | case 404:
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 | case 500...599:
168 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 | }
174 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[45/116] Compiling StarCraftKit RetryHandler.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
12 | public actor NetworkingClient {
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let logger: Logger
15 | private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: value of type '_' expected to be instance of class or class-constrained type
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
33 |
34 | /// Execute a request and return the validated raw response body and headers.
35 | public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
| `- error: cannot find type 'URLRequest' in scope
36 | logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | }
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 | let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | }
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | switch response.statusCode {
150 | case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | let data: Data
39 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | do {
41 | #if canImport(FoundationNetworking)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 | }
54 | #else
55 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | #endif
57 | } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
69 | updateRateLimitInfo(from: httpResponse)
70 |
71 | let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
72 | if let key = header.key as? String, let value = header.value as? String {
73 | result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
112 | request.httpMethod = method.rawValue
113 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | let remaining = Int(remainingString) {
138 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 | case 200...299:
151 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 | case 404:
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 | case 500...599:
168 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 | }
174 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[46/116] Compiling StarCraftKit DateFormatter+Extensions.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
12 | public actor NetworkingClient {
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let logger: Logger
15 | private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: value of type '_' expected to be instance of class or class-constrained type
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
33 |
34 | /// Execute a request and return the validated raw response body and headers.
35 | public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
| `- error: cannot find type 'URLRequest' in scope
36 | logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | }
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 | let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | }
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | switch response.statusCode {
150 | case 200...299:
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/StarCraftKit/Core/Networking/NetworkingClient.swift:39:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |
38 | let data: Data
39 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | do {
41 | #if canImport(FoundationNetworking)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:55:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 | }
54 | #else
55 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
56 | #endif
57 | } catch let error as APIError {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:65:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | }
64 |
65 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | throw APIError.networkError(underlying: URLError(.badServerResponse))
67 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:71:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
69 | updateRateLimitInfo(from: httpResponse)
70 |
71 | let headers = httpResponse.allHeaderFields.reduce(into: [String: String]()) { result, header in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
72 | if let key = header.key as? String, let value = header.value as? String {
73 | result[key.lowercased()] = value
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:111:23: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
112 | request.httpMethod = method.rawValue
113 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:136:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 | let remaining = Int(remainingString) {
138 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:149:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
149 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
150 | case 200...299:
151 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:162:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
160 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
161 | case 404:
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
162 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:165:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
163 | case 429:
164 | let retryAfter = Self.parseRetryAfter(response.value(forHTTPHeaderField: "Retry-After"))
165 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
166 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
167 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:169:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
167 | case 500...599:
168 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
169 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:172:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
170 | default:
171 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
172 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 | }
174 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[47/120] Compiling StarCraftKit SeriesEndpoint.swift
[48/120] Compiling StarCraftKit Series.swift
[49/120] Compiling StarCraftKit Team.swift
[50/120] Compiling StarCraftKit Tournament.swift
[51/120] Compiling StarCraftKit APIClientProtocol.swift
[52/120] Compiling StarCraftKit APIRequest.swift
[53/120] Compiling StarCraftKit Endpoint.swift
[54/120] Compiling StarCraftKit AligulacClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 | let request = try await networkingClient.buildRequest(
171 | path: path,
172 | method: .get,
| `- error: cannot infer contextual base in reference to member 'get'
173 | queryParameters: queryParams
174 | )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 | throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 | }
118 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
119 | request.httpMethod = "GET"
120 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 | private func fetchToken() async throws -> BlizzardToken {
137 | var request = URLRequest(url: oauthURL)
| `- error: cannot find 'URLRequest' in scope
138 | request.httpMethod = "POST"
139 | let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[55/120] Compiling StarCraftKit AligulacModels.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 | let request = try await networkingClient.buildRequest(
171 | path: path,
172 | method: .get,
| `- error: cannot infer contextual base in reference to member 'get'
173 | queryParameters: queryParams
174 | )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 | throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 | }
118 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
119 | request.httpMethod = "GET"
120 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 | private func fetchToken() async throws -> BlizzardToken {
137 | var request = URLRequest(url: oauthURL)
| `- error: cannot find 'URLRequest' in scope
138 | request.httpMethod = "POST"
139 | let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
[56/120] Compiling StarCraftKit BlizzardClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 | let request = try await networkingClient.buildRequest(
171 | path: path,
172 | method: .get,
| `- error: cannot infer contextual base in reference to member 'get'
173 | queryParameters: queryParams
174 | )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 | throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 | }
118 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
119 | request.httpMethod = "GET"
120 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 | private func fetchToken() async throws -> BlizzardToken {
137 | var request = URLRequest(url: oauthURL)
| `- error: cannot find 'URLRequest' in scope
138 | request.httpMethod = "POST"
139 | let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 | let request = try await networkingClient.buildRequest(
171 | path: path,
172 | method: .get,
| `- error: cannot infer contextual base in reference to member 'get'
173 | queryParameters: queryParams
174 | )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 | throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 | }
118 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
119 | request.httpMethod = "GET"
120 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 | private func fetchToken() async throws -> BlizzardToken {
137 | var request = URLRequest(url: oauthURL)
| `- error: cannot find 'URLRequest' in scope
138 | request.httpMethod = "POST"
139 | let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:172:22: error: cannot infer contextual base in reference to member 'get'
170 | let request = try await networkingClient.buildRequest(
171 | path: path,
172 | method: .get,
| `- error: cannot infer contextual base in reference to member 'get'
173 | queryParameters: queryParams
174 | )
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:118:23: error: cannot find 'URLRequest' in scope
116 | throw APIError.invalidRequest(reason: "Invalid Blizzard path: \(path)")
117 | }
118 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
119 | request.httpMethod = "GET"
120 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:137:23: error: cannot find 'URLRequest' in scope
135 |
136 | private func fetchToken() async throws -> BlizzardToken {
137 | var request = URLRequest(url: oauthURL)
| `- error: cannot find 'URLRequest' in scope
138 | request.httpMethod = "POST"
139 | let basic = Data("\(credentials.clientId):\(credentials.clientSecret)".utf8).base64EncodedString()
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | ) {
41 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
34 |
35 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | public init(configuration: Configuration = Configuration()) {
49 | self.configuration = configuration
50 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 | private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 | let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
| `- error: cannot infer contextual base in reference to member 'get'
178 | return try await retryHandler.send(client: networkingClient, request: request)
179 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | ) {
41 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
34 |
35 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | public init(configuration: Configuration = Configuration()) {
49 | self.configuration = configuration
50 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 | private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 | let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
| `- error: cannot infer contextual base in reference to member 'get'
178 | return try await retryHandler.send(client: networkingClient, request: request)
179 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[61/120] Compiling StarCraftKit SC2PulseClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | ) {
41 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
34 |
35 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | public init(configuration: Configuration = Configuration()) {
49 | self.configuration = configuration
50 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 | private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 | let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
| `- error: cannot infer contextual base in reference to member 'get'
178 | return try await retryHandler.send(client: networkingClient, request: request)
179 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[62/120] Compiling StarCraftKit SC2PulseModels.swift
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | ) {
41 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
34 |
35 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | public init(configuration: Configuration = Configuration()) {
49 | self.configuration = configuration
50 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:177:84: error: cannot infer contextual base in reference to member 'get'
175 |
176 | private func fetch(path: String, query: [String: QueryValue]) async throws -> (Data, [String: String]) {
177 | let request = try await networkingClient.buildRequest(path: path, method: .get, queryParameters: query)
| `- error: cannot infer contextual base in reference to member 'get'
178 | return try await retryHandler.send(client: networkingClient, request: request)
179 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
[65/120] Compiling StarCraftKit PaginationInfo.swift
[66/120] Compiling StarCraftKit Player.swift
[67/120] Compiling StarCraftKit QueryParameters.swift
[68/120] Compiling StarCraftKit QueryValue.swift
[69/120] Compiling ArgumentParser AsyncCompletionsValidator.swift
[70/120] Compiling ArgumentParser CodingKeyValidator.swift
[71/120] Compiling ArgumentParser NonsenseFlagsValidator.swift
[72/120] Compiling ArgumentParser ParsableArgumentsValidation.swift
[73/120] Compiling ArgumentParser PositionalArgumentsValidator.swift
[74/120] Compiling ArgumentParser UniqueNamesValidator.swift
[75/120] Compiling ArgumentParser HelpCommand.swift
[76/120] Compiling ArgumentParser HelpGenerator.swift
[77/120] Compiling ArgumentParser MessageInfo.swift
[78/120] Compiling ArgumentParser UsageGenerator.swift
[79/120] Compiling ArgumentParser CollectionExtensions.swift
[80/120] Compiling ArgumentParser Foundation.swift
[81/120] Compiling StarCraftKit StarCraftClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | ) {
100 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: value of type '_' expected to be instance of class or class-constrained type
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
73 |
74 | /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 | for request: any APIRequest,
274 | overridingQuery: [String: QueryValue]?
275 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 | var queryParams = overridingQuery ?? request.queryParameters
277 | if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 | }
118 |
119 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 | self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 | }
247 |
248 | let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
| `- error: 'nil' requires a contextual type
249 | let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
[82/120] Compiling StarCraftKit StarCraftKit.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | ) {
100 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: value of type '_' expected to be instance of class or class-constrained type
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
73 |
74 | /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 | for request: any APIRequest,
274 | overridingQuery: [String: QueryValue]?
275 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 | var queryParams = overridingQuery ?? request.queryParameters
277 | if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 | }
118 |
119 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 | self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 | }
247 |
248 | let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
| `- error: 'nil' requires a contextual type
249 | let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
[83/120] Compiling StarCraftKit StarCraft.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | ) {
100 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: value of type '_' expected to be instance of class or class-constrained type
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
73 |
74 | /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 | for request: any APIRequest,
274 | overridingQuery: [String: QueryValue]?
275 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 | var queryParams = overridingQuery ?? request.queryParameters
277 | if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 | }
118 |
119 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 | self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 | }
247 |
248 | let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
| `- error: 'nil' requires a contextual type
249 | let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
[84/120] Compiling StarCraftKit StarCraftComposites.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | ) {
100 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: value of type '_' expected to be instance of class or class-constrained type
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
73 |
74 | /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 | for request: any APIRequest,
274 | overridingQuery: [String: QueryValue]?
275 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 | var queryParams = overridingQuery ?? request.queryParameters
277 | if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 | }
118 |
119 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 | self.networkingClient = NetworkingClient(
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:248:83: error: 'nil' requires a contextual type
246 | }
247 |
248 | let urlRequest = try await buildURLRequest(for: request, overridingQuery: nil)
| `- error: 'nil' requires a contextual type
249 | let (data, headers) = try await retryHandler.send(client: networkingClient, request: urlRequest)
250 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
[85/120] Compiling StarCraftKit LeagueEndpoint.swift
[86/120] Compiling StarCraftKit MatchEndpoint.swift
[87/120] Compiling StarCraftKit PlayerEndpoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[89/120] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | ) {
46 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: value of type '_' expected to be instance of class or class-constrained type
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:44:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
42 | baseURL: URL = URL(string: "https://aligulac.com/api/v1/")!,
43 | retryConfiguration: RetryConfiguration = .default,
44 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
45 | ) {
46 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:38:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
36 | public let baseURL: URL
37 | public let retryConfiguration: RetryConfiguration
38 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
39 |
40 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Aligulac/AligulacClient.swift:55:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | public init(configuration: Configuration) {
54 | self.configuration = configuration
55 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
56 | self.networkingClient = NetworkingClient(
57 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public actor BlizzardClient {
18 | private let credentials: BlizzardCredentials
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | private let networkingClient: NetworkingClient
21 | private let retryHandler: RetryHandler
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/StarCraftKit/Blizzard/BlizzardClient.swift:32:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ) {
40 | self.credentials = credentials
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: value of type '_' expected to be instance of class or class-constrained type
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:38:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
36 | oauthURL: URL = URL(string: "https://oauth.battle.net/token")!,
37 | retryConfiguration: RetryConfiguration = .default,
38 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
39 | ) {
40 | self.credentials = credentials
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:32:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
30 | public let oauthURL: URL
31 | public let retryConfiguration: RetryConfiguration
32 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
33 |
34 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/Blizzard/BlizzardClient.swift:50:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | self.credentials = configuration.credentials
49 | self.oauthURL = configuration.oauthURL
50 | self.session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: URL(string: "https://us.api.blizzard.com")!,
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// store the original response bytes (avoiding an `Encodable` round-trip).
12 | public actor NetworkingClient {
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let logger: Logger
15 | private let baseURL: URL
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
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/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: value of type '_' expected to be instance of class or class-constrained type
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:24:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | public init(
23 | baseURL: URL,
24 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | defaultHeaders: [String: String] = [:],
26 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:35:33: error: cannot find type 'URLRequest' in scope
33 |
34 | /// Execute a request and return the validated raw response body and headers.
35 | public func send(_ request: URLRequest) async throws -> (data: Data, headers: [String: String]) {
| `- error: cannot find type 'URLRequest' in scope
36 | logger.debug("Executing request: \(request.url?.absoluteString ?? "unknown")")
37 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:89:17: error: cannot find type 'URLRequest' in scope
87 | headers: [String: String] = [:],
88 | body: Data? = nil
89 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | let normalizedPath = path.hasPrefix("/") ? String(path.dropFirst()) : path
91 | guard let url = URL(string: normalizedPath, relativeTo: baseURL) else {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:135:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | }
134 |
135 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
137 | let remaining = Int(remainingString) {
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/StarCraftKit/Core/Networking/NetworkingClient.swift:148:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | }
147 |
148 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | switch response.statusCode {
150 | case 200...299:
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/StarCraftKit/Core/Networking/RetryHandler.swift:132:18: error: cannot find type 'URLRequest' in scope
130 | func send(
131 | client: NetworkingClient,
132 | request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
133 | ) async throws -> (data: Data, headers: [String: String]) {
134 | try await execute {
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | public init(
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | ) {
41 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: value of type '_' expected to be instance of class or class-constrained type
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:39:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
37 | userAgent: String = "StarCraftKit/2.0 (+https://github.com/guitaripod/StarCraftKit)",
38 | retryConfiguration: RetryConfiguration = .default,
39 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
40 | ) {
41 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:33:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
31 | public let userAgent: String
32 | public let retryConfiguration: RetryConfiguration
33 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
34 |
35 | public init(
/host/spi-builder-workspace/Sources/StarCraftKit/SC2Pulse/SC2PulseClient.swift:50:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
48 | public init(configuration: Configuration = Configuration()) {
49 | self.configuration = configuration
50 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 | self.networkingClient = NetworkingClient(
52 | baseURL: configuration.baseURL,
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | /// The API token (alias for ``apiKey``).
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | ) {
100 | self.apiKey = apiKey
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: value of type '_' expected to be instance of class or class-constrained type
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:98:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
96 | retryConfiguration: RetryConfiguration = .default,
97 | cacheConfiguration: CacheConfiguration = CacheConfiguration(),
98 | urlSessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
99 | ) {
100 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:72:20: error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
70 | public let retryConfiguration: RetryConfiguration
71 | public let cacheConfiguration: CacheConfiguration
72 | public let urlSessionConfiguration: URLSessionConfiguration
| `- error: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
73 |
74 | /// The API token (alias for ``apiKey``).
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:275:23: error: cannot find type 'URLRequest' in scope
273 | for request: any APIRequest,
274 | overridingQuery: [String: QueryValue]?
275 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 | var queryParams = overridingQuery ?? request.queryParameters
277 | if configuration.authMethod == .queryParameter {
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:119:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
117 | }
118 |
119 | let session = URLSession(configuration: configuration.urlSessionConfiguration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
120 |
121 | self.networkingClient = NetworkingClient(
[98/120] Compiling StarCraftKit TeamEndpoint.swift
[99/120] Compiling StarCraftKit TournamentEndpoint.swift
[100/120] Compiling StarCraftKit League.swift
[101/120] Compiling StarCraftKit Match.swift
BUILD FAILURE 6.2 wasm