The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StreamCore, reference 0.13.0 (b850c6), with Swift 6.2 for macOS (SPM) on 12 Oct 2026 11:02:39 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add '@available' attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
54 |     ) async throws -> Output {
55 |         let erased = self.eraseToAnyPublisher()
56 |         return try await Task(
   |                          |- error: 'Task' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
57 |             timeoutInSeconds: timeoutInSeconds,
58 |             file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:62:30: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add '@available' attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
60 |             line: line
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
   |                              |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
63 |         }.value
64 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:63:11: error: 'value' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add '@available' attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
63 |         }.value
   |           |- error: 'value' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
64 |     }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:20: error: 'dropFirst' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add '@available' attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                    |- error: 'dropFirst' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:41: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add '@available' attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                                         |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                         `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:75:15: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add '@available' attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
75 |             : eraseToAnyPublisher()
   |               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
76 |
77 |         if let timeout {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:78:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add '@available' attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
76 |
77 |         if let timeout {
78 |             return try await publisher.firstValue(
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
79 |                 timeoutInSeconds: timeout,
80 |                 file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:85:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add '@available' attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add '@available' attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
83 |             )
84 |         } else {
85 |             return try await publisher.firstValue()
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
86 |         }
87 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:12:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add '@available' attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add '@available' attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
   |          `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |         sink { [weak object] value in
14 |             object?[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:8:11: error: 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add '@available' attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:13:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add '@available' attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add '@available' attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
13 |         sink { [weak object] value in
   |         |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |             object?[keyPath: keyPath] = value
15 |         }
[82/89] Compiling StreamCore WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[83/89] Compiling StreamCore WebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[84/89] Compiling StreamCore WebSocketPingController.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[85/89] Compiling StreamCore Event.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[86/89] Compiling StreamCore EventBatcher.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[87/89] Compiling StreamCore EventMiddleware.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[88/89] Compiling StreamCore EventNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[89/89] Compiling StreamCore StreamJsonDecoder.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamCoreUI/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamAttachments/Info.plist
BUILD FAILURE 6.2 macosSpm