Build Information
Failed to build StreamChat, reference develop (921be7), with Swift 6.1 for macOS (SPM) on 30 Apr 2026 13:36:17 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[62/82] Compiling StreamCore WebSocketPingController.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[63/82] Compiling StreamCore Event.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[64/82] Compiling StreamCore EventBatcher.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[65/82] Compiling StreamCore EventMiddleware.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[66/82] Compiling StreamCore EventNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[67/82] Compiling StreamCore StreamJsonDecoder.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add @available attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add @available attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add @available attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add @available attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[68/82] Compiling StreamCore WSAuthMessageRequest.swift
[69/82] Compiling StreamCore CreateDeviceRequest.swift
[70/82] Compiling StreamCore Device.swift
[71/82] Compiling StreamCore DevicesAPI.swift
[72/82] Compiling StreamCore ListDevicesResponse.swift
[73/82] Compiling StreamCore ModelResponse.swift
[74/82] Compiling StreamCore Filter+Local.swift
[75/82] Compiling StreamCore Filter.swift
[76/82] Compiling StreamCore APIKey.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[77/82] Compiling StreamCore BackgroundTaskScheduler.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[78/82] Compiling StreamCore ConnectionRecoveryHandler.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[79/82] Compiling StreamCore ConnectionStatus.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[80/82] Compiling StreamCore RetryStrategy.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[81/82] Compiling StreamCore URLSessionWebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
[82/82] Compiling StreamCore WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | 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
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:192:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
193 | var onCompletion: ((Error?) -> Void)?
194 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:197:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
193 | var onCompletion: ((Error?) -> Void)?
194 |
195 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
196 | _ session: URLSession,
197 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
198 | didOpenWithProtocol protocol: String?
199 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:205:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
207 | reason: Data?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:206:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
188 | }
189 |
190 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
191 | var onOpen: ((_ protocol: String?) -> Void)?
192 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
201 | }
202 |
203 | func urlSession(
| `- note: add @available attribute to enclosing instance method
204 | _ session: URLSession,
205 | webSocketTask: URLSessionWebSocketTask,
206 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
207 | reason: Data?
208 | ) {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:112:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
109 | }
110 |
111 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
112 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | guard let self, task != nil else {
114 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:34:31: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
34 | public let eventSubject = PassthroughSubject<Event, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
35 |
36 | public weak var connectionStateDelegate: ConnectionStateDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:33:29: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
31 | }
32 |
33 | let connectionSubject = PassthroughSubject<WebSocketConnectionState, Never>()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
34 | public let eventSubject = PassthroughSubject<Event, Never>()
35 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:150:15: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
147 | /// Calling this function has no effect, if the connection is in an inactive state.
148 | /// - Parameter source: Additional information about the source of the disconnection. Default value is `.userInitiated`.
149 | public func disconnect(
| `- note: add @available attribute to enclosing instance method
150 | code: URLSessionWebSocketTask.CloseCode = .normalClosure,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
151 | source: WebSocketConnectionState.DisconnectionSource = .userInitiated,
152 | completion: @Sendable @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:15: error: 'withCheckedContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | 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
164 | guard let self else {
165 | continuation.resume()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:165:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
165 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | return
167 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:169:30: error: 'resume()' is only available in macOS 10.15 or newer
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
164 | guard let self else {
:
167 | }
168 | disconnect {
169 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:40: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift:163:39: note: expanded code originates here
6 | import Foundation
7 |
8 | public class WebSocketClient: @unchecked Sendable {
| `- note: add @available attribute to enclosing class
9 | /// The notification center `WebSocketClient` uses to send notifications about incoming events.
10 | public let eventNotificationCenter: EventNotificationCenter
:
160 | }
161 |
162 | public func disconnect(source: WebSocketConnectionState.DisconnectionSource = .userInitiated) async {
| `- note: add @available attribute to enclosing instance method
163 | await withCheckedContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketClient.swift
|161 |
|162 |
|163 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------------------------------------------------------------------------------
164 | guard let self else {
165 | continuation.resume()
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/TestTools/StreamChatTestTools/DatabaseModels/TestDataModel.xcdatamodeld
/Users/admin/builder/spi-builder-workspace/TestTools/StreamChatTestTools/DatabaseModels/TestDataModel2.xcdatamodeld
warning: 'stream-core-swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Info.plist
BUILD FAILURE 6.1 macosSpm