Build Information
Failed to build StreamChat, reference 5.1.0 (9d322d), with Swift 6.2 for macOS (SPM) on 24 Apr 2026 02:50:33 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 | }
[221/230] Compiling StreamCore Publisher+WeakAssign.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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 | }
<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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 | }
[222/230] Compiling StreamCore RFC3339DateFormatter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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 | }
<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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 | }
[223/230] Compiling StreamCore RawJSON.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/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 | }
<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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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/.build/checkouts/stream-core-swift/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 | }
[224/230] Compiling StreamCore WebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[225/230] Compiling StreamCore WebSocketPingController.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[226/230] Compiling StreamCore Event.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[227/230] Compiling StreamCore EventBatcher.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[228/230] Compiling StreamCore EventMiddleware.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[229/230] Compiling StreamCore EventNotificationCenter.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
[230/230] Compiling StreamCore StreamJsonDecoder.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Client/WebSocketEngine.swift:16:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | public protocol WebSocketEngine: AnyObject, Sendable {
| `- note: add '@available' attribute to enclosing protocol
8 | var request: URLRequest { get }
9 | var callbackQueue: DispatchQueue { get }
:
14 | func connect()
15 | func disconnect()
16 | func disconnect(with code: URLSessionWebSocketTask.CloseCode)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | func send(message: SendableEvent)
18 | func send(jsonMessage: Codable)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:67:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:78:10: error: 'AnyCancellable' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:68:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
66 | handler: @escaping (E) -> Void
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:69:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
67 | ) -> AnyCancellable where E: Event {
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:70:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
68 | publisher(for: .NewEventReceived)
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:71:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
69 | .compactMap { $0.event as? E }
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .sink(receiveValue: handler)
73 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:72:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
| `- note: add '@available' attribute to enclosing instance method
64 | to event: E.Type,
65 | filter: @escaping (E) -> Bool = { _ in true },
:
70 | .filter(filter)
71 | .receive(on: DispatchQueue.main)
72 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:79:9: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .compactMap(\.event)
81 | .filter(filter)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:80:14: error: 'compactMap' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
78 | ) -> AnyCancellable {
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
| |- error: 'compactMap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:81:14: error: 'filter' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
79 | publisher(for: .NewEventReceived)
80 | .compactMap(\.event)
81 | .filter(filter)
| |- error: 'filter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:82:14: error: 'receive(on:options:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
80 | .compactMap(\.event)
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
| |- error: 'receive(on:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .sink(receiveValue: handler)
84 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/WebSocket/Events/EventNotificationCenter.swift:83:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
60 | }
61 |
62 | public extension EventNotificationCenter {
| `- note: add '@available' attribute to enclosing extension
63 | func subscribe<E>(
64 | to event: E.Type,
:
73 | }
74 |
75 | func subscribe(
| `- note: add '@available' attribute to enclosing instance method
76 | filter: @escaping (Event) -> Bool = { _ in true },
77 | handler: @escaping (Event) -> Void
:
81 | .filter(filter)
82 | .receive(on: DispatchQueue.main)
83 | .sink(receiveValue: handler)
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/GetStream/stream-core-swift.git
[1/2277] Fetching swift-docc-plugin
[138/4391] Fetching swift-docc-plugin, stream-core-swift
Fetched https://github.com/apple/swift-docc-plugin from cache (1.33s)
Fetched https://github.com/GetStream/stream-core-swift.git from cache (1.33s)
Computing version for https://github.com/GetStream/stream-core-swift.git
Computed https://github.com/GetStream/stream-core-swift.git at 0.6.2 (2.00s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.0.0 (2.39s)
Creating working copy for https://github.com/GetStream/stream-core-swift.git
Working copy of https://github.com/GetStream/stream-core-swift.git resolved at 0.6.2
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.0.0
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/TestTools/StreamChatTestTools/DatabaseModels/TestDataModel.xcdatamodeld
/Users/admin/builder/spi-builder-workspace/TestTools/StreamChatTestTools/DatabaseModels/TestDataModel2.xcdatamodeld
warning: 'stream-core-swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/stream-core-swift/Sources/StreamCore/Info.plist
BUILD FAILURE 6.2 macosSpm