The Swift Package Index logo.Swift Package Index

Build Information

Failed to build fugle-realtime-swift, reference main (fda04a), with Swift 6.3 for Wasm on 13 Apr 2026 14:13:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/make-a-good-soup/fugle-realtime-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/make-a-good-soup/fugle-realtime-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at fda04a3 [Added] 新增 SwiftFormat (#29)
Cloned https://github.com/make-a-good-soup/fugle-realtime-swift.git
Revision (git rev-parse @):
fda04a3fd71d0a1bb519d8fd3c782689caabd342
SUCCESS checkout https://github.com/make-a-good-soup/fugle-realtime-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/make-a-good-soup/fugle-realtime-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/nicklockwood/SwiftFormat
[1/56086] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (43.59s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.61.0 (44.39s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.61.0
[1/1] Compiling plugin SwiftFormatPlugin
Building for debugging...
[1/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling fugle_realtime_swift URLSessionWebSocketTask+Extension.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/URLSessionWebSocketTask+Extension.swift:7:18: error: cannot find type 'URLSessionWebSocketTask' in scope
 5 | }
 6 |
 7 | public extension URLSessionWebSocketTask.Message {
   |                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
 8 |     func meta() throws -> Intraday<MetaData> {
 9 |         switch self {
[5/18] Compiling fugle_realtime_swift WebSocketRouter.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/URLSessionWebSocketTask+Extension.swift:7:18: error: cannot find type 'URLSessionWebSocketTask' in scope
 5 | }
 6 |
 7 | public extension URLSessionWebSocketTask.Message {
   |                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
 8 |     func meta() throws -> Intraday<MetaData> {
 9 |         switch self {
[6/19] Compiling fugle_realtime_swift APIRouter.swift
[7/19] Compiling fugle_realtime_swift IntradayRouter.swift
[8/19] Compiling fugle_realtime_swift WebSocketStream.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:4:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 2 |
 3 | public class WebSocketStream {
 4 |     public typealias Element = URLSessionWebSocketTask.Message
   |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 5 |     public typealias AsyncIterator = AsyncThrowingStream<URLSessionWebSocketTask.Message, Error>.Iterator
 6 |
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:5:58: error: cannot find type 'URLSessionWebSocketTask' in scope
 3 | public class WebSocketStream {
 4 |     public typealias Element = URLSessionWebSocketTask.Message
 5 |     public typealias AsyncIterator = AsyncThrowingStream<URLSessionWebSocketTask.Message, Error>.Iterator
   |                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 6 |
 7 |     private var stream: AsyncThrowingStream<Element, Error>?
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |     private var stream: AsyncThrowingStream<Element, Error>?
 8 |     private var continuation: AsyncThrowingStream<Element, Error>.Continuation?
 9 |     private let socket: URLSessionWebSocketTask
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
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/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:60: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                                            `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:22:1: error: type 'WebSocketStream' does not conform to protocol 'AsyncSequence'
20 | }
21 |
22 | extension WebSocketStream: AsyncSequence {
   | |- error: type 'WebSocketStream' does not conform to protocol 'AsyncSequence'
   | `- note: add stubs for conformance
23 |     public func makeAsyncIterator() -> AsyncIterator {
24 |         guard let stream else {
_Concurrency.AsyncSequence.AsyncIterator:2:16: note: protocol requires nested type 'AsyncIterator'
1 | protocol AsyncSequence {
2 | associatedtype AsyncIterator : AsyncIteratorProtocol}
  |                `- note: protocol requires nested type 'AsyncIterator'
3 |
_Concurrency.AsyncSequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol AsyncSequence {
2 | associatedtype Element where Self.Element == Self.AsyncIterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
_Concurrency.AsyncSequence.Failure:3:18: note: protocol requires nested type 'Failure'
1 | protocol AsyncSequence {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   associatedtype Failure = any Error where Self.Failure == Self.AsyncIterator.Failure}
  |                  `- note: protocol requires nested type 'Failure'
4 |
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:12:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
12 |         socket = session.webSocketTask(with: url)
   |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
13 |         stream = AsyncThrowingStream { continuation in
14 |             self.continuation = continuation
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:13:18: error: generic parameter 'Element' could not be inferred
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
   |                  |- error: generic parameter 'Element' could not be inferred
   |                  `- note: explicitly specify the generic arguments to fix this issue
14 |             self.continuation = continuation
15 |             self.continuation?.onTermination = { @Sendable [socket] _ in
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:33:41: error: cannot infer type of closure parameter 'result' without a type annotation
31 |
32 |     private func listenForMessages() {
33 |         socket.receive { [unowned self] result in
   |                                         `- error: cannot infer type of closure parameter 'result' without a type annotation
34 |             switch result {
35 |             case let .success(message):
[9/19] Compiling fugle_realtime_swift Quote.swift
[10/19] Compiling fugle_realtime_swift Volume.swift
[11/19] Compiling fugle_realtime_swift FugleHttpLoader.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:42:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 40 |
 41 |         do {
 42 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 43 |             let quote = try JSONDecoder().decode(Intraday<QuoteData>.self, from: data)
 44 |             return .success(quote)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:55:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |
 54 |         do {
 55 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |             let chart = try JSONDecoder().decode(Intraday<ChartData>.self, from: data)
 57 |             return .success(chart)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:77:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |         do {
 77 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 78 |             let dealts = try JSONDecoder().decode(Intraday<DealtsData>.self, from: data)
 79 |             return .success(dealts)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:97:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |
 96 |         do {
 97 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |             let volumes = try JSONDecoder().decode(Intraday<VolumesData>.self, from: data)
 99 |             return .success(volumes)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/HTTPClient.swift:4:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol HTTPClient {
4 |     typealias Result = Swift.Result<(Data, HTTPURLResponse), Error>
  |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 |     func perform(url: URL) async -> HTTPClient.Result
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
[12/19] Compiling fugle_realtime_swift HTTPClient.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:42:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 40 |
 41 |         do {
 42 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 43 |             let quote = try JSONDecoder().decode(Intraday<QuoteData>.self, from: data)
 44 |             return .success(quote)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:55:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |
 54 |         do {
 55 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 56 |             let chart = try JSONDecoder().decode(Intraday<ChartData>.self, from: data)
 57 |             return .success(chart)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:77:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |         do {
 77 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 78 |             let dealts = try JSONDecoder().decode(Intraday<DealtsData>.self, from: data)
 79 |             return .success(dealts)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/FugleHttpLoader.swift:97:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 95 |
 96 |         do {
 97 |             let (data, _) = try await URLSession.shared.data(from: url)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 98 |             let volumes = try JSONDecoder().decode(Intraday<VolumesData>.self, from: data)
 99 |             return .success(volumes)
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/HTTPClient.swift:4:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol HTTPClient {
4 |     typealias Result = Swift.Result<(Data, HTTPURLResponse), Error>
  |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 |     func perform(url: URL) async -> HTTPClient.Result
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
[13/19] Compiling fugle_realtime_swift Intraday.swift
[14/19] Compiling fugle_realtime_swift Meta.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/19] Compiling fugle_realtime_swift Dealts.swift
[16/19] Compiling fugle_realtime_swift Info.swift
[17/19] Emitting module fugle_realtime_swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/HTTPClient.swift:4:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | public protocol HTTPClient {
4 |     typealias Result = Swift.Result<(Data, HTTPURLResponse), Error>
  |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 |     func perform(url: URL) async -> HTTPClient.Result
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:4:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public final class URLSessionHTTPClient: HTTPClient {
 4 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     public init(session: URLSession = .shared) {
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         self.session = session
 8 |     }
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/fugle-realtime-swift/WebSocket/URLSessionWebSocketTask+Extension.swift:7:18: error: cannot find type 'URLSessionWebSocketTask' in scope
 5 | }
 6 |
 7 | public extension URLSessionWebSocketTask.Message {
   |                  `- error: cannot find type 'URLSessionWebSocketTask' in scope
 8 |     func meta() throws -> Intraday<MetaData> {
 9 |         switch self {
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:4:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 2 |
 3 | public class WebSocketStream {
 4 |     public typealias Element = URLSessionWebSocketTask.Message
   |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 5 |     public typealias AsyncIterator = AsyncThrowingStream<URLSessionWebSocketTask.Message, Error>.Iterator
 6 |
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:5:58: error: cannot find type 'URLSessionWebSocketTask' in scope
 3 | public class WebSocketStream {
 4 |     public typealias Element = URLSessionWebSocketTask.Message
 5 |     public typealias AsyncIterator = AsyncThrowingStream<URLSessionWebSocketTask.Message, Error>.Iterator
   |                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 6 |
 7 |     private var stream: AsyncThrowingStream<Element, Error>?
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |     private var stream: AsyncThrowingStream<Element, Error>?
 8 |     private var continuation: AsyncThrowingStream<Element, Error>.Continuation?
 9 |     private let socket: URLSessionWebSocketTask
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
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/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:11:60: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 9 |     private let socket: URLSessionWebSocketTask
10 |
11 |     public init(url: URL, session: URLSession = URLSession.shared) {
   |                                                            `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
12 |         socket = session.webSocketTask(with: url)
13 |         stream = AsyncThrowingStream { continuation in
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/WebSocketStream.swift:22:1: error: type 'WebSocketStream' does not conform to protocol 'AsyncSequence'
20 | }
21 |
22 | extension WebSocketStream: AsyncSequence {
   | |- error: type 'WebSocketStream' does not conform to protocol 'AsyncSequence'
   | `- note: add stubs for conformance
23 |     public func makeAsyncIterator() -> AsyncIterator {
24 |         guard let stream else {
_Concurrency.AsyncSequence.AsyncIterator:2:16: note: protocol requires nested type 'AsyncIterator'
1 | protocol AsyncSequence {
2 | associatedtype AsyncIterator : AsyncIteratorProtocol}
  |                `- note: protocol requires nested type 'AsyncIterator'
3 |
_Concurrency.AsyncSequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol AsyncSequence {
2 | associatedtype Element where Self.Element == Self.AsyncIterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
_Concurrency.AsyncSequence.Failure:3:18: note: protocol requires nested type 'Failure'
1 | protocol AsyncSequence {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   associatedtype Failure = any Error where Self.Failure == Self.AsyncIterator.Failure}
  |                  `- note: protocol requires nested type 'Failure'
4 |
[18/19] Compiling fugle_realtime_swift URLSessionHTTPClient.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:4:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public final class URLSessionHTTPClient: HTTPClient {
 4 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     public init(session: URLSession = .shared) {
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         self.session = session
 8 |     }
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:14:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 |     public func perform(url: URL) async -> HTTPClient.Result {
13 |         do {
14 |             let (data, response) = try await session.data(from: url)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 |             if let response = response as? HTTPURLResponse {
16 |                 return Result.success((data, response))
[19/19] Compiling fugle_realtime_swift Chart.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:4:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 2 |
 3 | public final class URLSessionHTTPClient: HTTPClient {
 4 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 |     public init(session: URLSession = .shared) {
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         self.session = session
 8 |     }
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/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:6:40: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     private let session: URLSession
 5 |
 6 |     public init(session: URLSession = .shared) {
   |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         self.session = session
 8 |     }
/host/spi-builder-workspace/Sources/fugle-realtime-swift/HTTPClient/URLSessionHTTPClient.swift:14:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
12 |     public func perform(url: URL) async -> HTTPClient.Result {
13 |         do {
14 |             let (data, response) = try await session.data(from: url)
   |                                                      `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
15 |             if let response = response as? HTTPURLResponse {
16 |                 return Result.success((data, response))
BUILD FAILURE 6.3 wasm