Build Information
Failed to build SwiftQuery, reference 0.1.3 (8e9600), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 06:55:15 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kajatin/SwiftQuery.git
Reference: 0.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kajatin/SwiftQuery
* tag 0.1.3 -> FETCH_HEAD
HEAD is now at 8e9600c feat: improved query execution logic
Cloned https://github.com/Kajatin/SwiftQuery.git
Revision (git rev-parse @):
8e9600c07c1a73c88fb81355749faa307e788ef3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Kajatin/SwiftQuery.git at 0.1.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Kajatin/SwiftQuery.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/12] Compiling SwiftQuery QueryStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
17 | // MARK: Public states
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/13] Emitting module SwiftQuery
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
17 | // MARK: Public states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
16 | // MARK: Public states
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:19:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'status' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
18 | /// Indicates the status of the query.
19 | public var status: MutationStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | /// A derived boolean from the ``status`` variable above, provided for convenience.
21 | public var isIdle: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:38:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'data' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
36 |
37 | /// The last successfully resolved data for the mutation.
38 | public var data: Response?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
39 |
40 | /// The error object for the mutation, if an error was thrown.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:41:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'error' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
39 |
40 | /// The error object for the mutation, if an error was thrown.
41 | public var error: (any Error)?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:44:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'failureCount' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
44 | public var failureCount: UInt
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
45 |
46 | /// The date for when the mutation was submitted.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:47:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'submittedAt' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
45 |
46 | /// The date for when the mutation was submitted.
47 | public var submittedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
48 |
49 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:51:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
49 | // MARK: Private states
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:52:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
52 | @ObservationIgnored private let onError: (Error) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:53:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:54:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
55 | @ObservationIgnored private let retry: UInt
56 | @ObservationIgnored private let retryDelay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:55:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:56:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
56 | @ObservationIgnored private let retryDelay: TimeInterval
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:58:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
59 |
60 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:60:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
59 |
60 | @ObservationIgnored private let logger = Logger(
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
61 | subsystem: Bundle.main.bundleIdentifier!,
62 | category: "SwiftQuery.Mutation"
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:149:1: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Mutation' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
147 | }
148 | }
149 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery8Mutation10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
150 |
macro expansion @ObservationTracked:4:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:19:38: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
18 | /// Indicates the status of the query.
19 | public var status: MutationStatus
+--- macro expansion @ObservationTracked ---------------------------
|2 |
|3 | /// Indicates the status of the query.
|4 | @ObservationIgnored private var _status: MutationStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | /// A derived boolean from the ``status`` variable above, provided for convenience.
21 | public var isIdle: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:38:31: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
36 |
37 | /// The last successfully resolved data for the mutation.
38 | public var data: Response?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The last successfully resolved data for the mutation.
|2 | @ObservationIgnored private var _data: Response?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
39 |
40 | /// The error object for the mutation, if an error was thrown.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:41:35: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
39 |
40 | /// The error object for the mutation, if an error was thrown.
41 | public var error: (any Error)?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The error object for the mutation, if an error was thrown.
|2 | @ObservationIgnored private var _error: (any Error)?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:44:34: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
44 | public var failureCount: UInt
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
|2 | @ObservationIgnored private var _failureCount: UInt
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
45 |
46 | /// The date for when the mutation was submitted.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:47:34: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
45 |
46 | /// The date for when the mutation was submitted.
47 | public var submittedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The date for when the mutation was submitted.
|2 | @ObservationIgnored private var _submittedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
48 |
49 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:51:62: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
49 | // MARK: Private states
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:58:56: error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
59 |
60 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:60:46: error: 'Logger' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
59 |
60 | @ObservationIgnored private let logger = Logger(
| `- error: 'Logger' is only available in macOS 11.0 or newer
61 | subsystem: Bundle.main.bundleIdentifier!,
62 | category: "SwiftQuery.Mutation"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:66:44: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
63 | )
64 |
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | mutationFn: @escaping (Request) -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
67 | onError: @escaping (Error) -> Void = { _ in },
68 | onSettled: @escaping (Response?, Error?) -> Void = { _, _ in },
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:149:1: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Mutation' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
147 | }
148 | }
149 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery8Mutation10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
150 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:15:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
| `- note: add @available attribute to enclosing initializer
14 | queryKey: QueryKey,
15 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
16 | executionPolicy: QueryExecutionPolicy = .automatic
17 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:31:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
:
27 |
28 | /// Convenience initializer for ``Query`` with automatic refetching at the provided refetch interval.
29 | public convenience init(
| `- note: add @available attribute to enclosing initializer
30 | queryKey: QueryKey,
31 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
32 | refetchInterval: TimeInterval,
33 | executionPolicy: QueryExecutionPolicy = .automatic
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:48:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
:
44 |
45 | /// Convenience initializer for ``Query`` with custom retry configuration. The query will not refetch automatically.
46 | public convenience init(
| `- note: add @available attribute to enclosing initializer
47 | queryKey: QueryKey,
48 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 | retry: UInt,
50 | retryDelay: TimeInterval,
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:20:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'status' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
19 | /// Indicates the status of the query.
20 | public var status: QueryStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 | /// A derived boolean from the ``status`` variable above, provided for convenience.
22 | public var isPending: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:35:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'data' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
33 |
34 | /// The last successfully resolved data for the query.
35 | public var data: Response?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:37:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'dataUpdatedAt' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
35 | public var data: Response?
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
38 |
39 | /// The error object for the query, if an error was thrown.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:40:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'error' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
38 |
39 | /// The error object for the query, if an error was thrown.
40 | public var error: (any Error)?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:42:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'errorUpdatedAt' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
40 | public var error: (any Error)?
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
43 |
44 | /// Indicates the status of the fetch operation.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:45:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'fetchStatus' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
43 |
44 | /// Indicates the status of the fetch operation.
45 | public var fetchStatus: FetchStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
46 | /// A derived boolean from the ``fetchStatus`` variable above, provided for convenience.
47 | public var isFetching: Bool {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:65:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'failureCount' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
63 |
64 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
65 | public var failureCount: UInt
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
66 |
67 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:69:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
67 | // MARK: Private states
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
70 | @ObservationIgnored private let queryKey: QueryKey
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:71:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
72 | @ObservationIgnored private let retry: UInt
73 | @ObservationIgnored private let retryDelay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:72:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:73:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
73 | @ObservationIgnored private let retryDelay: TimeInterval
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:75:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:76:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:77:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
78 | AnyCancellable
79 | >()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:81:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
79 | >()
80 |
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
82 |
83 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:83:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
82 |
83 | @ObservationIgnored private let logger = Logger(
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
84 | subsystem: Bundle.main.bundleIdentifier!,
85 | category: "SwiftQuery.Query"
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:211:1: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Query' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
209 | }
210 | }
211 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery0B010ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
212 |
213 | // MARK: Extensions
macro expansion @ObservationTracked:4:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:20:35: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
19 | /// Indicates the status of the query.
20 | public var status: QueryStatus
+--- macro expansion @ObservationTracked ---------------------------
|2 |
|3 | /// Indicates the status of the query.
|4 | @ObservationIgnored private var _status: QueryStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 | /// A derived boolean from the ``status`` variable above, provided for convenience.
22 | public var isPending: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:35:31: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
33 |
34 | /// The last successfully resolved data for the query.
35 | public var data: Response?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The last successfully resolved data for the query.
|2 | @ObservationIgnored private var _data: Response?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:37:36: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
35 | public var data: Response?
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
|2 | @ObservationIgnored private var _dataUpdatedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
38 |
39 | /// The error object for the query, if an error was thrown.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:40:35: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
38 |
39 | /// The error object for the query, if an error was thrown.
40 | public var error: (any Error)?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The error object for the query, if an error was thrown.
|2 | @ObservationIgnored private var _error: (any Error)?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:42:37: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
40 | public var error: (any Error)?
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
|2 | @ObservationIgnored private var _errorUpdatedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
43 |
44 | /// Indicates the status of the fetch operation.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:45:40: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
43 |
44 | /// Indicates the status of the fetch operation.
45 | public var fetchStatus: FetchStatus
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// Indicates the status of the fetch operation.
|2 | @ObservationIgnored private var _fetchStatus: FetchStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
46 | /// A derived boolean from the ``fetchStatus`` variable above, provided for convenience.
47 | public var isFetching: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:65:34: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
63 |
64 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
65 | public var failureCount: UInt
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
|2 | @ObservationIgnored private var _failureCount: UInt
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
66 |
67 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:69:52: error: 'AnyPublisher' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
67 | // MARK: Private states
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:75:56: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:76:61: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:78:9: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | >()
80 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:83:46: error: 'Logger' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
82 |
83 | @ObservationIgnored private let logger = Logger(
| `- error: 'Logger' is only available in macOS 11.0 or newer
84 | subsystem: Bundle.main.bundleIdentifier!,
85 | category: "SwiftQuery.Query"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:93:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
89 |
90 | /// Initializes a new query with the provided key and automatically registers it in the shared ``QueryClient``.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | queryKey: QueryKey,
93 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
94 | executionPolicy: QueryExecutionPolicy,
95 | refetchInterval: TimeInterval?,
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:211:1: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Query' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
209 | }
210 | }
211 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery0B010ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
212 |
213 | // MARK: Extensions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// Conveniently manages a subscription to queries on a view based on appearance and disappearance events.
12 | struct QuerySubscriber: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 | var keys: [QueryKey]
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:28:56: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | modifier(QuerySubscriber(keys: keys))
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:33:53: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
:
31 |
32 | /// Modifier to subscribe to a query.
33 | func querySubscriber(for key: QueryKey) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | modifier(QuerySubscriber(keys: [key]))
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:26:18: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
[5/13] Compiling SwiftQuery MutationStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
16 | // MARK: Public states
[6/13] Compiling SwiftQuery QueryKey.swift
[7/13] Compiling SwiftQuery QueryClient.swift
[8/13] Compiling SwiftQuery QueryExecutionPolicy.swift
[9/13] Compiling SwiftQuery Mutation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
16 | // MARK: Public states
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:19:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'status' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
18 | /// Indicates the status of the query.
19 | public var status: MutationStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | /// A derived boolean from the ``status`` variable above, provided for convenience.
21 | public var isIdle: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:38:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'data' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
36 |
37 | /// The last successfully resolved data for the mutation.
38 | public var data: Response?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
39 |
40 | /// The error object for the mutation, if an error was thrown.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:41:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'error' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
39 |
40 | /// The error object for the mutation, if an error was thrown.
41 | public var error: (any Error)?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:44:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'failureCount' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
44 | public var failureCount: UInt
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
45 |
46 | /// The date for when the mutation was submitted.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:47:5: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on property 'submittedAt' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
45 |
46 | /// The date for when the mutation was submitted.
47 | public var submittedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
48 |
49 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:51:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
49 | // MARK: Private states
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:52:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
52 | @ObservationIgnored private let onError: (Error) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:53:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:54:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
55 | @ObservationIgnored private let retry: UInt
56 | @ObservationIgnored private let retryDelay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:55:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:56:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
54 | @ObservationIgnored private let onSuccess: (Response) -> Void
55 | @ObservationIgnored private let retry: UInt
56 | @ObservationIgnored private let retryDelay: TimeInterval
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:58:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
59 |
60 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:60:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
59 |
60 | @ObservationIgnored private let logger = Logger(
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
61 | subsystem: Bundle.main.bundleIdentifier!,
62 | category: "SwiftQuery.Mutation"
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:149:1: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Mutation' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
147 | }
148 | }
149 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery8Mutation10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
150 |
macro expansion @ObservationTracked:4:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:19:38: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
18 | /// Indicates the status of the query.
19 | public var status: MutationStatus
+--- macro expansion @ObservationTracked ---------------------------
|2 |
|3 | /// Indicates the status of the query.
|4 | @ObservationIgnored private var _status: MutationStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
20 | /// A derived boolean from the ``status`` variable above, provided for convenience.
21 | public var isIdle: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:38:31: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
36 |
37 | /// The last successfully resolved data for the mutation.
38 | public var data: Response?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The last successfully resolved data for the mutation.
|2 | @ObservationIgnored private var _data: Response?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
39 |
40 | /// The error object for the mutation, if an error was thrown.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:41:35: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
39 |
40 | /// The error object for the mutation, if an error was thrown.
41 | public var error: (any Error)?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The error object for the mutation, if an error was thrown.
|2 | @ObservationIgnored private var _error: (any Error)?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:44:34: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
42 |
43 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
44 | public var failureCount: UInt
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The failure count for the mutation, incremented every time the mutation fails. Reset to 0 when the mutation succeeds.
|2 | @ObservationIgnored private var _failureCount: UInt
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
45 |
46 | /// The date for when the mutation was submitted.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:47:34: note: expanded code originates here
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
45 |
46 | /// The date for when the mutation was submitted.
47 | public var submittedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The date for when the mutation was submitted.
|2 | @ObservationIgnored private var _submittedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
48 |
49 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:51:62: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
49 | // MARK: Private states
50 |
51 | @ObservationIgnored private let mutationFn: (Request) -> AnyPublisher<Response, Error>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | @ObservationIgnored private let onError: (Error) -> Void
53 | @ObservationIgnored private let onSettled: (Response?, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:58:56: error: 'AnyCancellable' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
56 | @ObservationIgnored private let retryDelay: TimeInterval
57 |
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
59 |
60 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:60:46: error: 'Logger' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
58 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
59 |
60 | @ObservationIgnored private let logger = Logger(
| `- error: 'Logger' is only available in macOS 11.0 or newer
61 | subsystem: Bundle.main.bundleIdentifier!,
62 | category: "SwiftQuery.Mutation"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:66:44: error: 'AnyPublisher' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
63 | )
64 |
65 | public init(
| `- note: add @available attribute to enclosing initializer
66 | mutationFn: @escaping (Request) -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
67 | onError: @escaping (Error) -> Void = { _ in },
68 | onSettled: @escaping (Response?, Error?) -> Void = { _, _ in },
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:149:1: note: expanded code originates here
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Mutation' here
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
147 | }
148 | }
149 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery8Mutation10ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
150 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:14:2: error: 'Observable()' is only available in macOS 14.0 or newer
12 | /// Interface to create smart data mutation functionality.
13 |
14 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:95:27: error: 'OSLogMessage' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 |
97 | self.cancellables.forEach { $0.cancel() }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:95:51: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
96 |
97 | self.cancellables.forEach { $0.cancel() }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:95:57: error: 'now' is only available in macOS 12 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
96 |
97 | self.cancellables.forEach { $0.cancel() }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:104:14: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
102 |
103 | mutationFn(input)
104 | .sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | receiveCompletion: { completion in
106 | switch completion {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:110:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
108 | self.error = error
109 | self.logger.error(
110 | "Error mutating data at \(Date.now): \(error.localizedDescription)"
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
111 | )
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:110:54: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
108 | self.error = error
109 | self.logger.error(
110 | "Error mutating data at \(Date.now): \(error.localizedDescription)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
111 | )
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:110:60: error: 'now' is only available in macOS 12 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
108 | self.error = error
109 | self.logger.error(
110 | "Error mutating data at \(Date.now): \(error.localizedDescription)"
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
111 | )
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:110:67: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
108 | self.error = error
109 | self.logger.error(
110 | "Error mutating data at \(Date.now): \(error.localizedDescription)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
111 | )
112 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:129:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
127 | if self.failureCount > 0 && self.failureCount <= self.retry {
128 | self.logger.debug(
129 | "Retrying mutation after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
130 | )
131 | self.createRetryTimer(input)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:129:55: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
127 | if self.failureCount > 0 && self.failureCount <= self.retry {
128 | self.logger.debug(
129 | "Retrying mutation after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
130 | )
131 | self.createRetryTimer(input)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:129:90: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
127 | if self.failureCount > 0 && self.failureCount <= self.retry {
128 | self.logger.debug(
129 | "Retrying mutation after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
130 | )
131 | self.createRetryTimer(input)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:129:111: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
127 | if self.failureCount > 0 && self.failureCount <= self.retry {
128 | self.logger.debug(
129 | "Retrying mutation after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
130 | )
131 | self.createRetryTimer(input)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Mutation.swift:140:14: error: 'store(in:)' is only available in macOS 10.15 or newer
13 |
14 | @Observable
15 | public final class Mutation<Request: Sendable, Response>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
16 | // MARK: Public states
17 |
:
92 | }
93 |
94 | public func mutate(_ input: Request) {
| `- note: add @available attribute to enclosing instance method
95 | self.logger.debug("Running `mutate()` at \(Date.now)")
96 |
:
138 | }
139 | )
140 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 |
[10/13] Compiling SwiftQuery Query.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
17 | // MARK: Public states
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:20:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'status' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
19 | /// Indicates the status of the query.
20 | public var status: QueryStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 | /// A derived boolean from the ``status`` variable above, provided for convenience.
22 | public var isPending: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:35:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'data' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
33 |
34 | /// The last successfully resolved data for the query.
35 | public var data: Response?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:37:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'dataUpdatedAt' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
35 | public var data: Response?
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
38 |
39 | /// The error object for the query, if an error was thrown.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:40:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'error' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
38 |
39 | /// The error object for the query, if an error was thrown.
40 | public var error: (any Error)?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:42:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'errorUpdatedAt' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
40 | public var error: (any Error)?
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
43 |
44 | /// Indicates the status of the fetch operation.
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:45:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'fetchStatus' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
43 |
44 | /// Indicates the status of the fetch operation.
45 | public var fetchStatus: FetchStatus
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
46 | /// A derived boolean from the ``fetchStatus`` variable above, provided for convenience.
47 | public var isFetching: Bool {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:65:5: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on property 'failureCount' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
63 |
64 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
65 | public var failureCount: UInt
+--- macro expansion @Observable -----------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
66 |
67 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:69:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
67 | // MARK: Private states
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
70 | @ObservationIgnored private let queryKey: QueryKey
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:71:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
72 | @ObservationIgnored private let retry: UInt
73 | @ObservationIgnored private let retryDelay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:72:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:73:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
72 | @ObservationIgnored private let retry: UInt
73 | @ObservationIgnored private let retryDelay: TimeInterval
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:75:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:76:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:77:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
78 | AnyCancellable
79 | >()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:81:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
79 | >()
80 |
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
82 |
83 | @ObservationIgnored private let logger = Logger(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:83:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
82 |
83 | @ObservationIgnored private let logger = Logger(
| `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
84 | subsystem: Bundle.main.bundleIdentifier!,
85 | category: "SwiftQuery.Query"
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:211:1: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Query' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
209 | }
210 | }
211 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery0B010ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
212 |
213 | // MARK: Extensions
macro expansion @ObservationTracked:4:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:20:35: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
19 | /// Indicates the status of the query.
20 | public var status: QueryStatus
+--- macro expansion @ObservationTracked ---------------------------
|2 |
|3 | /// Indicates the status of the query.
|4 | @ObservationIgnored private var _status: QueryStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
21 | /// A derived boolean from the ``status`` variable above, provided for convenience.
22 | public var isPending: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:35:31: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
33 |
34 | /// The last successfully resolved data for the query.
35 | public var data: Response?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The last successfully resolved data for the query.
|2 | @ObservationIgnored private var _data: Response?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:37:36: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
35 | public var data: Response?
36 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
37 | public var dataUpdatedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The date for when the query most recently returned the status as `QueryStatus.success`.
|2 | @ObservationIgnored private var _dataUpdatedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
38 |
39 | /// The error object for the query, if an error was thrown.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:40:35: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
38 |
39 | /// The error object for the query, if an error was thrown.
40 | public var error: (any Error)?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The error object for the query, if an error was thrown.
|2 | @ObservationIgnored private var _error: (any Error)?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:42:37: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
40 | public var error: (any Error)?
41 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
42 | public var errorUpdatedAt: Date?
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The timestamp for when the query most recently returned the status as `QueryStatus.error`.
|2 | @ObservationIgnored private var _errorUpdatedAt: Date?
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
43 |
44 | /// Indicates the status of the fetch operation.
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:45:40: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
43 |
44 | /// Indicates the status of the fetch operation.
45 | public var fetchStatus: FetchStatus
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// Indicates the status of the fetch operation.
|2 | @ObservationIgnored private var _fetchStatus: FetchStatus
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
46 | /// A derived boolean from the ``fetchStatus`` variable above, provided for convenience.
47 | public var isFetching: Bool {
macro expansion @ObservationTracked:2:11: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:65:34: note: expanded code originates here
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
63 |
64 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
65 | public var failureCount: UInt
+--- macro expansion @ObservationTracked ---------------------------
|1 | /// The failure count for the query incremented every time the query fails. Reset to 0 when the query succeeds.
|2 | @ObservationIgnored private var _failureCount: UInt
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
+-------------------------------------------------------------------
66 |
67 | // MARK: Private states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:69:52: error: 'AnyPublisher' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
67 | // MARK: Private states
68 |
69 | @ObservationIgnored private let queryFn: () -> AnyPublisher<Response, Error>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
70 | @ObservationIgnored private let queryKey: QueryKey
71 | @ObservationIgnored private let refetchInterval: TimeInterval?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:75:56: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
73 | @ObservationIgnored private let retryDelay: TimeInterval
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:76:61: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
74 |
75 | @ObservationIgnored private var cancellables = Set<AnyCancellable>()
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:78:9: error: 'AnyCancellable' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
76 | @ObservationIgnored private var timerCancellables = Set<AnyCancellable>()
77 | @ObservationIgnored private var notificationCancellables = Set<
78 | AnyCancellable
| `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
79 | >()
80 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:83:46: error: 'Logger' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
81 | @ObservationIgnored private var executionPolicy: QueryExecutionPolicy
82 |
83 | @ObservationIgnored private let logger = Logger(
| `- error: 'Logger' is only available in macOS 11.0 or newer
84 | subsystem: Bundle.main.bundleIdentifier!,
85 | category: "SwiftQuery.Query"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:93:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
89 |
90 | /// Initializes a new query with the provided key and automatically registers it in the shared ``QueryClient``.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | queryKey: QueryKey,
93 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
94 | executionPolicy: QueryExecutionPolicy,
95 | refetchInterval: TimeInterval?,
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:211:1: note: expanded code originates here
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- note: in expansion of macro 'Observable' on generic class 'Query' here
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
209 | }
210 | }
211 | }
+--- macro expansion @Observable -----------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s10SwiftQuery0B010ObservablefMm_6MemberfMu_>(
+-------------------------------------------------------------------
212 |
213 | // MARK: Extensions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:125:27: error: 'OSLogMessage' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
126 |
127 | self.setupTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:125:52: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
126 |
127 | self.setupTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:125:58: error: 'now' is only available in macOS 12 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
126 |
127 | self.setupTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:133:35: error: 'OSLogMessage' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
131 | self.fetchStatus = .paused
132 |
133 | self.logger.debug("No active subscribers, query is paused")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
134 |
135 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:142:14: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
140 |
141 | queryFn()
142 | .sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | receiveCompletion: { completion in
144 | switch completion {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:147:52: error: 'now' is only available in macOS 12 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
145 | case .failure(let error):
146 | self.error = error
147 | self.errorUpdatedAt = Date.now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
148 | self.logger.error(
149 | "Error fetching data for query with key \(self.queryKey.debugDescription) at \(self.errorUpdatedAt!): \(error.localizedDescription)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:149:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
147 | self.errorUpdatedAt = Date.now
148 | self.logger.error(
149 | "Error fetching data for query with key \(self.queryKey.debugDescription) at \(self.errorUpdatedAt!): \(error.localizedDescription)"
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
150 | )
151 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:149:70: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
147 | self.errorUpdatedAt = Date.now
148 | self.logger.error(
149 | "Error fetching data for query with key \(self.queryKey.debugDescription) at \(self.errorUpdatedAt!): \(error.localizedDescription)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
150 | )
151 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:149:107: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
147 | self.errorUpdatedAt = Date.now
148 | self.logger.error(
149 | "Error fetching data for query with key \(self.queryKey.debugDescription) at \(self.errorUpdatedAt!): \(error.localizedDescription)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
150 | )
151 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:149:132: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
147 | self.errorUpdatedAt = Date.now
148 | self.logger.error(
149 | "Error fetching data for query with key \(self.queryKey.debugDescription) at \(self.errorUpdatedAt!): \(error.localizedDescription)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
150 | )
151 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:169:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
167 | if self.failureCount > 0 && self.failureCount <= self.retry {
168 | self.logger.debug(
169 | "Retrying query with key \(self.queryKey.debugDescription) after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
170 | )
171 | self.createRetryTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:169:55: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
167 | if self.failureCount > 0 && self.failureCount <= self.retry {
168 | self.logger.debug(
169 | "Retrying query with key \(self.queryKey.debugDescription) after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
170 | )
171 | self.createRetryTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:169:95: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
167 | if self.failureCount > 0 && self.failureCount <= self.retry {
168 | self.logger.debug(
169 | "Retrying query with key \(self.queryKey.debugDescription) after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
170 | )
171 | self.createRetryTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:169:130: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
167 | if self.failureCount > 0 && self.failureCount <= self.retry {
168 | self.logger.debug(
169 | "Retrying query with key \(self.queryKey.debugDescription) after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
170 | )
171 | self.createRetryTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:169:151: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
167 | if self.failureCount > 0 && self.failureCount <= self.retry {
168 | self.logger.debug(
169 | "Retrying query with key \(self.queryKey.debugDescription) after \(self.retryDelay) seconds (failed \(self.failureCount)/\(self.retry) times)"
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
170 | )
171 | self.createRetryTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:176:47: error: 'now' is only available in macOS 12 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
174 | receiveValue: { value in
175 | self.data = value
176 | self.dataUpdatedAt = Date.now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
177 | self.logger.debug(
178 | "Successfully fetched new data for query with key \(self.queryKey.debugDescription) at \(self.dataUpdatedAt!)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:178:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
176 | self.dataUpdatedAt = Date.now
177 | self.logger.debug(
178 | "Successfully fetched new data for query with key \(self.queryKey.debugDescription) at \(self.dataUpdatedAt!)"
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
179 | )
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:178:76: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
176 | self.dataUpdatedAt = Date.now
177 | self.logger.debug(
178 | "Successfully fetched new data for query with key \(self.queryKey.debugDescription) at \(self.dataUpdatedAt!)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
179 | )
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:178:113: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
176 | self.dataUpdatedAt = Date.now
177 | self.logger.debug(
178 | "Successfully fetched new data for query with key \(self.queryKey.debugDescription) at \(self.dataUpdatedAt!)"
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
179 | )
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:182:14: error: 'store(in:)' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
122 | }
123 |
124 | private func refetch() {
| `- note: add @available attribute to enclosing instance method
125 | self.logger.debug("Running `refetch()` at \(Date.now)")
126 |
:
180 | }
181 | )
182 | .store(in: &self.cancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | }
184 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:191:19: error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
183 | }
184 |
185 | private func setupTimer() {
| `- note: add @available attribute to enclosing instance method
186 | if !self.timerCancellables.isEmpty {
187 | return
:
189 |
190 | if let interval = self.refetchInterval {
191 | Timer.publish(every: interval, on: .main, in: .common)
| |- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
192 | .autoconnect()
193 | .sink(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:192:18: error: 'autoconnect()' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
183 | }
184 |
185 | private func setupTimer() {
| `- note: add @available attribute to enclosing instance method
186 | if !self.timerCancellables.isEmpty {
187 | return
:
190 | if let interval = self.refetchInterval {
191 | Timer.publish(every: interval, on: .main, in: .common)
192 | .autoconnect()
| |- error: 'autoconnect()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
193 | .sink(
194 | receiveCompletion: { completion in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:193:18: error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
183 | }
184 |
185 | private func setupTimer() {
| `- note: add @available attribute to enclosing instance method
186 | if !self.timerCancellables.isEmpty {
187 | return
:
191 | Timer.publish(every: interval, on: .main, in: .common)
192 | .autoconnect()
193 | .sink(
| |- error: 'sink(receiveCompletion:receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | receiveCompletion: { completion in
195 | self.timerCancellables.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:201:18: error: 'store(in:)' is only available in macOS 10.15 or newer
14 |
15 | @Observable
16 | public final class Query<Response: Codable>: @unchecked Sendable {
| `- note: add @available attribute to enclosing generic class
17 | // MARK: Public states
18 |
:
183 | }
184 |
185 | private func setupTimer() {
| `- note: add @available attribute to enclosing instance method
186 | if !self.timerCancellables.isEmpty {
187 | return
:
199 | }
200 | )
201 | .store(in: &timerCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
202 | }
203 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:207:13: warning: capture of non-sendable type 'Response.Type' in an isolated closure
205 | private func createRetryTimer() {
206 | Timer.scheduledTimer(withTimeInterval: self.retryDelay, repeats: false) { timer in
207 | self.refetch()
| `- warning: capture of non-sendable type 'Response.Type' in an isolated closure
208 | timer.invalidate()
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:205:18: warning: capture of non-sendable type 'Response.Type' in an isolated closure
203 | }
204 |
205 | private func createRetryTimer() {
| `- warning: capture of non-sendable type 'Response.Type' in an isolated closure
206 | Timer.scheduledTimer(withTimeInterval: self.retryDelay, repeats: false) { timer in
207 | self.refetch()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:219:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
| `- note: add @available attribute to enclosing instance method
217 | NotificationCenter
218 | .default
219 | .publisher(for: QueryClient.invalidateNotificationName)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | .eraseToAnyPublisher()
221 | .sink(receiveValue: { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:220:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
| `- note: add @available attribute to enclosing instance method
217 | NotificationCenter
218 | .default
219 | .publisher(for: QueryClient.invalidateNotificationName)
220 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
221 | .sink(receiveValue: { value in
222 | if let invalidationKey = value.object as? QueryKey {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:221:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
| `- note: add @available attribute to enclosing instance method
217 | NotificationCenter
218 | .default
219 | .publisher(for: QueryClient.invalidateNotificationName)
220 | .eraseToAnyPublisher()
221 | .sink(receiveValue: { value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | if let invalidationKey = value.object as? QueryKey {
223 | if !invalidationKey.isCompleteSubset(of: self.queryKey) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:236:14: error: 'store(in:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
| `- note: add @available attribute to enclosing instance method
217 | NotificationCenter
218 | .default
:
234 | }
235 | })
236 | .store(in: ¬ificationCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | }
238 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:242:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
237 | }
238 |
239 | private func subscribeToSubscriberOnNotifications() {
| `- note: add @available attribute to enclosing instance method
240 | NotificationCenter
241 | .default
242 | .publisher(for: QueryClient.subscriberOnNotificationName)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
243 | .eraseToAnyPublisher()
244 | .sink(receiveValue: { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:243:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
237 | }
238 |
239 | private func subscribeToSubscriberOnNotifications() {
| `- note: add @available attribute to enclosing instance method
240 | NotificationCenter
241 | .default
242 | .publisher(for: QueryClient.subscriberOnNotificationName)
243 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
244 | .sink(receiveValue: { value in
245 | if let invalidationKey = value.object as? QueryKey {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:244:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
237 | }
238 |
239 | private func subscribeToSubscriberOnNotifications() {
| `- note: add @available attribute to enclosing instance method
240 | NotificationCenter
241 | .default
242 | .publisher(for: QueryClient.subscriberOnNotificationName)
243 | .eraseToAnyPublisher()
244 | .sink(receiveValue: { value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
245 | if let invalidationKey = value.object as? QueryKey {
246 | if !invalidationKey.isCompleteSubset(of: self.queryKey) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:257:14: error: 'store(in:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
237 | }
238 |
239 | private func subscribeToSubscriberOnNotifications() {
| `- note: add @available attribute to enclosing instance method
240 | NotificationCenter
241 | .default
:
255 | }
256 | })
257 | .store(in: ¬ificationCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | }
259 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:263:14: error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
258 | }
259 |
260 | private func subscribeToSubscriberOffNotifications() {
| `- note: add @available attribute to enclosing instance method
261 | NotificationCenter
262 | .default
263 | .publisher(for: QueryClient.subscriberOffNotificationName)
| |- error: 'publisher(for:object:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | .eraseToAnyPublisher()
265 | .sink(receiveValue: { value in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:264:14: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
258 | }
259 |
260 | private func subscribeToSubscriberOffNotifications() {
| `- note: add @available attribute to enclosing instance method
261 | NotificationCenter
262 | .default
263 | .publisher(for: QueryClient.subscriberOffNotificationName)
264 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | .sink(receiveValue: { value in
266 | if let invalidationKey = value.object as? QueryKey {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:265:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
258 | }
259 |
260 | private func subscribeToSubscriberOffNotifications() {
| `- note: add @available attribute to enclosing instance method
261 | NotificationCenter
262 | .default
263 | .publisher(for: QueryClient.subscriberOffNotificationName)
264 | .eraseToAnyPublisher()
265 | .sink(receiveValue: { value in
| |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
266 | if let invalidationKey = value.object as? QueryKey {
267 | if !invalidationKey.isCompleteSubset(of: self.queryKey) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:276:14: error: 'store(in:)' is only available in macOS 10.15 or newer
213 | // MARK: Extensions
214 |
215 | extension Query {
| `- note: add @available attribute to enclosing extension
216 | private func subscribeToInvalidationNotifications() {
217 | NotificationCenter
:
258 | }
259 |
260 | private func subscribeToSubscriberOffNotifications() {
| `- note: add @available attribute to enclosing instance method
261 | NotificationCenter
262 | .default
:
274 | }
275 | })
276 | .store(in: ¬ificationCancellables)
| |- error: 'store(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
277 | }
278 |
[11/13] Compiling SwiftQuery Query+Convenience.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
17 | // MARK: Public states
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:15:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
| `- note: add @available attribute to enclosing initializer
14 | queryKey: QueryKey,
15 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
16 | executionPolicy: QueryExecutionPolicy = .automatic
17 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:31:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
:
27 |
28 | /// Convenience initializer for ``Query`` with automatic refetching at the provided refetch interval.
29 | public convenience init(
| `- note: add @available attribute to enclosing initializer
30 | queryKey: QueryKey,
31 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
32 | refetchInterval: TimeInterval,
33 | executionPolicy: QueryExecutionPolicy = .automatic
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query+Convenience.swift:48:34: error: 'AnyPublisher' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | extension Query {
| `- note: add @available attribute to enclosing extension
12 | /// Convenience initializer for ``Query`` with a key and function. The query will not refetch automatically.
13 | public convenience init(
:
44 |
45 | /// Convenience initializer for ``Query`` with custom retry configuration. The query will not refetch automatically.
46 | public convenience init(
| `- note: add @available attribute to enclosing initializer
47 | queryKey: QueryKey,
48 | queryFn: @escaping () -> AnyPublisher<Response, Error>,
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
49 | retry: UInt,
50 | retryDelay: TimeInterval,
[12/13] Compiling SwiftQuery FetchStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/Query.swift:15:2: error: 'Observable()' is only available in macOS 14.0 or newer
13 | /// It supports automatic revalidation for any Combine compatible query.
14 |
15 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
16 | public final class Query<Response: Codable>: @unchecked Sendable {
17 | // MARK: Public states
[13/13] Compiling SwiftQuery QuerySubscriber.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// Conveniently manages a subscription to queries on a view based on appearance and disappearance events.
12 | struct QuerySubscriber: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 | var keys: [QueryKey]
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:28:56: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
29 | modifier(QuerySubscriber(keys: keys))
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:33:53: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
:
31 |
32 | /// Modifier to subscribe to a query.
33 | func querySubscriber(for key: QueryKey) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
34 | modifier(QuerySubscriber(keys: [key]))
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:26:18: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:17:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
10 |
11 | /// Conveniently manages a subscription to queries on a view based on appearance and disappearance events.
12 | struct QuerySubscriber: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 | var keys: [QueryKey]
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | QueryClient.shared.subscribeToQueries(with: keys)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:20:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
10 |
11 | /// Conveniently manages a subscription to queries on a view based on appearance and disappearance events.
12 | struct QuerySubscriber: ViewModifier {
| `- note: add @available attribute to enclosing struct
13 | var keys: [QueryKey]
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | content
17 | .onAppear {
18 | QueryClient.shared.subscribeToQueries(with: keys)
19 | }
20 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | QueryClient.shared.unsubscribeFromQueries(with: keys)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:29:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | modifier(QuerySubscriber(keys: keys))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:29:9: error: 'modifier' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
| `- note: add @available attribute to enclosing instance method
29 | modifier(QuerySubscriber(keys: keys))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:34:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
:
31 |
32 | /// Modifier to subscribe to a query.
33 | func querySubscriber(for key: QueryKey) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | modifier(QuerySubscriber(keys: [key]))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuery/QuerySubscriber.swift:34:9: error: 'modifier' is only available in macOS 10.15 or newer
24 | }
25 |
26 | public extension View {
| `- note: add @available attribute to enclosing extension
27 | /// Modifier to subscribe to queries.
28 | func querySubscriber(for keys: [QueryKey]) -> some View {
:
31 |
32 | /// Modifier to subscribe to a query.
33 | func querySubscriber(for key: QueryKey) -> some View {
| `- note: add @available attribute to enclosing instance method
34 | modifier(QuerySubscriber(keys: [key]))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | }
BUILD FAILURE 6.2 macosSpm