Build Information
Failed to build StreamChatSwiftUI, reference develop (1af473), with Swift 6.1 for macOS (SPM) on 31 Oct 2026 11:14:01 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
75 | let result = Self.result(request: request, data: data, response: response, error: error)
76 | Self.logResponse(result, request: request, data: data, response: response, session: urlSession)
77 | continuation.resume(with: result)
| |- error: 'resume(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | }
79 | task.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/OpenAPI/HTTP/URLSessionTransport.swift:73:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/OpenAPI/HTTP/URLSessionTransport.swift:73:51: note: expanded code originates here
5 | import Foundation
6 |
7 | public final class URLSessionTransport: DefaultAPITransport, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private let urlSession: URLSession
9 | private let xStreamClientHeader: String
:
70 | }
71 |
72 | private func perform(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
73 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/OpenAPI/HTTP/URLSessionTransport.swift
|71 |
|72 |
|73 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
74 | let task = urlSession.dataTask(with: request) { [urlSession] data, response, error in
75 | let result = Self.result(request: request, data: data, response: response, error: error)
[64/88] Compiling StreamCore Filter.swift
[65/88] Compiling StreamCore FilterOperator.swift
[66/88] Compiling StreamCore FilterValue+Location.swift
[67/88] Compiling StreamCore FilterValue.swift
[68/88] Compiling StreamCore Sort.swift
[69/88] Compiling StreamCore APIHelper.swift
[70/88] Compiling StreamCore CodableHelper.swift
[71/88] Compiling StreamCore Extensions.swift
[72/88] Compiling StreamCore WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[73/88] Compiling StreamCore WebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[74/88] Compiling StreamCore WebSocketPingController.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[75/88] Compiling StreamCore Event.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[76/88] Compiling StreamCore EventBatcher.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[77/88] Compiling StreamCore EventMiddleware.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[78/88] Compiling StreamCore EventNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[79/88] Compiling StreamCore StreamJsonDecoder.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:31:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
7 |
8 | /// Describes why a client-initiated WebSocket close is requested.
9 | public enum WebSocketCloseContext: Equatable, Sendable {
| `- note: add @available attribute to enclosing enum
10 | /// Closes the current socket because a disconnection was requested or
11 | /// detected.
:
29 | /// The provider receives that code and may preserve or override it.
30 | case explicit(
31 | code: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
32 | source: WebSocketConnectionState.DisconnectionSource
33 | )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:47:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
44 |
45 | /// Provides the close code for a client-initiated WebSocket close.
46 | public protocol WebSocketCloseCodeProviding: Sendable {
| `- note: add @available attribute to enclosing protocol
47 | func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:54:66: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
49 |
50 | /// Preserves the default WebSocket close-code behavior.
51 | public struct DefaultWebSocketCloseCodeProvider: WebSocketCloseCodeProviding {
| `- note: add @available attribute to enclosing struct
52 | public init() {}
53 |
54 | public func closeCode(for context: WebSocketCloseContext) -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
55 | switch context {
56 | case let .explicit(code, _):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:93:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
91 | Never
92 | >(.initialized)
93 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:89:37: error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
87 | }
88 |
89 | private let connectionSubject = CurrentValueSubject<
| `- error: 'CurrentValueSubject' is only available in macOS 10.15 or newer
90 | WebSocketConnectionState,
91 | Never
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:95:42: error: 'AnyPublisher' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
97 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:231:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
228 | /// - source: The source recorded in the connection state.
229 | /// - completion: Called after pending batched events are processed.
230 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
231 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
232 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
233 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:96:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
93 | public let eventSubject = PassthroughSubject<Event, Never>()
94 |
95 | public var connectionStatePublisher: AnyPublisher<WebSocketConnectionState, Never> {
| `- note: add @available attribute to enclosing property
96 | connectionSubject.eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
| |- error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:275:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
275 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | return
277 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:279:30: error: 'resume()' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
274 | guard let self else {
:
277 | }
278 | disconnect(context: .disconnection(source: source)) {
279 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:273:39: note: expanded code originates here
62 | }
63 |
64 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
65 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
66 | public let eventNotificationCenter: EventNotificationCenter
:
270 | ///
271 | /// - Parameter source: The source recorded in the connection state.
272 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
273 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|271 |
|272 |
|273 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
274 | guard let self else {
275 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[80/88] Compiling StreamCore TypingIndicatorPrivacySettings.swift
[81/88] Compiling StreamCore UserPrivacySettings.swift
[82/88] Compiling StreamCore WSAuthMessageRequest.swift
[83/88] Compiling StreamCore CreateDeviceRequest.swift
[84/88] Compiling StreamCore Device.swift
[85/88] Compiling StreamCore DevicesAPI.swift
[86/88] Compiling StreamCore ListDevicesResponse.swift
[87/88] Compiling StreamCore ModelResponse.swift
[88/88] Compiling StreamCore Filter+Local.swift
warning: 'stream-core-swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Info.plist
BUILD FAILURE 6.1 macosSpm