The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SpeedrunKit, reference master (284107), with Swift 6.1 for Wasm on 13 Jul 2025 11:30:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guitaripod/SpeedrunKit.git
Reference: master
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/SpeedrunKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2841076 Update GitHub username from marcusziade to guitaripod
Cloned https://github.com/guitaripod/SpeedrunKit.git
Revision (git rev-parse @):
28410767f30bc2987d4fa57dc1d1205b48420a34
SUCCESS checkout https://github.com/guitaripod/SpeedrunKit.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/guitaripod/SpeedrunKit.git
https://github.com/guitaripod/SpeedrunKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "SpeedrunKit",
  "name" : "SpeedrunKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SpeedrunKit",
      "targets" : [
        "SpeedrunKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "speedrun-cli",
      "targets" : [
        "SpeedrunCLI"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SpeedrunKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SpeedrunKitTests",
      "path" : "Tests/SpeedrunKitTests",
      "sources" : [
        "API/PaginationParametersTests.swift",
        "API/SpeedrunConfigurationTests.swift",
        "Models/AssetTests.swift",
        "Models/ColorTests.swift",
        "Models/EnumTests.swift",
        "Models/LinkTests.swift",
        "Models/NamesTests.swift",
        "Networking/SpeedrunErrorTests.swift",
        "SpeedrunKitTests.swift"
      ],
      "target_dependencies" : [
        "SpeedrunKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SpeedrunKit",
      "module_type" : "SwiftTarget",
      "name" : "SpeedrunKit",
      "path" : "Sources/SpeedrunKit",
      "product_memberships" : [
        "SpeedrunKit",
        "speedrun-cli"
      ],
      "sources" : [
        "API/CategoriesAPI.swift",
        "API/Endpoint.swift",
        "API/GamesAPI.swift",
        "API/GamesAPIImpl.swift",
        "API/GenresAPI.swift",
        "API/LeaderboardsAPI.swift",
        "API/LevelsAPI.swift",
        "API/PaginatedResponse.swift",
        "API/PlatformsAPI.swift",
        "API/ProfileAPI.swift",
        "API/RegionsAPI.swift",
        "API/ResourceProtocol.swift",
        "API/RunsAPI.swift",
        "API/SeriesAPI.swift",
        "API/SpeedrunClientProtocol.swift",
        "API/SpeedrunConfiguration.swift",
        "API/UsersAPI.swift",
        "API/VariablesAPI.swift",
        "Models/APIResponse.swift",
        "Models/Asset.swift",
        "Models/Category.swift",
        "Models/Color.swift",
        "Models/Developer.swift",
        "Models/Engine.swift",
        "Models/Game.swift",
        "Models/GameType.swift",
        "Models/Genre.swift",
        "Models/Leaderboard.swift",
        "Models/Level.swift",
        "Models/Link.swift",
        "Models/Location.swift",
        "Models/Names.swift",
        "Models/Notification.swift",
        "Models/Platform.swift",
        "Models/Publisher.swift",
        "Models/Region.swift",
        "Models/Run.swift",
        "Models/RunSubmit.swift",
        "Models/Series.swift",
        "Models/User.swift",
        "Models/Variable.swift",
        "Networking/NetworkProtocol.swift",
        "Networking/SpeedrunError.swift",
        "Networking/URLSessionNetwork.swift",
        "SpeedrunKit.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SpeedrunCLI",
      "module_type" : "SwiftTarget",
      "name" : "SpeedrunCLI",
      "path" : "Sources/SpeedrunCLI",
      "product_memberships" : [
        "speedrun-cli"
      ],
      "sources" : [
        "CLI.swift",
        "Commands/GamesCommand.swift",
        "Commands/LeaderboardsCommand.swift",
        "Commands/RunsCommand.swift",
        "Commands/SearchCommand.swift",
        "Commands/SeriesCommand.swift",
        "Commands/UsersCommand.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "SpeedrunKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2094] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.35s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (2.33s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3425] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.32s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.88s)
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/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/9] Write sources
[4/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/50] Emitting module SpeedrunKit
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
[7/55] Compiling SpeedrunKit Variable.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[8/55] Compiling SpeedrunKit NetworkProtocol.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[9/55] Compiling SpeedrunKit SpeedrunError.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[10/55] Compiling SpeedrunKit URLSessionNetwork.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[11/55] Compiling SpeedrunKit SpeedrunKit.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[12/55] Compiling SpeedrunKit Region.swift
[13/55] Compiling SpeedrunKit Run.swift
[14/55] Compiling SpeedrunKit RunSubmit.swift
[15/55] Compiling SpeedrunKit Series.swift
[16/55] Compiling SpeedrunKit User.swift
[17/55] Compiling SpeedrunKit APIResponse.swift
[18/55] Compiling SpeedrunKit Asset.swift
[19/55] Compiling SpeedrunKit Category.swift
[20/55] Compiling SpeedrunKit Color.swift
[21/55] Compiling SpeedrunKit Developer.swift
[22/55] Compiling SpeedrunKit Engine.swift
[23/55] Compiling SpeedrunKit Game.swift
[24/55] Compiling SpeedrunKit GameType.swift
[25/55] Compiling SpeedrunKit Genre.swift
[26/55] Compiling SpeedrunKit Leaderboard.swift
[27/55] Compiling SpeedrunKit Level.swift
[28/55] Compiling SpeedrunKit Link.swift
[29/55] Compiling SpeedrunKit Location.swift
[30/55] Compiling SpeedrunKit Names.swift
[31/55] Compiling SpeedrunKit Notification.swift
[32/55] Compiling SpeedrunKit Platform.swift
[33/55] Compiling SpeedrunKit Publisher.swift
[34/55] Compiling SpeedrunKit LevelsAPI.swift
[35/55] Compiling SpeedrunKit PaginatedResponse.swift
[36/55] Compiling SpeedrunKit PlatformsAPI.swift
[37/55] Compiling SpeedrunKit ProfileAPI.swift
[38/55] Compiling SpeedrunKit RegionsAPI.swift
[39/55] Compiling SpeedrunKit ResourceProtocol.swift
[40/55] Compiling SpeedrunKit RunsAPI.swift
[41/55] Compiling SpeedrunKit SeriesAPI.swift
[42/55] Compiling SpeedrunKit SpeedrunClientProtocol.swift
[43/55] Compiling SpeedrunKit SpeedrunConfiguration.swift
[44/55] Compiling SpeedrunKit UsersAPI.swift
[45/55] Compiling SpeedrunKit VariablesAPI.swift
[46/55] Compiling SpeedrunKit CategoriesAPI.swift
[47/55] Compiling SpeedrunKit Endpoint.swift
[48/55] Compiling SpeedrunKit GamesAPI.swift
[49/55] Compiling SpeedrunKit GamesAPIImpl.swift
[50/55] Compiling SpeedrunKit GenresAPI.swift
[51/55] Compiling SpeedrunKit LeaderboardsAPI.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
[2/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/48] Emitting module SpeedrunKit
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
[5/53] Compiling SpeedrunKit Variable.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[6/53] Compiling SpeedrunKit NetworkProtocol.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[7/53] Compiling SpeedrunKit SpeedrunError.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[8/53] Compiling SpeedrunKit URLSessionNetwork.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[9/53] Compiling SpeedrunKit SpeedrunKit.swift
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
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/SpeedrunKit/Networking/URLSessionNetwork.swift:118:17: error: cannot find type 'URLRequest' in scope
116 |         method: HTTPMethod,
117 |         queryItems: [URLQueryItem]? = nil
118 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
119 |         // Build URL
120 |         guard var components = URLComponents(string: configuration.baseURL.absoluteString + endpoint) else {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:144:51: error: cannot find type 'URLRequest' in scope
142 |     }
143 |
144 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
145 |         var lastError: Error?
146 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:188:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     }
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |         guard let httpResponse = response as? HTTPURLResponse else {
190 |             throw SpeedrunError.unknown("Invalid response type")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:40: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:213:74: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     private func debugPrint(_ request: URLRequest, data: Data, response: URLResponse) {
    |                                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         print("=== SpeedrunKit Request ===")
215 |         print("URL: \(request.url?.absoluteString ?? "nil")")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:30:17: warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 28 | public final class URLSessionNetwork: NetworkProtocol {
 29 |     private let configuration: SpeedrunConfiguration
 30 |     private let session: URLSession
    |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'URLSessionNetwork' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
 31 |     private let decoder: JSONDecoder
 32 |     private let encoder: JSONEncoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:40:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 38 |
 39 |         // Configure URLSession
 40 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |         sessionConfig.timeoutIntervalForRequest = configuration.timeoutInterval
 42 |         sessionConfig.httpAdditionalHeaders = [
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:47:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 45 |         ]
 46 |
 47 |         self.session = URLSession(configuration: sessionConfig)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 48 |
 49 |         // Configure JSON decoder
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:86:69: error: cannot infer contextual base in reference to member 'get'
 84 |     /// Performs a GET request to the specified endpoint
 85 |     public func get<T: Decodable>(_ endpoint: String, queryItems: [URLQueryItem]?) async throws -> T {
 86 |         let request = try buildRequest(endpoint: endpoint, method: .get, queryItems: queryItems)
    |                                                                     `- error: cannot infer contextual base in reference to member 'get'
 87 |         return try await perform(request)
 88 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:92:69: error: cannot infer contextual base in reference to member 'post'
 90 |     /// Performs a POST request to the specified endpoint
 91 |     public func post<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
 92 |         var request = try buildRequest(endpoint: endpoint, method: .post)
    |                                                                     `- error: cannot infer contextual base in reference to member 'post'
 93 |         request.httpBody = try encoder.encode(body)
 94 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:100:69: error: cannot infer contextual base in reference to member 'put'
 98 |     /// Performs a PUT request to the specified endpoint
 99 |     public func put<T: Decodable, U: Encodable>(_ endpoint: String, body: U) async throws -> T {
100 |         var request = try buildRequest(endpoint: endpoint, method: .put)
    |                                                                     `- error: cannot infer contextual base in reference to member 'put'
101 |         request.httpBody = try encoder.encode(body)
102 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:108:69: error: cannot infer contextual base in reference to member 'delete'
106 |     /// Performs a DELETE request to the specified endpoint
107 |     public func delete<T: Decodable>(_ endpoint: String) async throws -> T {
108 |         let request = try buildRequest(endpoint: endpoint, method: .delete)
    |                                                                     `- error: cannot infer contextual base in reference to member 'delete'
109 |         return try await perform(request)
110 |     }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:133:23: error: cannot find 'URLRequest' in scope
131 |
132 |         // Build request
133 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
134 |         request.httpMethod = method.rawValue
135 |
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:155:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
153 |
154 |             do {
155 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
156 |
157 |                 if configuration.debugLogging {
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:189:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 |
188 |     private func validateResponse(_ response: URLResponse, data: Data) throws {
189 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |             throw SpeedrunError.unknown("Invalid response type")
191 |         }
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/SpeedrunKit/Networking/URLSessionNetwork.swift:193:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
191 |         }
192 |
193 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
194 |         case 200...299:
195 |             return
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:208:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |             } else {
207 |                 let message = String(data: data, encoding: .utf8) ?? "Unknown error"
208 |                 throw SpeedrunError.httpError(statusCode: httpResponse.statusCode, message: message)
    |                                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |             }
210 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:227:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 |
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
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/SpeedrunKit/Networking/URLSessionNetwork.swift:228:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
226 |         print("\n=== SpeedrunKit Response ===")
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
229 |             print("Headers: \(httpResponse.allHeaderFields)")
230 |         }
/host/spi-builder-workspace/Sources/SpeedrunKit/Networking/URLSessionNetwork.swift:229:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
227 |         if let httpResponse = response as? HTTPURLResponse {
228 |             print("Status: \(httpResponse.statusCode)")
229 |             print("Headers: \(httpResponse.allHeaderFields)")
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
230 |         }
231 |
[10/53] Compiling SpeedrunKit Location.swift
[11/53] Compiling SpeedrunKit Names.swift
[12/53] Compiling SpeedrunKit Notification.swift
[13/53] Compiling SpeedrunKit Platform.swift
[14/53] Compiling SpeedrunKit Publisher.swift
[15/53] Compiling SpeedrunKit Game.swift
[16/53] Compiling SpeedrunKit GameType.swift
[17/53] Compiling SpeedrunKit Genre.swift
[18/53] Compiling SpeedrunKit Leaderboard.swift
[19/53] Compiling SpeedrunKit Level.swift
[20/53] Compiling SpeedrunKit Link.swift
[21/53] Compiling SpeedrunKit APIResponse.swift
[22/53] Compiling SpeedrunKit Asset.swift
[23/53] Compiling SpeedrunKit Category.swift
[24/53] Compiling SpeedrunKit Color.swift
[25/53] Compiling SpeedrunKit Developer.swift
[26/53] Compiling SpeedrunKit Engine.swift
[27/53] Compiling SpeedrunKit RunsAPI.swift
[28/53] Compiling SpeedrunKit SeriesAPI.swift
[29/53] Compiling SpeedrunKit SpeedrunClientProtocol.swift
[30/53] Compiling SpeedrunKit SpeedrunConfiguration.swift
[31/53] Compiling SpeedrunKit UsersAPI.swift
[32/53] Compiling SpeedrunKit VariablesAPI.swift
[33/53] Compiling SpeedrunKit CategoriesAPI.swift
[34/53] Compiling SpeedrunKit Endpoint.swift
[35/53] Compiling SpeedrunKit GamesAPI.swift
[36/53] Compiling SpeedrunKit GamesAPIImpl.swift
[37/53] Compiling SpeedrunKit GenresAPI.swift
[38/53] Compiling SpeedrunKit LeaderboardsAPI.swift
[39/53] Compiling SpeedrunKit Region.swift
[40/53] Compiling SpeedrunKit Run.swift
[41/53] Compiling SpeedrunKit RunSubmit.swift
[42/53] Compiling SpeedrunKit Series.swift
[43/53] Compiling SpeedrunKit User.swift
[44/53] Compiling SpeedrunKit LevelsAPI.swift
[45/53] Compiling SpeedrunKit PaginatedResponse.swift
[46/53] Compiling SpeedrunKit PlatformsAPI.swift
[47/53] Compiling SpeedrunKit ProfileAPI.swift
[48/53] Compiling SpeedrunKit RegionsAPI.swift
[49/53] Compiling SpeedrunKit ResourceProtocol.swift
BUILD FAILURE 6.1 wasm