Build Information
Failed to build HealthSnapKit, reference main (6e7adf), with Swift 6.1 for macOS (SPM) on 10 Apr 2026 21:13:00 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:43:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:45:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:46:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
47 | try await withCheckedThrowingContinuation { continuation in
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:64:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
65 | sampleType: HKSampleType,
66 | predicate: NSPredicate,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:65:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
66 | predicate: NSPredicate,
67 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:69:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
67 | limit: Int,
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
70 | try await withCheckedThrowingContinuation { continuation in
71 | let query = HKSampleQuery(
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
12 | intervalComponents: DateComponents
13 | ) async throws -> HKStatisticsCollection {
14 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | let query = HKStatisticsCollectionQuery(
16 | quantityType: quantityType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:24:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
22 | query.initialResultsHandler = { _, collection, error in
23 | if let error {
24 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
25 | continuation.resume(throwing: HealthSnapError.noData)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
12 | intervalComponents: DateComponents
13 | ) async throws -> HKStatisticsCollection {
14 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|12 |
|13 |
|14 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
15 | let query = HKStatisticsCollectionQuery(
16 | quantityType: quantityType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:50:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
50 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
51 | continuation.resume(returning: nil)
52 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|45 |
|46 |
|47 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
70 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | let query = HKSampleQuery(
72 | sampleType: sampleType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:78:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
76 | ) { _, samples, error in
77 | if let error {
78 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
79 | continuation.resume(returning: [])
80 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
70 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|68 |
|69 |
|70 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
71 | let query = HKSampleQuery(
72 | sampleType: sampleType,
[12/19] Compiling HealthSnapKit HKQueryAsync.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKError+HealthSnap.swift:4:11: error: 'HKError' is only available in macOS 13.0 or newer
2 | import HealthKit
3 |
4 | extension HKError {
| | `- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing extension
5 | /// HealthKit uses this when a predicate matches no samples; callers should treat it as empty data, not a hard failure.
6 | static func isNoMatchingSamples(_ error: Error) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKError+HealthSnap.swift:8:29: error: 'HKError' is only available in macOS 13.0 or newer
2 | import HealthKit
3 |
4 | extension HKError {
| `- note: add @available attribute to enclosing extension
5 | /// HealthKit uses this when a predicate matches no samples; callers should treat it as empty data, not a hard failure.
6 | static func isNoMatchingSamples(_ error: Error) -> Bool {
| `- note: add @available attribute to enclosing static method
7 | let ns = error as NSError
8 | return ns.domain == HKError.errorDomain && ns.code == HKError.Code.errorNoData.rawValue
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKError+HealthSnap.swift:8:63: error: 'HKError' is only available in macOS 13.0 or newer
2 | import HealthKit
3 |
4 | extension HKError {
| `- note: add @available attribute to enclosing extension
5 | /// HealthKit uses this when a predicate matches no samples; callers should treat it as empty data, not a hard failure.
6 | static func isNoMatchingSamples(_ error: Error) -> Bool {
| `- note: add @available attribute to enclosing static method
7 | let ns = error as NSError
8 | return ns.domain == HKError.errorDomain && ns.code == HKError.Code.errorNoData.rawValue
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKError+HealthSnap.swift:8:76: error: 'errorNoData' is only available in macOS 13.0 or newer
2 | import HealthKit
3 |
4 | extension HKError {
| `- note: add @available attribute to enclosing extension
5 | /// HealthKit uses this when a predicate matches no samples; callers should treat it as empty data, not a hard failure.
6 | static func isNoMatchingSamples(_ error: Error) -> Bool {
| `- note: add @available attribute to enclosing static method
7 | let ns = error as NSError
8 | return ns.domain == HKError.errorDomain && ns.code == HKError.Code.errorNoData.rawValue
| |- error: 'errorNoData' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
9 | }
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:7:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
8 | quantityType: HKQuantityType,
9 | predicate: NSPredicate,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:8:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
9 | predicate: NSPredicate,
10 | options: HKStatisticsOptions,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:10:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
9 | predicate: NSPredicate,
10 | options: HKStatisticsOptions,
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
11 | anchorDate: Date,
12 | intervalComponents: DateComponents
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:13:23: error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
11 | anchorDate: Date,
12 | intervalComponents: DateComponents
13 | ) async throws -> HKStatisticsCollection {
| `- error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
14 | try await withCheckedThrowingContinuation { continuation in
15 | let query = HKStatisticsCollectionQuery(
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:42:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:43:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:45:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:46:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
47 | try await withCheckedThrowingContinuation { continuation in
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:64:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
65 | sampleType: HKSampleType,
66 | predicate: NSPredicate,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:65:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
66 | predicate: NSPredicate,
67 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:69:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
67 | limit: Int,
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
70 | try await withCheckedThrowingContinuation { continuation in
71 | let query = HKSampleQuery(
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
12 | intervalComponents: DateComponents
13 | ) async throws -> HKStatisticsCollection {
14 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | let query = HKStatisticsCollectionQuery(
16 | quantityType: quantityType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:24:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
22 | query.initialResultsHandler = { _, collection, error in
23 | if let error {
24 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
25 | continuation.resume(throwing: HealthSnapError.noData)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:14:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
| `- note: add @available attribute to enclosing static method
7 | store: HKHealthStore,
8 | quantityType: HKQuantityType,
:
12 | intervalComponents: DateComponents
13 | ) async throws -> HKStatisticsCollection {
14 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|12 |
|13 |
|14 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
15 | let query = HKStatisticsCollectionQuery(
16 | quantityType: quantityType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:50:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
50 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
51 | continuation.resume(returning: nil)
52 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:47:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
39 | }
40 |
41 | static func statistics(
| `- note: add @available attribute to enclosing static method
42 | store: HKHealthStore,
43 | quantityType: HKQuantityType,
:
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
47 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|45 |
|46 |
|47 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
48 | let query = HKStatisticsQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: options) { _, stats, error in
49 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
70 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | let query = HKSampleQuery(
72 | sampleType: sampleType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:78:24: error: 'HKError' is only available in macOS 13.0 or newer
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
76 | ) { _, samples, error in
77 | if let error {
78 | if HKError.isNoMatchingSamples(error) {
| |- error: 'HKError' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
79 | continuation.resume(returning: [])
80 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift:70:51: note: expanded code originates here
3 |
4 | /// Async wrappers around completion-handler-based HealthKit queries (used by ``LiveHealthStore``).
5 | enum HKQueryAsync {
| `- note: add @available attribute to enclosing enum
6 | static func statisticsCollection(
7 | store: HKHealthStore,
:
61 | }
62 |
63 | static func samples(
| `- note: add @available attribute to enclosing static method
64 | store: HKHealthStore,
65 | sampleType: HKSampleType,
:
68 | sortDescriptors: [NSSortDescriptor]
69 | ) async throws -> [HKSample] {
70 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift
|68 |
|69 |
|70 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-------------------------------------------------------------------------------------------------
71 | let query = HKSampleQuery(
72 | sampleType: sampleType,
[13/19] Compiling HealthSnapKit HealthStoreProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:11:22: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
8 |
9 | /// Requests authorization to read and write the given types.
10 | func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
11 | toShare: Set<HKSampleType>,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
12 | read: Set<HKObjectType>,
13 | completion: @escaping @Sendable (Bool, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:12:19: error: 'HKObjectType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
8 |
9 | /// Requests authorization to read and write the given types.
10 | func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
11 | toShare: Set<HKSampleType>,
12 | read: Set<HKObjectType>,
| `- error: 'HKObjectType' is only available in macOS 13.0 or newer
13 | completion: @escaping @Sendable (Bool, Error?) -> Void
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:18:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
19 | predicate: NSPredicate,
20 | options: HKStatisticsOptions,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:20:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
19 | predicate: NSPredicate,
20 | options: HKStatisticsOptions,
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
21 | anchorDate: Date,
22 | intervalComponents: DateComponents
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:23:23: error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
19 | predicate: NSPredicate,
:
21 | anchorDate: Date,
22 | intervalComponents: DateComponents
23 | ) async throws -> HKStatisticsCollection
| `- error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
24 |
25 | /// Runs a statistics query for a single interval.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:27:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:29:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
30 | ) async throws -> HKStatistics?
31 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:30:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
30 | ) async throws -> HKStatistics?
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
31 |
32 | /// Runs a sample query and returns matching samples.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:34:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
31 |
32 | /// Runs a sample query and returns matching samples.
33 | func samples(
| `- note: add @available attribute to enclosing instance method
34 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
35 | predicate: NSPredicate,
36 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:38:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
31 |
32 | /// Runs a sample query and returns matching samples.
33 | func samples(
| `- note: add @available attribute to enclosing instance method
34 | sampleType: HKSampleType,
35 | predicate: NSPredicate,
36 | limit: Int,
37 | sortDescriptors: [NSSortDescriptor]
38 | ) async throws -> [HKSample]
| `- error: 'HKSample' is only available in macOS 13.0 or newer
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:6:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:40: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:18:22: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
15 | }
16 |
17 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
18 | toShare: Set<HKSampleType>,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
19 | read: Set<HKObjectType>,
20 | completion: @escaping @Sendable (Bool, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:19:19: error: 'HKObjectType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
15 | }
16 |
17 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
18 | toShare: Set<HKSampleType>,
19 | read: Set<HKObjectType>,
| `- error: 'HKObjectType' is only available in macOS 13.0 or newer
20 | completion: @escaping @Sendable (Bool, Error?) -> Void
21 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:26:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
27 | predicate: NSPredicate,
28 | options: HKStatisticsOptions,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:28:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
27 | predicate: NSPredicate,
28 | options: HKStatisticsOptions,
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
29 | anchorDate: Date,
30 | intervalComponents: DateComponents
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:31:23: error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
27 | predicate: NSPredicate,
:
29 | anchorDate: Date,
30 | intervalComponents: DateComponents
31 | ) async throws -> HKStatisticsCollection {
| `- error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
32 | try await HKQueryAsync.statisticsCollection(
33 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:43:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:45:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
46 | ) async throws -> HKStatistics? {
47 | try await HKQueryAsync.statistics(
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:46:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
47 | try await HKQueryAsync.statistics(
48 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:56:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
53 | }
54 |
55 | public func samples(
| `- note: add @available attribute to enclosing instance method
56 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
57 | predicate: NSPredicate,
58 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:60:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
53 | }
54 |
55 | public func samples(
| `- note: add @available attribute to enclosing instance method
56 | sampleType: HKSampleType,
57 | predicate: NSPredicate,
58 | limit: Int,
59 | sortDescriptors: [NSSortDescriptor]
60 | ) async throws -> [HKSample] {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
61 | try await HKQueryAsync.samples(
62 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:14:9: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
11 | }
12 |
13 | public func isHealthDataAvailable() -> Bool {
| `- note: add @available attribute to enclosing instance method
14 | HKHealthStore.isHealthDataAvailable()
| |- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
15 | }
16 |
[14/19] Compiling HealthSnapKit LiveHealthStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:11:22: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
8 |
9 | /// Requests authorization to read and write the given types.
10 | func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
11 | toShare: Set<HKSampleType>,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
12 | read: Set<HKObjectType>,
13 | completion: @escaping @Sendable (Bool, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:12:19: error: 'HKObjectType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
8 |
9 | /// Requests authorization to read and write the given types.
10 | func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
11 | toShare: Set<HKSampleType>,
12 | read: Set<HKObjectType>,
| `- error: 'HKObjectType' is only available in macOS 13.0 or newer
13 | completion: @escaping @Sendable (Bool, Error?) -> Void
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:18:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
19 | predicate: NSPredicate,
20 | options: HKStatisticsOptions,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:20:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
19 | predicate: NSPredicate,
20 | options: HKStatisticsOptions,
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
21 | anchorDate: Date,
22 | intervalComponents: DateComponents
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:23:23: error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
15 |
16 | /// Runs a statistics collection query and returns the resulting collection.
17 | func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
18 | quantityType: HKQuantityType,
19 | predicate: NSPredicate,
:
21 | anchorDate: Date,
22 | intervalComponents: DateComponents
23 | ) async throws -> HKStatisticsCollection
| `- error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
24 |
25 | /// Runs a statistics query for a single interval.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:27:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:29:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
30 | ) async throws -> HKStatistics?
31 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:30:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
24 |
25 | /// Runs a statistics query for a single interval.
26 | func statistics(
| `- note: add @available attribute to enclosing instance method
27 | quantityType: HKQuantityType,
28 | predicate: NSPredicate,
29 | options: HKStatisticsOptions
30 | ) async throws -> HKStatistics?
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
31 |
32 | /// Runs a sample query and returns matching samples.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:34:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
31 |
32 | /// Runs a sample query and returns matching samples.
33 | func samples(
| `- note: add @available attribute to enclosing instance method
34 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
35 | predicate: NSPredicate,
36 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift:38:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Abstraction over ``HKHealthStore`` so production code and tests share the same query surface.
5 | public protocol HealthStoreProtocol: AnyObject {
| `- note: add @available attribute to enclosing protocol
6 | /// Whether HealthKit is available on this device.
7 | func isHealthDataAvailable() -> Bool
:
31 |
32 | /// Runs a sample query and returns matching samples.
33 | func samples(
| `- note: add @available attribute to enclosing instance method
34 | sampleType: HKSampleType,
35 | predicate: NSPredicate,
36 | limit: Int,
37 | sortDescriptors: [NSSortDescriptor]
38 | ) async throws -> [HKSample]
| `- error: 'HKSample' is only available in macOS 13.0 or newer
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:6:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
| `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:40: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:18:22: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
15 | }
16 |
17 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
18 | toShare: Set<HKSampleType>,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
19 | read: Set<HKObjectType>,
20 | completion: @escaping @Sendable (Bool, Error?) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:19:19: error: 'HKObjectType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
15 | }
16 |
17 | public func requestAuthorization(
| `- note: add @available attribute to enclosing instance method
18 | toShare: Set<HKSampleType>,
19 | read: Set<HKObjectType>,
| `- error: 'HKObjectType' is only available in macOS 13.0 or newer
20 | completion: @escaping @Sendable (Bool, Error?) -> Void
21 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:26:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
27 | predicate: NSPredicate,
28 | options: HKStatisticsOptions,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:28:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
27 | predicate: NSPredicate,
28 | options: HKStatisticsOptions,
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
29 | anchorDate: Date,
30 | intervalComponents: DateComponents
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:31:23: error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
23 | }
24 |
25 | public func statisticsCollection(
| `- note: add @available attribute to enclosing instance method
26 | quantityType: HKQuantityType,
27 | predicate: NSPredicate,
:
29 | anchorDate: Date,
30 | intervalComponents: DateComponents
31 | ) async throws -> HKStatisticsCollection {
| `- error: 'HKStatisticsCollection' is only available in macOS 13.0 or newer
32 | try await HKQueryAsync.statisticsCollection(
33 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:43:23: error: 'HKQuantityType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
| `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:45:18: error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
| `- error: 'HKStatisticsOptions' is only available in macOS 13.0 or newer
46 | ) async throws -> HKStatistics? {
47 | try await HKQueryAsync.statistics(
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:46:23: error: 'HKStatistics' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
40 | }
41 |
42 | public func statistics(
| `- note: add @available attribute to enclosing instance method
43 | quantityType: HKQuantityType,
44 | predicate: NSPredicate,
45 | options: HKStatisticsOptions
46 | ) async throws -> HKStatistics? {
| `- error: 'HKStatistics' is only available in macOS 13.0 or newer
47 | try await HKQueryAsync.statistics(
48 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:56:21: error: 'HKSampleType' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
53 | }
54 |
55 | public func samples(
| `- note: add @available attribute to enclosing instance method
56 | sampleType: HKSampleType,
| `- error: 'HKSampleType' is only available in macOS 13.0 or newer
57 | predicate: NSPredicate,
58 | limit: Int,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:60:24: error: 'HKSample' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
53 | }
54 |
55 | public func samples(
| `- note: add @available attribute to enclosing instance method
56 | sampleType: HKSampleType,
57 | predicate: NSPredicate,
58 | limit: Int,
59 | sortDescriptors: [NSSortDescriptor]
60 | ) async throws -> [HKSample] {
| `- error: 'HKSample' is only available in macOS 13.0 or newer
61 | try await HKQueryAsync.samples(
62 | store: store,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:14:9: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
:
11 | }
12 |
13 | public func isHealthDataAvailable() -> Bool {
| `- note: add @available attribute to enclosing instance method
14 | HKHealthStore.isHealthDataAvailable()
| |- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
15 | }
16 |
[15/19] Compiling HealthSnapKit HealthSnapKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:8:2: error: 'Observable()' is only available in macOS 14.0 or newer
6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
7 | @MainActor
8 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
9 | public final class HealthSnapKit {
10 | private let store: HealthStoreProtocol
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:60:1: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
58 | }
59 | }
60 | }
+--- 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<Member>(
+--------------------------------------------------------------------
61 |
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:60:1: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
58 | }
59 | }
60 | }
+--- 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<Member>(
+--------------------------------------------------------------------
61 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:8:2: error: 'Observable()' is only available in macOS 14.0 or newer
6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
7 | @MainActor
8 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:40: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:68: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
| |- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:56:30: error: 'resume()' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
:
54 | return
55 | }
56 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:51: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift
|44 |
|45 |
|46 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
macro expansion #isolation:1:1: error: 'MainActor' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:51: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift
|44 |
|45 |
|46 | #isolation
| +--- macro expansion #isolation ---------------------------------
| |1 | nil
| | | `- error: 'MainActor' is only available in macOS 10.15 or newer
| +----------------------------------------------------------------
+-----------------------------------------------------------------------------------------
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
[16/19] Compiling HealthSnapKit CalendarDayRange.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:8:2: error: 'Observable()' is only available in macOS 14.0 or newer
6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
7 | @MainActor
8 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
9 | public final class HealthSnapKit {
10 | private let store: HealthStoreProtocol
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:60:1: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
58 | }
59 | }
60 | }
+--- 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<Member>(
+--------------------------------------------------------------------
61 |
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:60:1: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
58 | }
59 | }
60 | }
+--- 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<Member>(
+--------------------------------------------------------------------
61 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:8:2: error: 'Observable()' is only available in macOS 14.0 or newer
6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
7 | @MainActor
8 | @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift:9:40: error: 'HKHealthStore' is only available in macOS 13.0 or newer
3 |
4 | /// Default ``HealthStoreProtocol`` implementation backed by ``HKHealthStore``.
5 | public final class LiveHealthStore: HealthStoreProtocol {
| `- note: add @available attribute to enclosing class
6 | private let store: HKHealthStore
7 |
8 | /// Creates a store that wraps the shared HealthKit store.
9 | public init(store: HKHealthStore = HKHealthStore()) {
| | `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
10 | self.store = store
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:68: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
| |- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:56:30: error: 'resume()' is only available in macOS 10.15 or newer
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
:
54 | return
55 | }
56 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:51: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift
|44 |
|45 |
|46 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
macro expansion #isolation:1:1: error: 'MainActor' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift:46:51: note: expanded code originates here
7 | @MainActor
8 | @Observable
9 | public final class HealthSnapKit {
| `- note: add @available attribute to enclosing class
10 | private let store: HealthStoreProtocol
11 |
:
39 |
40 | /// Requests read access for the given domains.
41 | public func requestAuthorization(reading domains: Set<HealthDataDomain>) async throws {
| `- note: add @available attribute to enclosing instance method
42 | guard store.isHealthDataAvailable() else {
43 | throw HealthSnapError.notAvailable
44 | }
45 | let read = HealthKitPermissions.objectTypes(for: domains)
46 | try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
+--- /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift
|44 |
|45 |
|46 | #isolation
| +--- macro expansion #isolation ---------------------------------
| |1 | nil
| | | `- error: 'MainActor' is only available in macOS 10.15 or newer
| +----------------------------------------------------------------
+-----------------------------------------------------------------------------------------
47 | store.requestAuthorization(toShare: [], read: read) { success, error in
48 | if let error {
[17/19] Compiling HealthSnapKit HealthKitPermissions.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:19:79: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:38:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:49:49: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:57:48: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:20:25: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
21 | for domain in domains {
22 | switch domain {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:26:36: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
:
24 | types.formUnion(activityReadTypes())
25 | case .sleep:
26 | if let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) {
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
27 | types.insert(sleepType)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:26:78: error: 'sleepAnalysis' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
:
24 | types.formUnion(activityReadTypes())
25 | case .sleep:
26 | if let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) {
| |- error: 'sleepAnalysis' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
27 | types.insert(sleepType)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:39:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:40:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:40:62: error: 'stepCount' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
| |- error: 'stepCount' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:41:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:41:62: error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
| |- error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:42:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:42:62: error: 'basalEnergyBurned' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
| |- error: 'basalEnergyBurned' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:43:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:43:62: error: 'distanceWalkingRunning' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
| |- error: 'distanceWalkingRunning' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:44:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
46 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:44:62: error: 'appleExerciseTime' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
| |- error: 'appleExerciseTime' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
46 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:45:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
46 | return set
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:45:62: error: 'appleStandHour' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
| |- error: 'appleStandHour' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
46 | return set
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:50:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:51:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:51:62: error: 'heartRate' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
| |- error: 'heartRate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:52:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
54 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:52:62: error: 'restingHeartRate' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
| |- error: 'restingHeartRate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
54 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:53:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | return set
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:53:62: error: 'heartRateVariabilitySDNN' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
| |- error: 'heartRateVariabilitySDNN' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | return set
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:58:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:59:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:59:62: error: 'bodyMass' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
| |- error: 'bodyMass' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:60:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
62 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:60:62: error: 'bodyMassIndex' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
| |- error: 'bodyMassIndex' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
62 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:61:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
62 | return set
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:61:62: error: 'bodyFatPercentage' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
| |- error: 'bodyFatPercentage' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
62 | return set
63 | }
[18/19] Compiling HealthSnapKit HealthSnapError.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:19:79: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:38:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:49:49: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:57:48: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| | `- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:20:25: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
21 | for domain in domains {
22 | switch domain {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:26:36: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
:
24 | types.formUnion(activityReadTypes())
25 | case .sleep:
26 | if let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) {
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
27 | types.insert(sleepType)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:26:78: error: 'sleepAnalysis' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
20 | var types = Set<HKObjectType>()
21 | for domain in domains {
:
24 | types.formUnion(activityReadTypes())
25 | case .sleep:
26 | if let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) {
| |- error: 'sleepAnalysis' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
27 | types.insert(sleepType)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:39:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:40:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:40:62: error: 'stepCount' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
| |- error: 'stepCount' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:41:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:41:62: error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
| |- error: 'activeEnergyBurned' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:42:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:42:62: error: 'basalEnergyBurned' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
| |- error: 'basalEnergyBurned' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:43:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:43:62: error: 'distanceWalkingRunning' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
41 | if let t = HKObjectType.quantityType(forIdentifier: .activeEnergyBurned) { set.insert(t) }
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
| |- error: 'distanceWalkingRunning' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:44:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
46 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:44:62: error: 'appleExerciseTime' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
42 | if let t = HKObjectType.quantityType(forIdentifier: .basalEnergyBurned) { set.insert(t) }
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
| |- error: 'appleExerciseTime' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
46 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:45:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
46 | return set
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:45:62: error: 'appleStandHour' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
36 | }
37 |
38 | private static func activityReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
39 | var set = Set<HKObjectType>()
40 | if let t = HKObjectType.quantityType(forIdentifier: .stepCount) { set.insert(t) }
:
43 | if let t = HKObjectType.quantityType(forIdentifier: .distanceWalkingRunning) { set.insert(t) }
44 | if let t = HKObjectType.quantityType(forIdentifier: .appleExerciseTime) { set.insert(t) }
45 | if let t = HKObjectType.categoryType(forIdentifier: .appleStandHour) { set.insert(t) }
| |- error: 'appleStandHour' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
46 | return set
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:50:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:51:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:51:62: error: 'heartRate' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
| |- error: 'heartRate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:52:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
54 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:52:62: error: 'restingHeartRate' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
| |- error: 'restingHeartRate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
54 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:53:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | return set
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:53:62: error: 'heartRateVariabilitySDNN' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
47 | }
48 |
49 | private static func heartReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
50 | var set = Set<HKObjectType>()
51 | if let t = HKObjectType.quantityType(forIdentifier: .heartRate) { set.insert(t) }
52 | if let t = HKObjectType.quantityType(forIdentifier: .restingHeartRate) { set.insert(t) }
53 | if let t = HKObjectType.quantityType(forIdentifier: .heartRateVariabilitySDNN) { set.insert(t) }
| |- error: 'heartRateVariabilitySDNN' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | return set
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:58:23: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:59:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:59:62: error: 'bodyMass' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
| |- error: 'bodyMass' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:60:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
62 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:60:62: error: 'bodyMassIndex' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
| |- error: 'bodyMassIndex' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
62 | return set
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:61:20: error: 'HKObjectType' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
62 | return set
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift:61:62: error: 'bodyFatPercentage' is only available in macOS 13.0 or newer
15 |
16 | /// Maps ``HealthDataDomain`` values to concrete HealthKit object types for authorization.
17 | public enum HealthKitPermissions: Sendable {
| `- note: add @available attribute to enclosing enum
18 | /// All sample and object types required to read data for the given domains.
19 | public static func objectTypes(for domains: Set<HealthDataDomain>) -> Set<HKObjectType> {
:
55 | }
56 |
57 | private static func bodyReadTypes() -> Set<HKObjectType> {
| `- note: add @available attribute to enclosing static method
58 | var set = Set<HKObjectType>()
59 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMass) { set.insert(t) }
60 | if let t = HKObjectType.quantityType(forIdentifier: .bodyMassIndex) { set.insert(t) }
61 | if let t = HKObjectType.quantityType(forIdentifier: .bodyFatPercentage) { set.insert(t) }
| |- error: 'bodyFatPercentage' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
62 | return set
63 | }
[19/19] Compiling HealthSnapKit SleepProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift:40:31: error: 'HKObjectType' is only available in macOS 13.0 or newer
4 | /// Fetches sleep stage summaries grouped into nights.
5 | @MainActor
6 | public final class SleepProvider {
| `- note: add @available attribute to enclosing class
7 | private let store: HealthStoreProtocol
8 |
:
36 |
37 | /// Fetches sleep snapshots for each detected night overlapping `range`.
38 | public func range(_ range: ClosedRange<Date>) async throws -> [SleepSnapshot] {
| `- note: add @available attribute to enclosing instance method
39 | guard store.isHealthDataAvailable() else { throw HealthSnapError.notAvailable }
40 | guard let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) else {
| |- error: 'HKObjectType' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | throw HealthSnapError.noData
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift:40:73: error: 'sleepAnalysis' is only available in macOS 13.0 or newer
4 | /// Fetches sleep stage summaries grouped into nights.
5 | @MainActor
6 | public final class SleepProvider {
| `- note: add @available attribute to enclosing class
7 | private let store: HealthStoreProtocol
8 |
:
36 |
37 | /// Fetches sleep snapshots for each detected night overlapping `range`.
38 | public func range(_ range: ClosedRange<Date>) async throws -> [SleepSnapshot] {
| `- note: add @available attribute to enclosing instance method
39 | guard store.isHealthDataAvailable() else { throw HealthSnapError.notAvailable }
40 | guard let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) else {
| |- error: 'sleepAnalysis' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
41 | throw HealthSnapError.noData
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift:48:25: error: 'HKQuery' is only available in macOS 13.0 or newer
4 | /// Fetches sleep stage summaries grouped into nights.
5 | @MainActor
6 | public final class SleepProvider {
| `- note: add @available attribute to enclosing class
7 | private let store: HealthStoreProtocol
8 |
:
36 |
37 | /// Fetches sleep snapshots for each detected night overlapping `range`.
38 | public func range(_ range: ClosedRange<Date>) async throws -> [SleepSnapshot] {
| `- note: add @available attribute to enclosing instance method
39 | guard store.isHealthDataAvailable() else { throw HealthSnapError.notAvailable }
40 | guard let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) else {
:
46 | throw HealthSnapError.noData
47 | }
48 | let predicate = HKQuery.predicateForSamples(withStart: start, end: endExclusive, options: [])
| |- error: 'HKQuery' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
49 | let raw = try await store.samples(
50 | sampleType: sleepType,
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift:53:53: error: 'HKSampleSortIdentifierStartDate' is only available in macOS 13.0 or newer
4 | /// Fetches sleep stage summaries grouped into nights.
5 | @MainActor
6 | public final class SleepProvider {
| `- note: add @available attribute to enclosing class
7 | private let store: HealthStoreProtocol
8 |
:
36 |
37 | /// Fetches sleep snapshots for each detected night overlapping `range`.
38 | public func range(_ range: ClosedRange<Date>) async throws -> [SleepSnapshot] {
| `- note: add @available attribute to enclosing instance method
39 | guard store.isHealthDataAvailable() else { throw HealthSnapError.notAvailable }
40 | guard let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) else {
:
51 | predicate: predicate,
52 | limit: HKObjectQueryNoLimit,
53 | sortDescriptors: [NSSortDescriptor(key: HKSampleSortIdentifierStartDate, ascending: true)]
| |- error: 'HKSampleSortIdentifierStartDate' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | )
55 | let samples = raw.compactMap { $0 as? HKCategorySample }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift:55:47: error: 'HKCategorySample' is only available in macOS 13.0 or newer
4 | /// Fetches sleep stage summaries grouped into nights.
5 | @MainActor
6 | public final class SleepProvider {
| `- note: add @available attribute to enclosing class
7 | private let store: HealthStoreProtocol
8 |
:
36 |
37 | /// Fetches sleep snapshots for each detected night overlapping `range`.
38 | public func range(_ range: ClosedRange<Date>) async throws -> [SleepSnapshot] {
| `- note: add @available attribute to enclosing instance method
39 | guard store.isHealthDataAvailable() else { throw HealthSnapError.notAvailable }
40 | guard let sleepType = HKObjectType.categoryType(forIdentifier: .sleepAnalysis) else {
:
53 | sortDescriptors: [NSSortDescriptor(key: HKSampleSortIdentifierStartDate, ascending: true)]
54 | )
55 | let samples = raw.compactMap { $0 as? HKCategorySample }
| |- error: 'HKCategorySample' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
56 | if samples.isEmpty {
57 | throw HealthSnapError.noData
BUILD FAILURE 6.1 macosSpm