The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kiosk, reference main (32ca5b), with Swift 6.4 for Wasm on 27 Sep 2026 04:15:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/eliseyOzerov/kiosk-swift.git
Reference: main
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/eliseyOzerov/kiosk-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 32ca5b9 Add generated WebSocket routes
Cloned https://github.com/eliseyOzerov/kiosk-swift.git
Revision (git rev-parse @):
32ca5b94ace5fa46237068dafe9cb60114ef2cbc
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/eliseyOzerov/kiosk-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/eliseyOzerov/kiosk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/80069] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git (3.04s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (4.23s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 565]
[Planning deferred tasks]
[22 / 235] _SwiftSyntaxCShims
[132 / 247] SwiftSyntax601
[152 / 257] SwiftSyntax
[152 / 258] SwiftSyntax
[164 / 260] SwiftSyntax509
[165 / 260]
[168 / 261] SwiftSyntax
[181 / 289] SwiftParser
[190 / 289] SwiftBasicFormat
[195 / 289] SwiftParser
[196 / 289] SwiftParser
[199 / 289] SwiftParser
[203 / 289] SwiftParser
[205 / 289] SwiftDiagnostics
[207 / 289] SwiftDiagnostics
[207 / 289] SwiftParser
[209 / 289] SwiftDiagnostics
[212 / 289] SwiftDiagnostics
[213 / 289] SwiftParserDiagnostics
[214 / 289] SwiftParser
[217 / 291] SwiftParser
[226 / 311] SwiftParserDiagnostics
[227 / 311] SwiftParserDiagnostics
[229 / 312] SwiftOperators
[230 / 312] SwiftParserDiagnostics
[240 / 312] SwiftParserDiagnostics
[242 / 312] SwiftSyntaxBuilder
[243 / 312] SwiftSyntaxBuilder
[244 / 312] SwiftParserDiagnostics
[245 / 312] SwiftOperators
[247 / 312] SwiftOperators
[249 / 312] SwiftOperators
[255 / 322] SwiftSyntaxBuilder
[257 / 322] SwiftSyntaxBuilder
[259 / 323] SwiftSyntaxBuilder
[263 / 324] SwiftSyntaxBuilder
[269 / 324] SwiftSyntaxMacros
[276 / 334] SwiftSyntaxMacros
[281 / 334] SwiftSyntaxMacros
[291 / 344] SwiftSyntaxMacroExpansion
[293 / 345] SwiftSyntaxMacroExpansion
[294 / 345] SwiftSyntaxMacroExpansion
[302 / 345] SwiftSyntaxMacroExpansion
[309 / 356] SwiftCompilerPluginMessageHandling
[311 / 356] SwiftCompilerPluginMessageHandling
[313 / 357] SwiftSyntaxMacroExpansion
[322 / 357] SwiftCompilerPlugin
[325 / 360] SwiftCompilerPlugin
[330 / 360] SwiftCompilerPlugin
[332 / 361] SwiftCompilerPluginMessageHandling
[334 / 362] SwiftSyntax
[337 / 363] SwiftSyntax
[344 / 363] SwiftSyntaxMacros
[352 / 364] KioskMacros
[361 / 373] KioskMacros
[362 / 373] KioskMacros
[366 / 374] KioskMacros
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
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/Kiosk/Common/UrlBuilder.swift:327:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:327:61: error: value of type '_' expected to be instance of class or class-constrained type
325 |   }
326 |
327 |   public func http(tls: Bool = true, session: URLSession = .shared) -> HttpContext {
    |                                                             `- error: value of type '_' expected to be instance of class or class-constrained type
328 |     HttpContext(session: session, url: scheme(tls ? .https : .http))
329 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:45: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
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/Kiosk/Common/UrlBuilder.swift:331:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift:331:59: error: value of type '_' expected to be instance of class or class-constrained type
329 |   }
330 |
331 |   public func ws(tls: Bool = true, session: URLSession = .shared) -> WsContext {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
332 |     WsContext(session: session, url: scheme(tls ? .wss : .ws))
333 |   }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
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/Kiosk/HTTP/HttpContext.swift:20:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:20:28: error: value of type '_' expected to be instance of class or class-constrained type
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: value of type '_' expected to be instance of class or class-constrained type
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:20:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  18 |
  19 |   public init(
  20 |     session: URLSession = .shared,
     |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  21 |     url: UrlBuilder = .init(),
  22 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:509:18: error: cannot find type 'URLRequest' in scope
 507 |   /// Creates request-specific overrides. Nil values inherit URLSession defaults.
 508 |   public init(
 509 |     cachePolicy: URLRequest.CachePolicy? = nil,
     |                  `- error: cannot find type 'URLRequest' in scope
 510 |     timeoutInterval: TimeInterval? = nil,
 511 |     allowsCellularAccess: Bool? = nil,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:490:27: error: cannot find type 'URLRequest' in scope
 488 | public struct HttpOptions: Sendable {
 489 |   /// Overrides how this request interacts with URL caching.
 490 |   public var cachePolicy: URLRequest.CachePolicy?
     |                           `- error: cannot find type 'URLRequest' in scope
 491 |
 492 |   /// Overrides the idle timeout for this request.
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:7:14: error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   5 | /// Resolved HTTP context snapshot produced by folding a context node with its parents.
   6 | public struct ResolvedHttpContext: Sendable {
   7 |   public var session: URLSession
     |              `- error: stored property 'session' of 'Sendable'-conforming struct 'ResolvedHttpContext' has non-Sendable type 'AnyObject'
   8 |   public var url: UrlBuilder
   9 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:51:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  49 |   public let parent: HttpContext?
  50 |
  51 |   private var sessionOverride: URLSession?
     |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  52 |   private var schemeOverride: UrlScheme?
  53 |   private var hostOverride: String??
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/Kiosk/HTTP/HttpContext.swift:76:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  74 |
  75 |   /// The base session.
  76 |   public var session: URLSession {
     |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  77 |     get { fold().session }
  78 |     set { sessionOverride = newValue }
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/Kiosk/HTTP/HttpContext.swift:154:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 152 |   public init(
 153 |     parent: HttpContext? = nil,
 154 |     session: URLSession? = nil,
     |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 155 |     url: UrlBuilder = .init(),
 156 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/HTTP/HttpContext.swift:273:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
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/Kiosk/HTTP/HttpContext.swift:274:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
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/Kiosk/HTTP/HttpContext.swift:273:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 271 |     case missingHost
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
     |          `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:274:10: warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 272 |     case invalidURL
 273 |     case invalidResponse(URLResponse)
 274 |     case unsuccessfulStatus(HTTPStatusCode, Data, HTTPURLResponse)
     |          `- warning: associated value 'unsuccessfulStatus' of 'Sendable'-conforming enum 'Error' contains non-Sendable type 'AnyObject'
 275 |     case unexpectedStatus(HTTPStatusCode, Data)
 276 |     case unsupportedContentType(HTTPContentType)
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:437:15: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 435 |     statusCode: HTTPStatusCode,
 436 |     data: Data,
 437 |     response: HTTPURLResponse,
     |               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 438 |     wire: WireSpec
 439 |   ) throws -> (any Swift.Error)? {
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/Kiosk/HTTP/HttpContext.swift:459:22: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 457 | public struct HttpErrorDecoder: Sendable {
 458 |   private let decodeError:
 459 |     @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 460 |
 461 |   public init<Payload: Decodable & Sendable>(_ payload: Payload.Type) {
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/Kiosk/HTTP/HttpContext.swift:473:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 471 |   public init(
 472 |     _ decodeError:
 473 |       @escaping @Sendable (Data, HTTPURLResponse, WireSpec) throws -> any Swift.Error
     |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 474 |   ) {
 475 |     self.decodeError = decodeError
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/Kiosk/HTTP/HttpContext.swift:480:17: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 478 |   public func decode(
 479 |     _ data: Data,
 480 |     _ response: HTTPURLResponse,
     |                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 481 |     _ wire: WireSpec
 482 |   ) throws -> any Swift.Error {
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/Kiosk/HTTP/HttpContext.swift:826:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 824 |   }
 825 |
 826 |   public func session(_ session: URLSession) -> HttpContext {
     |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 827 |     sessionOverride = session
 828 |     return self
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/Kiosk/HTTP/HttpContext.swift:1363:44: error: cannot find type 'URLRequest' in scope
1361 |
1362 | extension HttpOptions {
1363 |   fileprivate func apply(to request: inout URLRequest) {
     |                                            `- error: cannot find type 'URLRequest' in scope
1364 |     if let cachePolicy {
1365 |       request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1385:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
     | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
1386 |   fileprivate var httpHeaders: [AnyHttpHeader] {
1387 |     allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:43:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 41 |
 42 |   public func close(
 43 |     code: URLSessionWebSocketTask.CloseCode = .normalClosure,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 44 |     reason: Data? = nil
 45 |   ) {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:57:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 55 |
 56 |   private static func receive(
 57 |     task: URLSessionWebSocketTask,
    |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 58 |     wire: WireSpec,
 59 |     state: SocketConnectionState<Output>
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:75:8: error: cannot find type 'URLSessionWebSocketTask' in scope
 73 |
 74 |   private static func encode(_ input: Input, wire: WireSpec) throws
 75 |     -> URLSessionWebSocketTask.Message
    |        `- error: cannot find type 'URLSessionWebSocketTask' in scope
 76 |   {
 77 |     guard wire.codec == .json else {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:94:19: error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private static func decode(
 93 |     _ output: Output.Type,
 94 |     from message: URLSessionWebSocketTask.Message,
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     wire: WireSpec
 96 |   ) throws -> Output {
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 | private final class SocketConnectionState<Output>: @unchecked Sendable {
126 |   private let lock = NSLock()
127 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |   private var wire: WireSpec?
129 |   private var receiveTask: Task<Void, Never>?
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:163:19: error: cannot find type 'URLSessionWebSocketTask' in scope
161 |   }
162 |
163 |   func open(task: URLSessionWebSocketTask, receiveTask: Task<Void, Never>, wire: WireSpec) {
    |                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
164 |     lock.lock()
165 |     isOpening = false
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:178:30: error: cannot find type 'URLSessionWebSocketTask' in scope
176 |   }
177 |
178 |   func openTask() throws -> (URLSessionWebSocketTask, WireSpec) {
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
179 |     lock.lock()
180 |     defer { lock.unlock() }
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:213:20: error: cannot find type 'URLSessionWebSocketTask' in scope
211 |   }
212 |
213 |   func close(code: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
214 |     lock.lock()
215 |     let task = task
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/StreamTransport.swift:12:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/StreamTransport.swift:12:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:12:28: error: value of type '_' expected to be instance of class or class-constrained type
10 |
11 |   public init(
12 |     session: URLSession = .shared,
   |                            `- error: value of type '_' expected to be instance of class or class-constrained type
13 |     url: UrlBuilder = .init(scheme: .wss),
14 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 3 | /// Request data used to open a long-lived stream transport.
 4 | public struct StreamRequest: Sendable {
 5 |   public var session: URLSession
   |              `- error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'AnyObject'
 6 |   public var url: UrlBuilder
 7 |   public var headers: HttpHeaderStorage
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:5:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | /// Fluent WebSocket context that builds and starts URLSessionWebSocketTask requests.
  4 | public struct WsContext: RequestContext {
  5 |   public var session: URLSession
    |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |   public var url: UrlBuilder
  7 |   public var headers: HttpHeaderStorage
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/Kiosk/WS/WsContext.swift:11:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
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/Kiosk/WS/WsContext.swift:11:28: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:11:28: error: value of type '_' expected to be instance of class or class-constrained type
  9 |
 10 |   public init(
 11 |     session: URLSession = .shared,
    |                            `- error: value of type '_' expected to be instance of class or class-constrained type
 12 |     url: UrlBuilder = .init(scheme: .wss),
 13 |     headers: HttpHeaderStorage = .init(),
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:43:34: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |   }
 42 |
 43 |   public func session(_ session: URLSession) -> WsContext {
    |                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     var context = self
 45 |     context.session = session
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/Kiosk/WS/WsContext.swift:49:35: error: cannot find type 'URLSessionWebSocketTask' in scope
 47 |   }
 48 |
 49 |   public func connect() throws -> URLSessionWebSocketTask {
    |                                   `- error: cannot find type 'URLSessionWebSocketTask' in scope
 50 |     let request = try makeRequest()
 51 |     let task = session.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:60:39: error: cannot find type 'URLRequest' in scope
 58 |   }
 59 |
 60 |   public func makeRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
 61 |     var request = URLRequest(url: try makeURL())
 62 |     options.apply(to: &request)
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:129:44: error: cannot find type 'URLRequest' in scope
127 |
128 | extension WsOptions {
129 |   fileprivate func apply(to request: inout URLRequest) {
    |                                            `- error: cannot find type 'URLRequest' in scope
130 |     if let timeoutInterval {
131 |       request.timeoutInterval = timeoutInterval
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Kiosk/APIParameters.swift /host/spi-builder-workspace/Sources/Kiosk/Common/HttpHeaderEncoder.swift /host/spi-builder-workspace/Sources/Kiosk/Common/RequestContext.swift /host/spi-builder-workspace/Sources/Kiosk/Common/UrlBuilder.swift /host/spi-builder-workspace/Sources/Kiosk/Common/UrlQueryEncoder.swift /host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift /host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpTypes.swift /host/spi-builder-workspace/Sources/Kiosk/Macros.swift /host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift /host/spi-builder-workspace/Sources/Kiosk/WS/StreamTransport.swift /host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift /host/spi-builder-workspace/Sources/Kiosk/Wire.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/KioskMacros\#KioskMacros -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Kiosk -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Kiosk_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Modules/Kiosk.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Modules/Kiosk.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Kiosk-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Kiosk-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Kiosk-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Kiosk.build/Debug-webassembly-wasm32/Kiosk-t.build/Objects-normal/wasm32/Modules/Kiosk.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm