Build Information
Failed to build StreamCore, reference 0.13.0 (b850c6), with Swift 6.1 for macOS (SPM) on 12 Oct 2026 11:10:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[74/86] Compiling StreamCore StateBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[75/86] Compiling StreamCore StreamRuntimeCheck.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[76/86] Compiling StreamCore StringExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[77/86] Compiling StreamCore SystemEnvironment+Version.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[78/86] Compiling StreamCore Task+Timeout.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:11:19: error: 'TaskPriority' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
| `- error: 'TaskPriority' is only available in macOS 10.15 or newer
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
13 | timeoutInSeconds: TimeInterval,
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:8:11: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:19:16: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
17 | operation: @Sendable @escaping () async throws -> Success
18 | ) {
19 | self = Task(priority: priority) {
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | try await withThrowingTaskGroup(of: Success.self) { group in
21 | /// Add the operation to perform as the first task.
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:23: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
| |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:35: error: 'Task' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:29:54: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
27 | /// Add another task to trigger the timeout if it finishes earlier than our first task.
28 | _ = group.addTaskUnlessCancelled { () -> Success in
29 | try await Task<Never, Never>.sleep(nanoseconds: UInt64(timeoutInSeconds * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | throw ClientError("Operation timed out", file, line)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:52: error: 'next(isolation:)' is only available in macOS 10.15 or newer
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
| |- error: 'next(isolation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | throw ClientError("Task produced no value", file, line)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:45: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:20:44: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
18 | ) {
19 | self = Task(priority: priority) {
20 | try await withThrowingTaskGroup(of: Success.self) { group in
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|18 |
|19 |
|20 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
21 | /// Add the operation to perform as the first task.
22 | _ = group.addTaskUnlessCancelled {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:57: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift:40:56: note: expanded code originates here
6 |
7 | /// An extension to the `Task` type that adds timeout functionality.
8 | extension Task where Failure == any Error {
| `- note: add @available attribute to enclosing extension
9 | @discardableResult
10 | init(
| `- note: add @available attribute to enclosing initializer
11 | priority: TaskPriority? = nil,
12 | /// New: a timeout property to configure how long a task may perform before failing with a timeout error.
:
38 | /// This is default for task groups to account for when there aren't any pending tasks.
39 | /// Awaiting on an empty group immediately returns 'nil' without suspending.
40 | guard let result = try await group.next() else {
+--- /Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Task+Timeout.swift
|38 |
|39 |
|40 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------
41 | throw ClientError("Task produced no value", file, line)
42 | }
[79/86] Compiling StreamCore TimerPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[80/86] Compiling StreamCore Timers.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[81/86] Compiling StreamCore APIKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[82/86] Compiling StreamCore BackgroundTaskScheduler.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[83/86] Compiling StreamCore ConnectionRecoveryHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[84/86] Compiling StreamCore ConnectionStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[85/86] Compiling StreamCore RetryStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
[86/86] Compiling StreamCore URLSessionWebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:28:45: error: 'Subscriber' is only available in macOS 10.15 or newer
11 | /// at least one active subscriber. It automatically suspends when no
12 | /// subscribers remain.
13 | final class TimerPublisher: Publisher {
| `- note: add @available attribute to enclosing class
14 | typealias Output = Date
15 | typealias Failure = Never
:
26 |
27 | /// Registers a subscriber and starts emitting dates on a background queue.
28 | func receive<S>(subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | subscriber.receive(
30 | subscription: TimerSubscription(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:85:32: error: 'Subscribers' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
:
83 | ///
84 | /// This is ignored because values are pushed on a fixed schedule.
85 | func request(_ demand: Subscribers.Demand) {
| | `- error: 'Subscribers' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
86 | // demand is ignored because we send Date events on a schedule
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/TimerPublisher.swift:43:46: error: 'Subscriber' is only available in macOS 10.15 or newer
41 | /// Emits `Date` values to the subscriber while the timer is active. It
42 | /// ensures the timer is only started once and safely suspended on cancel.
43 | private final class TimerSubscription<S: Subscriber>: Subscription where S.Input == Date, S.Failure == Never {
| | `- error: 'Subscriber' is only available in macOS 10.15 or newer
| |- note: add @available attribute to enclosing generic class
| `- note: add @available attribute to enclosing generic class
44 | /// The downstream subscriber receiving the date values.
45 | private var subscriber: S?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:98:10: error: 'AnyPublisher' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
96 | function: StaticString = #function,
97 | line: UInt = #line
98 | ) -> AnyPublisher<Date, Never> {
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
99 | guard interval > 0 else {
100 | log.warning(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:20: error: 'Just' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:106:33: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
104 | lineNumber: line
105 | )
106 | return Just(Date()).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Utils/Timers.swift:108:51: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
59 |
60 | /// Default real-world implementations of timers.
61 | public struct DefaultTimer: TimerScheduling {
| `- note: add @available attribute to enclosing struct
62 | @discardableResult
63 | public static func schedule(
:
91 | /// - line: The line number from which the method is called.
92 | /// - Returns: A publisher that emits dates while subscribed.
93 | public static func publish(
| `- note: add @available attribute to enclosing static method
94 | every interval: TimeInterval,
95 | file: StaticString = #file,
:
106 | return Just(Date()).eraseToAnyPublisher()
107 | }
108 | return TimerPublisher(interval: interval).eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:8:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 | didSet {
10 | oldValue?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:63:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
61 | }
62 |
63 | func disconnect(with code: URLSessionWebSocketTask.CloseCode) {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
64 | task?.cancel(with: code, reason: nil)
65 | session?.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:199:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
200 | var onCompletion: ((Error?) -> Void)?
201 |
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:204:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
200 | var onCompletion: ((Error?) -> Void)?
201 |
202 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
203 | _ session: URLSession,
204 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
205 | didOpenWithProtocol protocol: String?
206 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:212:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
214 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:213:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
195 | }
196 |
197 | final class URLSessionDelegateHandler: NSObject, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
198 | var onOpen: ((_ protocol: String?) -> Void)?
199 | var onClose: ((_ code: URLSessionWebSocketTask.CloseCode, _ reason: Data?) -> Void)?
:
208 | }
209 |
210 | func urlSession(
| `- note: add @available attribute to enclosing instance method
211 | _ session: URLSession,
212 | webSocketTask: URLSessionWebSocketTask,
213 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
214 | reason: Data?
215 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:54:25: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
36 | }
37 |
38 | func connect() {
| `- note: add @available attribute to enclosing instance method
39 | urlSessionDelegateHandler = makeURLSessionDelegateHandler()
40 |
:
52 | )
53 |
54 | task = session?.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | doRead()
56 | task?.resume()
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:97:22: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | task?.send(message) { [weak self] error in
99 | if error == nil {
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:98:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
94 | // MARK: - Private Helpers
95 |
96 | private func send(data: Data) {
| `- note: add @available attribute to enclosing instance method
97 | let message: URLSessionWebSocketTask.Message = .data(data)
98 | task?.send(message) { [weak self] error in
| |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | if error == nil {
100 | log.debug(
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/WebSocket/Client/URLSessionWebSocketEngine.swift:111:15: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
5 | import Foundation
6 |
7 | final class URLSessionWebSocketEngine: NSObject, WebSocketEngine, @unchecked Sendable {
| `- note: add @available attribute to enclosing class
8 | private weak var task: URLSessionWebSocketTask? {
9 | didSet {
:
108 | }
109 |
110 | private func doRead() {
| `- note: add @available attribute to enclosing instance method
111 | task?.receive { [weak self] result in
| |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | guard let self, task != nil else {
113 | return
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/StreamCoreUITests/StreamCoreUI.xctestplan
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/StreamCoreTests/StreamCore.xctestplan
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/StreamAttachmentsTests/StreamAttachments.xctestplan
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/StreamCore/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/StreamCoreUI/Info.plist
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/StreamAttachments/Info.plist
BUILD FAILURE 6.1 macosSpm