The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StreamCore, reference develop (bc633f), with Swift 6.0 for macOS (SPM) on 27 Apr 2026 11:24:40 UTC.

Build Command

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

Build Log

224 |     /// A publisher that emits the current internet connection status.
225 |     ///
    :
228 |     ///
229 |     /// - Note: The publisher won't publish any duplicates.
230 |     public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
    |                `- note: add @available attribute to enclosing property
231 |         $status.removeDuplicates().eraseToAnyPublisher()
    |                 |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
232 |     }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:231:36: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
    | `- note: add @available attribute to enclosing extension
224 |     /// A publisher that emits the current internet connection status.
225 |     ///
    :
228 |     ///
229 |     /// - Note: The publisher won't publish any duplicates.
230 |     public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
    |                `- note: add @available attribute to enclosing property
231 |         $status.removeDuplicates().eraseToAnyPublisher()
    |                                    |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
232 |     }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:15:34: error: 'AsyncStream' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          |                       `- error: 'AsyncStream' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
17 |             let cancellable = self.sink(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:8:18: error: 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:16:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
   |         |- error: 'AsyncStream' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
17 |             let cancellable = self.sink(
18 |                 receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:17:36: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
17 |             let cancellable = self.sink(
   |                                    |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
   |                                    `- note: add 'if #available' version check
18 |                 receiveCompletion: { _ in
19 |                     continuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:37:41: error: 'values' is only available in macOS 12.0 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
30 |     }
31 |
32 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
33 |         file: StaticString = #file,
34 |         line: UInt = #line
35 |     ) async throws -> Output {
36 |         if #available(iOS 15.0, *) {
37 |             for try await value in self.values {
   |                                         |- error: 'values' is only available in macOS 12.0 or newer
   |                                         `- note: add 'if #available' version check
38 |                 return value
39 |             }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:55:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
53 |         line: UInt = #line
54 |     ) async throws -> Output {
55 |         let erased = self.eraseToAnyPublisher()
   |                           |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
56 |         return try await Task(
57 |             timeoutInSeconds: timeoutInSeconds,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:56:26: error: 'Task' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
54 |     ) async throws -> Output {
55 |         let erased = self.eraseToAnyPublisher()
56 |         return try await Task(
   |                          |- error: 'Task' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
57 |             timeoutInSeconds: timeoutInSeconds,
58 |             file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:62:30: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
60 |             line: line
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
   |                              |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
63 |         }.value
64 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:63:11: error: 'value' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
63 |         }.value
   |           |- error: 'value' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
64 |     }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:20: error: 'dropFirst' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                    |- error: 'dropFirst' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:41: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                                         |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                         `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:75:15: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
75 |             : eraseToAnyPublisher()
   |               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
76 |
77 |         if let timeout {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:78:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
76 |
77 |         if let timeout {
78 |             return try await publisher.firstValue(
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
79 |                 timeoutInSeconds: timeout,
80 |                 file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:85:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
83 |             )
84 |         } else {
85 |             return try await publisher.firstValue()
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
86 |         }
87 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:12:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add @available attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
   |          `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |         sink { [weak object] value in
14 |             object?[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:8:11: error: 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:13:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add @available attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
13 |         sink { [weak object] value in
   |         |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |             object?[keyPath: keyPath] = value
15 |         }
[75/83] Compiling StreamCore RawJSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:10:39: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 7 |
 8 | public final class DisposableBag: @unchecked Sendable {
 9 |     private final class Storage {
   |                         `- note: add @available attribute to enclosing class
10 |         private var storage: [String: AnyCancellable] = [:]
   |                                       `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
11 |         private let queue = UnfairQueue()
12 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:18:28: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 7 |
 8 | public final class DisposableBag: @unchecked Sendable {
 9 |     private final class Storage {
   |                         `- note: add @available attribute to enclosing class
10 |         private var storage: [String: AnyCancellable] = [:]
11 |         private let queue = UnfairQueue()
   :
15 |         }
16 |
17 |         func insert(
   |              `- note: add @available attribute to enclosing instance method
18 |             _ cancellable: AnyCancellable,
   |                            `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
19 |             with key: String = UUID().uuidString
20 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:49:24: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public final class DisposableBag: @unchecked Sendable {
   |                    `- note: add @available attribute to enclosing class
 9 |     private final class Storage {
10 |         private var storage: [String: AnyCancellable] = [:]
   :
46 |     public init() {}
47 |
48 |     public func insert(
   |                 `- note: add @available attribute to enclosing instance method
49 |         _ cancellable: AnyCancellable,
   |                        `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
50 |         with key: String = UUID().uuidString
51 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:66:11: error: 'AnyCancellable' is only available in macOS 10.15 or newer
64 | }
65 |
66 | extension AnyCancellable {
   | |         `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
67 |     public func store(
68 |         in disposableBag: DisposableBag?,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:74:37: error: 'AnyCancellable' is only available in macOS 10.15 or newer
71 | }
72 |
73 | extension Task {
   | `- note: add @available attribute to enclosing extension
74 |     func eraseToAnyCancellable() -> AnyCancellable { .init(cancel) }
   |          |                          `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
75 |
76 |     public func store(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:73:11: error: 'Task' is only available in macOS 10.15 or newer
71 | }
72 |
73 | extension Task {
   | |         `- error: 'Task' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
74 |     func eraseToAnyCancellable() -> AnyCancellable { .init(cancel) }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:74:60: error: 'cancel()' is only available in macOS 10.15 or newer
71 | }
72 |
73 | extension Task {
   | `- note: add @available attribute to enclosing extension
74 |     func eraseToAnyCancellable() -> AnyCancellable { .init(cancel) }
   |          |                                                 |- error: 'cancel()' is only available in macOS 10.15 or newer
   |          |                                                 `- note: add 'if #available' version check
   |          `- note: add @available attribute to enclosing instance method
75 |
76 |     public func store(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/DisposableBag.swift:79:36: error: 'cancel()' is only available in macOS 10.15 or newer
71 | }
72 |
73 | extension Task {
   | `- note: add @available attribute to enclosing extension
74 |     func eraseToAnyCancellable() -> AnyCancellable { .init(cancel) }
75 |
76 |     public func store(
   |                 `- note: add @available attribute to enclosing instance method
77 |         in disposableBag: DisposableBag,
78 |         key: String = UUID().uuidString
79 |     ) { disposableBag.insert(.init(cancel), with: key) }
   |                                    |- error: 'cancel()' is only available in macOS 10.15 or newer
   |                                    `- note: add 'if #available' version check
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:31:6: error: 'Published' is only available in macOS 10.15 or newer
 27 | /// Basically, it's a wrapper over legacy monitor based on `Reachability` (iOS 11 only)
 28 | /// and default monitor based on `Network`.`NWPathMonitor` (iOS 12+).
 29 | open class InternetConnection: @unchecked Sendable {
    |            `- note: add @available attribute to enclosing class
 30 |     /// The current Internet connection status.
 31 |     @Published public private(set) var status: InternetConnectionStatus {
    |      `- error: 'Published' is only available in macOS 10.15 or newer
 32 |         didSet {
 33 |             guard oldValue != status else { return }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:154:30: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
    |                              `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
156 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:181:41: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
    :
179 |         }
180 |
181 |         private func createMonitor() -> NWPathMonitor {
    |                      |                  `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
    |                      `- note: add @available attribute to enclosing instance method
182 |             let monitor = NWPathMonitor()
183 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:192:46: error: 'NWPath' is only available in macOS 10.14 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
    :
190 |         }
191 |
192 |         private func updateStatus(with path: NWPath) {
    |                      |                       `- error: 'NWPath' is only available in macOS 10.14 or newer
    |                      `- note: add @available attribute to enclosing instance method
193 |             log.info("Internet Connection info: \(path.debugDescription)", subsystems: .httpRequests)
194 |             delegate?.internetConnectionStatusDidChange(status: status(from: path))
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:197:40: error: 'NWPath' is only available in macOS 10.14 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
    :
195 |         }
196 |
197 |         private func status(from path: NWPath) -> InternetConnectionStatus {
    |                      |                 `- error: 'NWPath' is only available in macOS 10.14 or newer
    |                      `- note: add @available attribute to enclosing instance method
198 |             guard path.status == .satisfied else {
199 |                 return .unavailable
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:220:26: error: 'AnyPublisher' is only available in macOS 10.15 or newer
213 |
214 | /// A protocol defining the interface for internet connection monitoring.
215 | public protocol InternetConnectionProtocol {
    |                 `- note: add @available attribute to enclosing protocol
216 |     /// A publisher that emits the current internet connection status.
217 |     ///
218 |     /// This publisher never fails and continuously updates with the latest
219 |     /// connection status.
220 |     var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> { get }
    |         |                `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
221 | }
222 |
<unknown>:0: error: cannot convert value of type 'any KeyPath<InternetConnection, InternetConnectionStatus> & Sendable' to expected argument type 'ReferenceWritableKeyPath<InternetConnection, InternetConnectionStatus>'
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
    | `- note: add @available attribute to enclosing extension
224 |     /// A publisher that emits the current internet connection status.
225 |     ///
    :
228 |     ///
229 |     /// - Note: The publisher won't publish any duplicates.
230 |     public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
    |                |                `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
231 |         $status.removeDuplicates().eraseToAnyPublisher()
232 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:60:9: error: setter for 'status' is only available in macOS 10.15 or newer
 27 | /// Basically, it's a wrapper over legacy monitor based on `Reachability` (iOS 11 only)
 28 | /// and default monitor based on `Network`.`NWPathMonitor` (iOS 12+).
 29 | open class InternetConnection: @unchecked Sendable {
    |            `- note: add @available attribute to enclosing class
 30 |     /// The current Internet connection status.
 31 |     @Published public private(set) var status: InternetConnectionStatus {
    :
 51 |     /// Creates a `InternetConnection` with a given monitor.
 52 |     /// - Parameter monitor: an Internet connection monitor. Use nil for a default `InternetConnectionMonitor`.
 53 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 54 |         notificationCenter: NotificationCenter = .default,
 55 |         monitor: InternetConnectionMonitor
    :
 58 |         self.monitor = monitor
 59 |
 60 |         status = monitor.status
    |         |- error: setter for 'status' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 61 |         monitor.delegate = self
 62 |         monitor.start()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:72:9: error: setter for 'status' is only available in macOS 10.15 or newer
 68 | }
 69 |
 70 | extension InternetConnection: InternetConnectionDelegate {
    | `- note: add @available attribute to enclosing extension
 71 |     public func internetConnectionStatusDidChange(status: InternetConnectionStatus) {
    |                 `- note: add @available attribute to enclosing instance method
 72 |         self.status = status
    |         |- error: setter for 'status' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 73 |     }
 74 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:182:27: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
    :
179 |         }
180 |
181 |         private func createMonitor() -> NWPathMonitor {
    |                      `- note: add @available attribute to enclosing instance method
182 |             let monitor = NWPathMonitor()
    |                           |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
    |                           `- note: add 'if #available' version check
183 |
184 |             // We should be able to do `[weak self]` here, but it seems `NWPathMonitor` sometimes calls the handler
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:203:28: error: 'isConstrained' is only available in macOS 10.15 or newer
151 |     /// The default Internet connection monitor for iOS 12+.
152 |     /// It uses Apple Network API.
153 |     public class Monitor: InternetConnectionMonitor, @unchecked Sendable {
    |                  `- note: add @available attribute to enclosing class
154 |         private var monitor: NWPathMonitor?
155 |         private let queue = DispatchQueue(label: "io.getstream.internet-monitor")
    :
195 |         }
196 |
197 |         private func status(from path: NWPath) -> InternetConnectionStatus {
    |                      `- note: add @available attribute to enclosing instance method
198 |             guard path.status == .satisfied else {
199 |                 return .unavailable
    :
201 |
202 |             let quality: InternetConnectionQuality
203 |             quality = path.isConstrained ? .constrained : (path.isExpensive ? .expensive : .great)
    |                            |- error: 'isConstrained' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
204 |
205 |             return .available(quality)
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:231:17: error: 'removeDuplicates()' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
    | `- note: add @available attribute to enclosing extension
224 |     /// A publisher that emits the current internet connection status.
225 |     ///
    :
228 |     ///
229 |     /// - Note: The publisher won't publish any duplicates.
230 |     public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
    |                `- note: add @available attribute to enclosing property
231 |         $status.removeDuplicates().eraseToAnyPublisher()
    |                 |- error: 'removeDuplicates()' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
232 |     }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/InternetConnection.swift:231:36: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
    | `- note: add @available attribute to enclosing extension
224 |     /// A publisher that emits the current internet connection status.
225 |     ///
    :
228 |     ///
229 |     /// - Note: The publisher won't publish any duplicates.
230 |     public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
    |                `- note: add @available attribute to enclosing property
231 |         $status.removeDuplicates().eraseToAnyPublisher()
    |                                    |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
232 |     }
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:15:34: error: 'AsyncStream' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          |                       `- error: 'AsyncStream' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
17 |             let cancellable = self.sink(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:8:18: error: 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:16:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
   |         |- error: 'AsyncStream' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
17 |             let cancellable = self.sink(
18 |                 receiveCompletion: { _ in
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:17:36: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
13 |     ///
14 |     /// - Returns: An `AsyncStream` emitting values of the publisher as they arrive.
15 |     func eraseAsAsyncStream() -> AsyncStream<Output> {
   |          `- note: add @available attribute to enclosing instance method
16 |         AsyncStream { continuation in
17 |             let cancellable = self.sink(
   |                                    |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
   |                                    `- note: add 'if #available' version check
18 |                 receiveCompletion: { _ in
19 |                     continuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:37:41: error: 'values' is only available in macOS 12.0 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
30 |     }
31 |
32 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
33 |         file: StaticString = #file,
34 |         line: UInt = #line
35 |     ) async throws -> Output {
36 |         if #available(iOS 15.0, *) {
37 |             for try await value in self.values {
   |                                         |- error: 'values' is only available in macOS 12.0 or newer
   |                                         `- note: add 'if #available' version check
38 |                 return value
39 |             }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:55:27: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
53 |         line: UInt = #line
54 |     ) async throws -> Output {
55 |         let erased = self.eraseToAnyPublisher()
   |                           |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
56 |         return try await Task(
57 |             timeoutInSeconds: timeoutInSeconds,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:56:26: error: 'Task' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
54 |     ) async throws -> Output {
55 |         let erased = self.eraseToAnyPublisher()
56 |         return try await Task(
   |                          |- error: 'Task' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
57 |             timeoutInSeconds: timeoutInSeconds,
58 |             file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:62:30: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
60 |             line: line
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
   |                              |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
63 |         }.value
64 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:63:11: error: 'value' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
47 |     }
48 |
49 |     func firstValue(
   |          `- note: add @available attribute to enclosing instance method
50 |         timeoutInSeconds: TimeInterval,
51 |         file: StaticString = #file,
   :
61 |         ) { [erased] in
62 |             try await erased.firstValue(file: file, line: line)
63 |         }.value
   |           |- error: 'value' is only available in macOS 10.15 or newer
   |           `- note: add 'if #available' version check
64 |     }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:20: error: 'dropFirst' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                    |- error: 'dropFirst' is only available in macOS 10.15 or newer
   |                    `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:74:41: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
72 |     ) async throws -> Output {
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
   |                                         |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |                                         `- note: add 'if #available' version check
75 |             : eraseToAnyPublisher()
76 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:75:15: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
73 |         let publisher = dropFirst > 0
74 |             ? self.dropFirst(dropFirst).eraseToAnyPublisher()
75 |             : eraseToAnyPublisher()
   |               |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
76 |
77 |         if let timeout {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:78:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
76 |
77 |         if let timeout {
78 |             return try await publisher.firstValue(
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
79 |                 timeoutInSeconds: timeout,
80 |                 file: file,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+AsyncStream.swift:85:40: error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | public extension Publisher where Output: Sendable {
   |        `- note: add @available attribute to enclosing extension
 9 |     /// Converts the current publisher into an `AsyncStream` of its output.
10 |     ///
   :
64 |     }
65 |
66 |     func nextValue(
   |          `- note: add @available attribute to enclosing instance method
67 |         dropFirst: Int = 0,
68 |         timeout: TimeInterval? = nil,
   :
83 |             )
84 |         } else {
85 |             return try await publisher.firstValue()
   |                                        |- error: conformance of 'AnyPublisher<Output, Failure>' to 'Publisher' is only available in macOS 10.15 or newer
   |                                        `- note: add 'if #available' version check
86 |         }
87 |     }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:12:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add @available attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
   |          `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |         sink { [weak object] value in
14 |             object?[keyPath: keyPath] = value
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:8:11: error: 'Publisher' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | |         `- error: 'Publisher' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Publisher+WeakAssign.swift:13:9: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
 6 | import Foundation
 7 |
 8 | extension Publisher where Failure == Never {
   | `- note: add @available attribute to enclosing extension
 9 |     public func assign<Root: AnyObject>(
   |                 `- note: add @available attribute to enclosing instance method
10 |         to keyPath: ReferenceWritableKeyPath<Root, Output>,
11 |         onWeak object: Root
12 |     ) -> AnyCancellable {
13 |         sink { [weak object] value in
   |         |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |             object?[keyPath: keyPath] = value
15 |         }
[76/83] Compiling StreamCore ReflectiveStringConvertible.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[77/83] Compiling StreamCore StateBuilder.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[78/83] Compiling StreamCore StreamRuntimeCheck.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[79/83] Compiling StreamCore StringExtensions.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[80/83] Compiling StreamCore SystemEnvironment+Version.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[81/83] Compiling StreamCore Task+Timeout.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[82/83] Compiling StreamCore TimerPublisher.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
[83/83] Compiling StreamCore Timers.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(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(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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | }
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamCoreUI/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/StreamAttachments/Info.plist
BUILD FAILURE 6.0 macosSpm