Build Information
Failed to build fugle-realtime-swift, reference 0.0.2 (73f096), with Swift 6.3 for Linux on 13 Apr 2026 14:13:03 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build 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: 0.0.2
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
* tag 0.0.2 -> FETCH_HEAD
HEAD is now at 73f096e Update README.md
Cloned https://github.com/make-a-good-soup/fugle-realtime-swift.git
Revision (git rev-parse @):
73f096ea21f310f5357674a3484ae123f3deabe2
SUCCESS checkout https://github.com/make-a-good-soup/fugle-realtime-swift.git at 0.0.2
========================================
Build
========================================
Selected platform: linux
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-4606859-3":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling fugle_realtime_swift APIRouter.swift
[4/17] Compiling fugle_realtime_swift IntradayRouter.swift
[5/17] Compiling fugle_realtime_swift URLSessionWebSocketTask+Extension.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/URLSessionWebSocketTask+Extension.swift:7:11: error: cannot find type 'URLSessionWebSocketTask' in scope
5 | }
6 |
7 | extension URLSessionWebSocketTask.Message {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
8 | public func meta() throws -> Intraday<MetaData> {
9 | switch self {
[6/17] Compiling fugle_realtime_swift WebSocketRouter.swift
/host/spi-builder-workspace/Sources/fugle-realtime-swift/WebSocket/URLSessionWebSocketTask+Extension.swift:7:11: error: cannot find type 'URLSessionWebSocketTask' in scope
5 | }
6 |
7 | extension URLSessionWebSocketTask.Message {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
8 | public func meta() throws -> Intraday<MetaData> {
9 | switch self {
[7/18] Compiling fugle_realtime_swift Dealts.swift
[8/18] Compiling fugle_realtime_swift Info.swift
[9/18] Compiling fugle_realtime_swift Intraday.swift
[10/18] Compiling fugle_realtime_swift Meta.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/18] Emitting module fugle_realtime_swift
/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/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:11: error: cannot find type 'URLSessionWebSocketTask' in scope
5 | }
6 |
7 | extension URLSessionWebSocketTask.Message {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
8 | public 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 = 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 |
[12/18] 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 = 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 .success(let message):
[13/18] 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))
[14/18] 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))
[15/18] Compiling fugle_realtime_swift FugleHttpLoader.swift
/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/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
[16/18] Compiling fugle_realtime_swift HTTPClient.swift
/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/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
[17/18] Compiling fugle_realtime_swift Quote.swift
[18/18] Compiling fugle_realtime_swift Volume.swift
BUILD FAILURE 6.3 linux