Build Information
Failed to build StarCraftKit, reference 2.0.0 (313b9a), with Swift 6.3 for Wasm on 16 Apr 2026 13:18:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/StarCraftKit.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/guitaripod/StarCraftKit
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 313b9ac chore: update PKGBUILD checksum for 2.0.0 release
Cloned https://github.com/guitaripod/StarCraftKit.git
Revision (git rev-parse @):
313b9acb1f5e90b3927344b922e054a5d7d15419
SUCCESS checkout https://github.com/guitaripod/StarCraftKit.git at 2.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/guitaripod/StarCraftKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-log
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
[229/19800] Fetching swift-docc-plugin, swift-argument-parser
[405/26388] Fetching swift-docc-plugin, swift-argument-parser, swift-log
Fetched https://github.com/apple/swift-log from cache (0.81s)
[15245/19800] Fetching swift-docc-plugin, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin from cache (0.82s)
[13668/17523] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.25s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.50s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.40s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.96s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.43s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.12.0 (0.47s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
[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/17] Write sources
[9/17] Write swift-version-24593BA9C3E375BF.txt
[11/25] Compiling Logging MetadataProvider.swift
[12/25] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/25] Emitting module ArgumentParserToolInfo
[14/26] Wrapping AST for ArgumentParserToolInfo for debugging
[16/72] Emitting module Logging
[17/72] Compiling Logging Locks.swift
[18/72] Compiling Logging Logging.swift
[19/72] Compiling Logging LogEvent.swift
[20/72] Compiling Logging LogHandler.swift
[21/73] Wrapping AST for Logging for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/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:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[24/99] Emitting module ArgumentParser
[25/105] Compiling ArgumentParser Foundation.swift
[26/105] Compiling ArgumentParser Mutex.swift
[27/105] Compiling ArgumentParser Platform.swift
[28/105] Compiling ArgumentParser SequenceExtensions.swift
[29/105] Compiling ArgumentParser StringExtensions.swift
[30/105] Compiling ArgumentParser SwiftExtensions.swift
[31/105] Compiling ArgumentParser ParentCommand.swift
[32/105] Compiling ArgumentParser AsyncParsableCommand.swift
[33/105] Compiling ArgumentParser CommandConfiguration.swift
[34/105] Compiling ArgumentParser CommandGroup.swift
[35/105] Compiling ArgumentParser EnumerableFlag.swift
[36/105] Compiling ArgumentParser ExpressibleByArgument.swift
[37/105] Compiling ArgumentParser ParsableArguments.swift
[38/105] Compiling StarCraftKit APIClientProtocol.swift
[39/105] Compiling StarCraftKit APIRequest.swift
[40/105] Compiling StarCraftKit Endpoint.swift
[41/105] 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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[42/105] Compiling StarCraftKit LeagueEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[43/105] Compiling StarCraftKit MatchEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/LeagueEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'LeaguesRequest' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[44/105] Compiling StarCraftKit PlayerEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[45/105] Compiling StarCraftKit SeriesEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[46/105] Compiling StarCraftKit TeamEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/PlayerEndpoint.swift:20:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'PlayersRequest' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
21 |
22 | public var path: String {
[47/105] Compiling StarCraftKit ResponseCache.swift
/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:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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()
[48/105] Compiling StarCraftKit APIError.swift
/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:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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()
[49/105] Compiling StarCraftKit NetworkingClient.swift
/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:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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()
[50/105] Compiling StarCraftKit RetryHandler.swift
/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:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
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()
[51/105] Compiling ArgumentParser InputOrigin.swift
[52/105] Compiling ArgumentParser Name.swift
[53/105] Compiling ArgumentParser Parsed.swift
[54/105] Compiling ArgumentParser ParsedValues.swift
[55/105] Compiling ArgumentParser ParserError.swift
[56/105] Compiling ArgumentParser SplitArguments.swift
[57/105] Compiling StarCraftKit Series.swift
[58/105] Compiling StarCraftKit Team.swift
[59/105] Compiling StarCraftKit Tournament.swift
[60/105] 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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[61/105] 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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[62/105] 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' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
13 |
14 | /// Search parameters
[63/105] Compiling StarCraftKit StreamingRequest.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/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()
[64/105] Compiling StarCraftKit StarCraftClient.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/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()
[65/105] Compiling StarCraftKit StarCraftKit.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Core/Networking/NetworkingClient.swift:20:32: error: value of type '_' expected to be instance of class or class-constrained type
18 | public init(
19 | baseURL: URL,
20 | session: URLSession = .shared,
| `- error: value of type '_' expected to be instance of class or class-constrained type
21 | defaultHeaders: [String: String] = [:],
22 | logger: Logger = Logger(label: "StarCraftKit.NetworkingClient")
/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()
[66/105] Compiling StarCraftKit TournamentEndpoint.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[67/105] Compiling StarCraftKit League.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
[68/105] Compiling StarCraftKit Match.swift
/host/spi-builder-workspace/Sources/StarCraftKit/Endpoints/TournamentEndpoint.swift:33:16: warning: stored property 'queryParameters' of 'Sendable'-conforming struct 'TournamentsRequest' contains non-Sendable type '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' contains non-Sendable type 'Any'; this is an error in the Swift 6 language mode
34 |
35 | public var path: String {
BUILD FAILURE 6.3 wasm