Build Information
Failed to build StreamChat, reference develop (921be7), with Swift 6.2 for macOS (SPM) on 30 Apr 2026 13:36:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | try await operation()
24 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:28:31: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
26 | if timeoutInSeconds > 0, timeoutInSeconds <= TimeInterval(UInt64.max) {
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
30 | throw ClientError("Operation timed out", file, line)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add '@available' attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic class
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
[212/230] Compiling StreamCore SystemEnvironment+Version.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:22:27: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | try await operation()
24 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:28:31: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
26 | if timeoutInSeconds > 0, timeoutInSeconds <= TimeInterval(UInt64.max) {
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
30 | throw ClientError("Operation timed out", file, line)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add '@available' attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic class
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
[213/230] Compiling StreamCore Task+Timeout.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:22:27: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | try await operation()
24 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:28:31: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
26 | if timeoutInSeconds > 0, timeoutInSeconds <= TimeInterval(UInt64.max) {
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
30 | throw ClientError("Operation timed out", file, line)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add '@available' attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic class
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
[214/230] Compiling StreamCore TimerPublisher.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:22:27: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | try await operation()
24 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:28:31: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
26 | if timeoutInSeconds > 0, timeoutInSeconds <= TimeInterval(UInt64.max) {
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
30 | throw ClientError("Operation timed out", file, line)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add '@available' attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic class
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
[215/230] Compiling StreamCore Timers.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:22:27: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | try await operation()
24 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:28:31: error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
26 | if timeoutInSeconds > 0, timeoutInSeconds <= TimeInterval(UInt64.max) {
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
| |- error: 'addTaskUnlessCancelled(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
30 | throw ClientError("Operation timed out", file, line)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add '@available' attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add '@available' attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add '@available' attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic class
| `- note: add '@available' attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add '@available' attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add '@available' attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
[216/230] Compiling StreamCore Models.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[217/230] Compiling StreamCore OpenISO8601DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[218/230] Compiling StreamCore User.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[219/230] Compiling StreamCore UserToken.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[220/230] Compiling StreamCore ApplicationStateAdapter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[221/230] Compiling StreamCore BoxedAny.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[222/230] Compiling StreamCore BundleExtensions.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[223/230] Compiling StreamCore Data+Gzip.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Utils/ApplicationStateAdapter.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 |
11 | /// An adapter that observes the app's state and publishes changes.
12 | public final class StreamAppStateAdapter: ObservableObject, @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
13 | /// Represents the app's state: foreground or background.
14 | public enum State: Sendable, Equatable { case foreground, background }
15 |
16 | /// The current state of the app.
17 | @Published public private(set) var state: State = .foreground
| `- error: 'Published' is only available in macOS 10.15 or newer
18 |
19 | private let notificationCenter: NotificationCenter
<unknown>:0: error: cannot convert value of type 'any KeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State> & Sendable' to expected argument type 'ReferenceWritableKeyPath<StreamAppStateAdapter, StreamAppStateAdapter.State>'
[224/230] Compiling StreamCore WebSocketEngine.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 | }
[225/230] 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 | }
[226/230] 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 | }
[227/230] 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 | }
[228/230] 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 | }
[229/230] 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 | }
[230/230] 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 | }
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/GetStream/stream-core-swift.git
[1/2137] Fetching stream-core-swift
[2138/4424] Fetching stream-core-swift, swift-docc-plugin
Fetched https://github.com/GetStream/stream-core-swift.git from cache (7.03s)
Fetched https://github.com/apple/swift-docc-plugin from cache (7.03s)
Computing version for https://github.com/GetStream/stream-core-swift.git
Computed https://github.com/GetStream/stream-core-swift.git at 0.6.3 (7.72s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.0.0 (2.14s)
Creating working copy for https://github.com/GetStream/stream-core-swift.git
Working copy of https://github.com/GetStream/stream-core-swift.git resolved at 0.6.3
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.0.0
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.2 macosSpm