Build Information
Failed to build Kiosk, reference main (32ca5b), with Swift 6.2 for Android on 18 Aug 2026 15:33:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
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: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/eliseyOzerov/kiosk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:573917aa137cc6f081a4f3d2a0330bac24553e9cd713cd758adf65046f5c6b90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax.git
[1/76506] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.20s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (4.18s)
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
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/601.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/601.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.20s)
Building for debugging...
[0/6] Write sources
[2/6] Write swift-version--11D90AFD9DD3AB2.txt
[4/40] Emitting module KioskMacros
[5/44] Compiling KioskMacros JsonMacro.swift
[6/44] Compiling KioskMacros LerpMacro.swift
[7/44] Compiling KioskMacros MapMacro.swift
[8/44] Compiling KioskMacros MergeMacro.swift
[9/44] Compiling KioskMacros Plugin.swift
[10/44] Compiling KioskMacros SnapMacro.swift
[11/44] Compiling KioskMacros StringMacro.swift
[12/44] Compiling KioskMacros StyleMacro.swift
[13/44] Compiling KioskMacros DataMacro.swift
[14/44] Compiling KioskMacros KeyMacro.swift
[15/44] Compiling KioskMacros ErasedMacro.swift
[16/44] Compiling KioskMacros InitMacro.swift
[17/44] Compiling KioskMacros ParamMacro.swift
[18/44] Compiling KioskMacros RouteMacro.swift
[19/44] Compiling KioskMacros CodecMacro.swift
[20/44] Compiling KioskMacros DefaultMacro.swift
[21/44] Compiling KioskMacros FieldMacro.swift
[22/44] Compiling KioskMacros MacroSyntaxSupport.swift
[23/44] Compiling KioskMacros ContentMacro.swift
[24/44] Compiling KioskMacros DeleteMacro.swift
[25/44] Compiling KioskMacros EndpointContractWire.swift
[26/44] Compiling KioskMacros GetMacro.swift
[27/44] Compiling KioskMacros QueryMacro.swift
[28/44] Compiling KioskMacros ResponseMacro.swift
[29/44] Compiling KioskMacros SocketMacro.swift
[30/44] Compiling KioskMacros TimeoutMacro.swift
[31/44] Compiling KioskMacros WrapperMacro.swift
[32/44] Compiling KioskMacros FormatMacro.swift
[33/44] Compiling KioskMacros RenameMacro.swift
[34/44] Compiling KioskMacros WireMacro.swift
[35/44] Compiling KioskMacros WireModel.swift
[36/44] Compiling KioskMacros CopyMacro.swift
[37/44] Compiling KioskMacros HTTPMethodBody.swift
[38/44] Compiling KioskMacros HeaderMacro.swift
[39/44] Compiling KioskMacros PatchMacro.swift
[40/44] Compiling KioskMacros PostMacro.swift
[41/44] Compiling KioskMacros PutMacro.swift
[42/45] Wrapping AST for KioskMacros for debugging
[43/45] Write Objects.LinkFileList
[44/45] Linking KioskMacros-tool
[46/57] Compiling Kiosk WsContext.swift
/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
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:51:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
49 | public func connect() throws -> URLSessionWebSocketTask {
50 | let request = try makeRequest()
51 | let task = session.webSocketTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
52 | if let maximumMessageSize = options.maximumMessageSize {
53 | task.maximumMessageSize = maximumMessageSize
/host/spi-builder-workspace/Sources/Kiosk/WS/WsContext.swift:61:19: error: cannot find 'URLRequest' in scope
59 |
60 | public func makeRequest() throws -> URLRequest {
61 | var request = URLRequest(url: try makeURL())
| `- error: cannot find 'URLRequest' in scope
62 | options.apply(to: &request)
63 |
[47/58] Compiling Kiosk HttpTypes.swift
[48/58] Compiling Kiosk Macros.swift
[49/58] Compiling Kiosk APIParameters.swift
[50/58] Compiling Kiosk HttpHeaderEncoder.swift
[51/58] Compiling Kiosk RequestContext.swift
/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: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,
[52/58] Compiling Kiosk UrlBuilder.swift
/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: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,
[53/58] Compiling Kiosk UrlQueryEncoder.swift
/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 'URLSession' (aka '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 'URLSession' (aka '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 'URLResponse' (aka 'AnyObject')
271 | case missingHost
272 | case invalidURL
273 | case invalidResponse(URLResponse)
| `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'URLResponse' (aka '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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1386 | fileprivate var httpHeaders: [AnyHttpHeader] {
1387 | allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | public func fold() -> ResolvedHttpContext {
197 | var resolved = parent?.fold() ?? ResolvedHttpContext(
198 | session: sessionOverride ?? .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | )
200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
465 | let payload = try decoder.decode(Payload.self, from: data)
466 | let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
467 | return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
468 | }
469 | }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 | validatesStatus: Bool
1249 | ) async throws -> Response<Data> {
1250 | var urlRequest = URLRequest(url: try makeURL(from: request.url))
| `- error: cannot find 'URLRequest' in scope
1251 | urlRequest.httpMethod = request.method.rawValue
1252 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 | }
1265 |
1266 | let (data, response) = try await context.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 | let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 | let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 | url: url,
1323 | statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 | url: url,
1323 | statusCode: response.status.rawValue,
1324 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
1325 | headerFields: headerFields
1326 | )!
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[54/58] Compiling Kiosk HttpContext.swift
/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 'URLSession' (aka '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 'URLSession' (aka '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 'URLResponse' (aka 'AnyObject')
271 | case missingHost
272 | case invalidURL
273 | case invalidResponse(URLResponse)
| `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'URLResponse' (aka '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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
1386 | fileprivate var httpHeaders: [AnyHttpHeader] {
1387 | allHeaderFields.map { key, value in
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:198:36: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
196 | public func fold() -> ResolvedHttpContext {
197 | var resolved = parent?.fold() ?? ResolvedHttpContext(
198 | session: sessionOverride ?? .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
199 | )
200 |
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:467:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
465 | let payload = try decoder.decode(Payload.self, from: data)
466 | let message = try? decoder.decode(HttpErrorMessage.self, from: data).message
467 | return HttpError(code: HTTPStatusCode(response.statusCode), message: message, payload: payload)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
468 | }
469 | }
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1250:22: error: cannot find 'URLRequest' in scope
1248 | validatesStatus: Bool
1249 | ) async throws -> Response<Data> {
1250 | var urlRequest = URLRequest(url: try makeURL(from: request.url))
| `- error: cannot find 'URLRequest' in scope
1251 | urlRequest.httpMethod = request.method.rawValue
1252 | urlRequest.httpBody = request.body
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1266:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1264 | }
1265 |
1266 | let (data, response) = try await context.session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
1267 |
1268 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1321:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1319 | let url = response.url ?? (try? makeURL(from: context.url)) ?? URL(string: "https://kiosk.local")!
1320 | let headerFields = Dictionary(uniqueKeysWithValues: response.headers.map { ($0.name, $0.value) })
1321 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
1322 | url: url,
1323 | statusCode: response.status.rawValue,
/host/spi-builder-workspace/Sources/Kiosk/HTTP/HttpContext.swift:1324:20: error: 'nil' requires a contextual type
1322 | url: url,
1323 | statusCode: response.status.rawValue,
1324 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
1325 | headerFields: headerFields
1326 | )!
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/58] Emitting module Kiosk
/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: 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/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/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 'URLSession' (aka '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 'URLSession' (aka '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 'URLResponse' (aka 'AnyObject')
271 | case missingHost
272 | case invalidURL
273 | case invalidResponse(URLResponse)
| `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'URLResponse' (aka '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 'HTTPURLResponse' (aka '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 'HTTPURLResponse' (aka '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 [#NominalTypes]
1383 | }
1384 |
1385 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
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: 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: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:5:14: error: stored property 'session' of 'Sendable'-conforming struct 'StreamRequest' has non-Sendable type 'URLSession' (aka '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 'URLSession' (aka '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: 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: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: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>
[56/58] Compiling Kiosk SocketConnection.swift
/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/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/SocketConnection.swift:39:18: error: argument passed to call that takes no arguments
37 | /// Closes the current WebSocket task, if one is open.
38 | public func close() {
39 | close(code: .normalClosure)
| `- error: argument passed to call that takes no arguments
40 | }
41 |
/host/spi-builder-workspace/Sources/Kiosk/WS/SocketConnection.swift:39:18: error: cannot infer contextual base in reference to member 'normalClosure'
37 | /// Closes the current WebSocket task, if one is open.
38 | public func close() {
39 | close(code: .normalClosure)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
40 | }
41 |
[57/58] Compiling Kiosk StreamTransport.swift
/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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
6 | public var url: UrlBuilder
7 | public var headers: HttpHeaderStorage
[58/58] Compiling Kiosk Wire.swift
BUILD FAILURE 6.2 android