Build Information
Failed to build fugle-realtime-swift, reference 0.0.2 (73f096), with Swift 6.1 for Android on 28 May 2025 14:00:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/make-a-good-soup/fugle-realtime-swift.git
https://github.com/make-a-good-soup/fugle-realtime-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "fugle-realtime-swift",
"name" : "fugle-realtime-swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "fugle-realtime-swift",
"targets" : [
"fugle-realtime-swift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "fugle_realtime_swiftTests",
"module_type" : "SwiftTarget",
"name" : "fugle-realtime-swiftTests",
"path" : "Tests/fugle-realtime-swiftTests",
"sources" : [
"HTTPClient/Helpers/URLProtocolStub.swift",
"HTTPClient/Helpers/XCTestCase+Extension.swift",
"HTTPClient/URLSessionHTTPClientTests.swift",
"Router/IntradayRouterTests.swift"
],
"target_dependencies" : [
"fugle-realtime-swift"
],
"type" : "test"
},
{
"c99name" : "fugle_realtime_swift",
"module_type" : "SwiftTarget",
"name" : "fugle-realtime-swift",
"path" : "Sources/fugle-realtime-swift",
"product_memberships" : [
"fugle-realtime-swift"
],
"sources" : [
"FugleHttpLoader.swift",
"HTTPClient/HTTPClient.swift",
"HTTPClient/URLSessionHTTPClient.swift",
"Models/Chart.swift",
"Models/Dealts.swift",
"Models/Info.swift",
"Models/Intraday.swift",
"Models/Meta.swift",
"Models/Quote.swift",
"Models/Volume.swift",
"Router/APIRouter.swift",
"Router/IntradayRouter.swift",
"WebSocket/URLSessionWebSocketTask+Extension.swift",
"WebSocket/WebSocketRouter.swift",
"WebSocket/WebSocketStream.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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 {
[4/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 {
[5/18] Compiling fugle_realtime_swift APIRouter.swift
[6/18] Compiling fugle_realtime_swift IntradayRouter.swift
[7/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: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):
[8/18] Compiling fugle_realtime_swift Quote.swift
[9/18] Compiling fugle_realtime_swift Volume.swift
[10/18] Compiling fugle_realtime_swift Dealts.swift
[11/18] Compiling fugle_realtime_swift Info.swift
[12/18] Compiling fugle_realtime_swift Intraday.swift
[13/18] Compiling fugle_realtime_swift Meta.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/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/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: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 |
[15/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: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))
[16/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: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))
[17/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/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
[18/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/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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/16] 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: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))
[3/16] 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: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))
[4/16] 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 {
[5/16] 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 {
[6/17] 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/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
[7/17] 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/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
[8/17] Compiling fugle_realtime_swift APIRouter.swift
[9/17] Compiling fugle_realtime_swift IntradayRouter.swift
[10/17] 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: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):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/17] Compiling fugle_realtime_swift Dealts.swift
[12/17] Compiling fugle_realtime_swift Info.swift
[13/17] 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/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: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 |
[14/17] Compiling fugle_realtime_swift Intraday.swift
[15/17] Compiling fugle_realtime_swift Meta.swift
[16/17] Compiling fugle_realtime_swift Quote.swift
[17/17] Compiling fugle_realtime_swift Volume.swift
BUILD FAILURE 6.1 android