Build Information
Failed to build StarCraftKit, reference master (14d27b
), with Swift 6.1 for Wasm on 13 Jul 2025 11:25:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: TournamentEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:149:17: warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
150 | let cacheKey = buildCacheKey(for: request)
151 |
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:189:17: warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
187 |
188 | /// Execute a paginated request and return all pages
189 | public func executePaginated<T: Decodable>(_ request: any APIRequest, maxPages: Int? = nil) async throws -> [T] {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
190 | var allItems: [T] = []
191 | var currentPage = 1
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/102] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[30/102] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[31/102] Compiling ArgumentParser CodingKeyValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[32/102] Compiling ArgumentParser NonsenseFlagsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[33/102] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[34/102] Compiling ArgumentParser PositionalArgumentsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[35/102] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[36/102] Compiling StarCraftKit APIError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[37/102] Compiling StarCraftKit NetworkingClient.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[38/102] Compiling StarCraftKit RetryHandler.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[39/102] Compiling StarCraftKit PlayerEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[40/102] Compiling StarCraftKit SeriesEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[41/102] Compiling StarCraftKit TeamEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[42/102] Compiling StarCraftKit Series.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[43/102] Compiling StarCraftKit Team.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[44/102] Compiling StarCraftKit Tournament.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[45/102] Compiling StarCraftKit DateFormatter+Extensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[46/102] Compiling StarCraftKit LeagueEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[47/102] Compiling StarCraftKit MatchEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[48/102] Compiling StarCraftKit ResponseCache.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[49/102] Compiling StarCraftKit StreamingRequest.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:149:17: warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
150 | let cacheKey = buildCacheKey(for: request)
151 |
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:189:17: warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
187 |
188 | /// Execute a paginated request and return all pages
189 | public func executePaginated<T: Decodable>(_ request: any APIRequest, maxPages: Int? = nil) async throws -> [T] {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
190 | var allItems: [T] = []
191 | var currentPage = 1
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:153:83: warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
150 | let cacheKey = buildCacheKey(for: request)
151 |
152 | if request.cachePolicy != .noCache {
153 | if let cached: (data: T, headers: [String: String]) = try await cache.get(
| `- warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
154 | for: cacheKey,
155 | type: T.self,
[50/102] Compiling StarCraftKit StarCraftClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:149:17: warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
150 | let cacheKey = buildCacheKey(for: request)
151 |
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:189:17: warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
187 |
188 | /// Execute a paginated request and return all pages
189 | public func executePaginated<T: Decodable>(_ request: any APIRequest, maxPages: Int? = nil) async throws -> [T] {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
190 | var allItems: [T] = []
191 | var currentPage = 1
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:153:83: warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
150 | let cacheKey = buildCacheKey(for: request)
151 |
152 | if request.cachePolicy != .noCache {
153 | if let cached: (data: T, headers: [String: String]) = try await cache.get(
| `- warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
154 | for: cacheKey,
155 | type: T.self,
[51/102] Compiling StarCraftKit StarCraftKit.swift
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:149:17: warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type 'T' cannot be returned from actor-isolated implementation to caller of protocol requirement 'execute'; this is an error in the Swift 6 language mode
150 | let cacheKey = buildCacheKey(for: request)
151 |
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:189:17: warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
187 |
188 | /// Execute a paginated request and return all pages
189 | public func executePaginated<T: Decodable>(_ request: any APIRequest, maxPages: Int? = nil) async throws -> [T] {
| | `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
| `- warning: non-sendable type '[T]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'executePaginated(_:maxPages:)'; this is an error in the Swift 6 language mode
190 | var allItems: [T] = []
191 | var currentPage = 1
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/StarCraftClient.swift:153:83: warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
147 |
148 | /// Execute an API request
149 | public func execute<T: Decodable>(_ request: any APIRequest) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
150 | let cacheKey = buildCacheKey(for: request)
151 |
152 | if request.cachePolicy != .noCache {
153 | if let cached: (data: T, headers: [String: String]) = try await cache.get(
| `- warning: non-sendable result type '(data: T, headers: [String : String])?' cannot be sent from actor-isolated context in call to instance method 'get(for:type:decoder:)'; this is an error in the Swift 6 language mode
154 | for: cacheKey,
155 | type: T.self,
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[55/102] Compiling StarCraftKit TournamentEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: TournamentEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[56/102] Compiling StarCraftKit League.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: TournamentEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[57/102] Compiling StarCraftKit Match.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: TournamentEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
[68/102] Compiling StarCraftKit PaginationInfo.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[69/102] Compiling StarCraftKit Player.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[70/102] Compiling StarCraftKit QueryParameters.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[71/102] Compiling StarCraftKit APIClientProtocol.swift
[72/102] Compiling StarCraftKit APIRequest.swift
[73/102] Compiling StarCraftKit Endpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[86/102] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[87/102] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[88/102] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[89/102] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[90/102] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[91/102] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[92/102] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[93/102] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[94/102] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[95/102] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[96/102] Compiling ArgumentParser ArgumentSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[97/102] Compiling ArgumentParser CommandParser.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/12] Write swift-version-24593BA9C3E375BF.txt
[6/19] Compiling Logging MetadataProvider.swift
[7/19] Compiling Logging LogHandler.swift
[8/19] Compiling Logging Locks.swift
[9/19] Emitting module Logging
[10/19] Compiling ArgumentParserToolInfo ToolInfo.swift
[11/19] Emitting module ArgumentParserToolInfo
[13/20] Compiling Logging Logging.swift
[14/20] Wrapping AST for Logging for debugging
[16/87] Compiling StarCraftKit APIError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[17/87] Compiling StarCraftKit NetworkingClient.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[18/87] Compiling StarCraftKit RetryHandler.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[19/87] Compiling StarCraftKit TournamentEndpoint.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[20/87] Compiling StarCraftKit League.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[21/87] Compiling StarCraftKit Match.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[22/93] Compiling StarCraftKit APIClientProtocol.swift
[23/93] Compiling StarCraftKit APIRequest.swift
[24/93] Compiling StarCraftKit Endpoint.swift
[25/96] Compiling ArgumentParser CollectionExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[26/96] Compiling ArgumentParser Mutex.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[27/96] Compiling ArgumentParser Platform.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[28/96] Compiling ArgumentParser SequenceExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[29/96] Compiling ArgumentParser StringExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[30/96] Compiling ArgumentParser SwiftExtensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[31/96] Compiling StarCraftKit StreamingRequest.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
[32/96] Compiling StarCraftKit StarCraftClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
[33/96] Compiling StarCraftKit StarCraftKit.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
[34/96] Compiling StarCraftKit DateFormatter+Extensions.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[35/96] Compiling StarCraftKit LeagueEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[36/96] Compiling StarCraftKit MatchEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[37/96] Compiling StarCraftKit PlayerEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[38/96] Compiling StarCraftKit SeriesEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[39/96] Compiling StarCraftKit TeamEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[40/96] Compiling ArgumentParser Tree.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[41/96] Compiling ArgumentParser CodingKeyValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[42/96] Compiling ArgumentParser NonsenseFlagsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[43/96] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[44/96] Compiling ArgumentParser PositionalArgumentsValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[45/96] Compiling ArgumentParser UniqueNamesValidator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/96] Emitting module StarCraftKit
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [League]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/MatchEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: MatchEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'MatchesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Player]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/SeriesEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: SeriesEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'SeriesRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TeamEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
18 | public typealias Response = [Team]
19 |
20 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TeamsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
31 |
32 | public let endpoint: TournamentEndpoint
33 | public let queryParameters: [String: Any]
| `- warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' has non-sendable type '[String : Any]'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[47/96] Compiling StarCraftKit Series.swift
[48/96] Compiling StarCraftKit Team.swift
[49/96] Compiling StarCraftKit Tournament.swift
[50/96] Compiling StarCraftKit PaginationInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[51/96] Compiling StarCraftKit Player.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[52/96] Compiling StarCraftKit QueryParameters.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[62/96] Compiling StarCraftKit ResponseCache.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[63/96] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
/host/spi-builder-workspace/Sources/StarCraftKit/Models/API/QueryParameters.swift:12:16: warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
10 |
11 | /// Filter parameters
12 | public var filters: [String: Any]?
| `- warning: stored property 'filters' of 'Sendable'-conforming struct 'QueryParameters' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[67/96] Compiling ArgumentParser InputKey.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[68/96] Compiling ArgumentParser InputOrigin.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[69/96] Compiling ArgumentParser Name.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[70/96] Compiling ArgumentParser Parsed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[71/96] Compiling ArgumentParser ParsedValues.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[72/96] Compiling ArgumentParser ParserError.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[79/96] Compiling ArgumentParser SplitArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[80/96] Compiling ArgumentParser DumpHelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[81/96] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[82/96] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[83/96] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
[84/96] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
15 | internal import class Foundation.ProcessInfo
16 | #else
17 | @preconcurrency import class Dispatch.DispatchSemaphore
| `- error: no such module 'Dispatch'
18 | import class Foundation.NSLock
19 | import class Foundation.ProcessInfo
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:9:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | /// Core networking client for API communication
8 | public actor NetworkingClient: Sendable {
9 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | private let logger: Logger
11 | 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:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | defaultHeaders: [String: String] = [:],
22 | 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:20:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:32:20: error: cannot find type 'URLRequest' in scope
30 | /// Execute a network request
31 | public func execute<T: Decodable>(
32 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
33 | responseType: T.Type,
34 | decoder: JSONDecoder = JSONDecoder()
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:87:17: error: cannot find type 'URLRequest' in scope
85 | headers: [String: String] = [:],
86 | body: Data? = nil
87 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
88 | guard let url = URL(string: path, relativeTo: baseURL) else {
89 | throw APIError.invalidRequest(reason: "Invalid path: \(path)")
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:138:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | }
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
140 | 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:150:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | }
149 |
150 | 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.
151 | switch response.statusCode {
152 | 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:54:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
52 | #else
53 | // Apple platforms
54 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
55 | #endif
56 |
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 | }
111 |
112 | var request = URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
113 | request.httpMethod = method.rawValue
114 | request.httpBody = body
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:139:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
137 |
138 | private func updateRateLimitInfo(from response: HTTPURLResponse) {
139 | if let remainingString = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | let remaining = Int(remainingString) {
141 | rateLimitRemaining = remaining
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:144:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
142 | }
143 |
144 | if let resetString = response.value(forHTTPHeaderField: "X-Rate-Limit-Reset"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
145 | let resetTimestamp = TimeInterval(resetString) {
146 | rateLimitResetTime = Date(timeIntervalSince1970: resetTimestamp)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:151:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
149 |
150 | private func validateResponse(_ response: HTTPURLResponse, data: Data) throws {
151 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
152 | case 200...299:
153 | return
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:164:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 | throw APIError.forbidden(message: errorResponse?.message ?? "Plan does not support requested URL")
163 | case 404:
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:166:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
164 | throw APIError.notFound(resource: response.url?.absoluteString ?? "unknown")
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:167:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
165 | case 429:
166 | let retryAfter = response.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
167 | let remaining = response.value(forHTTPHeaderField: "X-Rate-Limit-Remaining").flatMap(Int.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
168 | throw APIError.rateLimitExceeded(retryAfter: retryAfter, remaining: remaining)
169 | case 500...599:
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:171:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 | case 500...599:
170 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
171 | throw APIError.serverError(statusCode: response.statusCode, message: errorResponse?.message)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:174:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 | default:
173 | let errorResponse = try? JSONDecoder().decode(ErrorResponse.self, from: data)
174 | throw APIError.httpError(statusCode: response.statusCode, response: errorResponse)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | }
176 | }
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/RetryHandler.swift:131:18: error: cannot find type 'URLRequest' in scope
129 | func executeRequest<T: Decodable>(
130 | client: NetworkingClient,
131 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
132 | responseType: T.Type,
133 | decoder: JSONDecoder = JSONDecoder()
BUILD FAILURE 6.1 wasm