Build Information
Failed to build StreamChatSwiftUI, reference develop (042202), with Swift 6.0 for macOS (SPM) on 29 Apr 2026 10:46:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
[91/95] Compiling StreamCore InternetConnection.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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
[92/95] Compiling StreamCore Publisher+AsyncStream.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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
[93/95] 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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
[94/95] 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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
[95/95] 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 |
<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:230:33: error: 'AnyPublisher' is only available in macOS 10.15 or newer
221 | }
222 |
223 | extension InternetConnection: InternetConnectionProtocol {
| `- note: add @available attribute to enclosing extension
224 | /// A publisher that emits the current internet connection status.
225 | ///
:
228 | ///
229 | /// - Note: The publisher won't publish any duplicates.
230 | public var statusPublisher: AnyPublisher<InternetConnectionStatus, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
231 | $status.removeDuplicates().eraseToAnyPublisher()
232 | }
/Users/admin/builder/spi-builder-workspace/.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 | }
Fetching https://github.com/GetStream/stream-chat-swift.git
[1/235188] Fetching stream-chat-swift
Fetched https://github.com/GetStream/stream-chat-swift.git from cache (84.18s)
Fetching https://github.com/GetStream/stream-core-swift.git
Fetching https://github.com/apple/swift-docc-plugin
[1/2287] Fetching swift-docc-plugin
[93/4424] Fetching swift-docc-plugin, stream-core-swift
Fetched https://github.com/GetStream/stream-core-swift.git from cache (1.04s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.04s)
Computing version for https://github.com/GetStream/stream-core-swift.git
Computed https://github.com/GetStream/stream-core-swift.git at 0.6.3 (0.57s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.44s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3678] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.09s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.61s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/GetStream/stream-core-swift.git
Working copy of https://github.com/GetStream/stream-core-swift.git resolved at 0.6.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/GetStream/stream-chat-swift.git
Working copy of https://github.com/GetStream/stream-chat-swift.git resolved at develop (4a1c8d5)
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.0 macosSpm