The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HealthSnapKit, reference main (6e7adf), with Swift 6.4 for macOS (SPM) on 24 Sep 2026 18:20:23 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isonka/HealthSnapKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/isonka/HealthSnapKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6e7adf7 docs: point SPM snippet at isonka/HealthSnapKit and drop Related stubs
Cloned https://github.com/isonka/HealthSnapKit.git
Revision (git rev-parse @):
6e7adf7dc7598e113638422d10723e0e37a81851
SUCCESS checkout https://github.com/isonka/HealthSnapKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/isonka/HealthSnapKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Planning deferred tasks]
[19 / 28]
[20 / 29] HealthSnapKit
[30 / 80]
[32 / 80]
[38 / 80]
[40 / 80]
[44 / 80]
[46 / 80]
[49 / 80]
[53 / 80]
[55 / 80]
[56 / 80]
[60 / 80]
[71 / 80] HealthSnapKit
error: SwiftCompile normal arm64 failed with a nonzero exit code. Command line:     cd /Users/admin/builder

/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/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
 6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
 7 | @MainActor
 8 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'HealthSnapKit' here
 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<$s13HealthSnapKitAA10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
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
 6 | /// The facade is main-actor isolated so it can be held from SwiftUI without cross-actor `Sendable` requirements.
 7 | @MainActor
 8 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'HealthSnapKit' here
 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<$s13HealthSnapKitAA10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
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/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/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/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/SleepAnalysisAggregator.swift:6:42: error: 'HKCategorySample' is only available in macOS 13.0 or newer
 3 |
 4 | /// Turns overlapping ``HKCategorySample`` sleep records into per-night ``SleepSnapshot`` values.
 5 | enum SleepAnalysisAggregator {
   |      `- note: add '@available' attribute to enclosing enum
 6 |     static func snapshots(from samples: [HKCategorySample], calendar: Calendar) -> [SleepSnapshot] {
   |                 |                        `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                 `- note: add '@available' attribute to enclosing static method
 7 |         guard !samples.isEmpty else { return [] }
 8 |         let sorted = samples.sorted { $0.startDate < $1.startDate }
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/SleepAnalysisAggregator.swift:14:50: error: 'HKCategorySample' is only available in macOS 13.0 or newer
 3 |
 4 | /// Turns overlapping ``HKCategorySample`` sleep records into per-night ``SleepSnapshot`` values.
 5 | enum SleepAnalysisAggregator {
   |      `- note: add '@available' attribute to enclosing enum
 6 |     static func snapshots(from samples: [HKCategorySample], calendar: Calendar) -> [SleepSnapshot] {
 7 |         guard !samples.isEmpty else { return [] }
   :
12 |
13 |     /// Splits samples into sessions when there is a gap longer than four hours.
14 |     private static func splitSessions(_ sorted: [HKCategorySample]) -> [[HKCategorySample]] {
   |                         |                        `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                         `- note: add '@available' attribute to enclosing static method
15 |         var sessions: [[HKCategorySample]] = []
16 |         var current: [HKCategorySample] = []
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/SleepAnalysisAggregator.swift:14:74: error: 'HKCategorySample' is only available in macOS 13.0 or newer
 3 |
 4 | /// Turns overlapping ``HKCategorySample`` sleep records into per-night ``SleepSnapshot`` values.
 5 | enum SleepAnalysisAggregator {
   |      `- note: add '@available' attribute to enclosing enum
 6 |     static func snapshots(from samples: [HKCategorySample], calendar: Calendar) -> [SleepSnapshot] {
 7 |         guard !samples.isEmpty else { return [] }
   :
12 |
13 |     /// Splits samples into sessions when there is a gap longer than four hours.
14 |     private static func splitSessions(_ sorted: [HKCategorySample]) -> [[HKCategorySample]] {
   |                         |                                                `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                         `- note: add '@available' attribute to enclosing static method
15 |         var sessions: [[HKCategorySample]] = []
16 |         var current: [HKCategorySample] = []
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/SleepAnalysisAggregator.swift:32:49: error: 'HKCategorySample' is only available in macOS 13.0 or newer
 3 |
 4 | /// Turns overlapping ``HKCategorySample`` sleep records into per-night ``SleepSnapshot`` values.
 5 | enum SleepAnalysisAggregator {
   |      `- note: add '@available' attribute to enclosing enum
 6 |     static func snapshots(from samples: [HKCategorySample], calendar: Calendar) -> [SleepSnapshot] {
 7 |         guard !samples.isEmpty else { return [] }
   :
30 |     }
31 |
32 |     private static func buildSnapshot(samples: [HKCategorySample], calendar: Calendar) -> SleepSnapshot? {
   |                         |                       `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                         `- note: add '@available' attribute to enclosing static method
33 |         var awake: TimeInterval = 0
34 |         var rem: TimeInterval = 0
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift:102:111: error: 'HKStatistics' is only available in macOS 13.0 or newer
  4 | /// Fetches daily activity summaries (steps, energy, distance, exercise, stand).
  5 | @MainActor
  6 | public final class ActivityProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
100 |     }
101 |
102 |     private func statistics(for identifier: HKQuantityTypeIdentifier, predicate: NSPredicate) async throws -> HKStatistics? {
    |                  |                                                                                            `- error: 'HKStatistics' is only available in macOS 13.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
103 |         guard let type = HKQuantityType.quantityType(forIdentifier: identifier) else {
104 |             throw HealthSnapError.noData
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift:113:39: error: 'HKStatistics' is only available in macOS 13.0 or newer
  4 | /// Fetches daily activity summaries (steps, energy, distance, exercise, stand).
  5 | @MainActor
  6 | public final class ActivityProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
111 |     }
112 |
113 |     private func sum(from statistics: HKStatistics?, type identifier: HKQuantityTypeIdentifier, unit: HKUnit) async throws -> Double {
    |                  |                    `- error: 'HKStatistics' is only available in macOS 13.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
114 |         guard let statistics, let _ = HKQuantityType.quantityType(forIdentifier: identifier) else {
115 |             return 0
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift:113:103: error: 'HKUnit' is only available in macOS 13.0 or newer
  4 | /// Fetches daily activity summaries (steps, energy, distance, exercise, stand).
  5 | @MainActor
  6 | public final class ActivityProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
111 |     }
112 |
113 |     private func sum(from statistics: HKStatistics?, type identifier: HKQuantityTypeIdentifier, unit: HKUnit) async throws -> Double {
    |                  |                                                                                    `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
114 |         guard let statistics, let _ = HKQuantityType.quantityType(forIdentifier: identifier) else {
115 |             return 0
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift:123:76: error: 'HKCategorySample' is only available in macOS 13.0 or newer
  4 | /// Fetches daily activity summaries (steps, energy, distance, exercise, stand).
  5 | @MainActor
  6 | public final class ActivityProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
121 |     }
122 |
123 |     private func standHourSamples(predicate: NSPredicate) async throws -> [HKCategorySample] {
    |                  |                                                         `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
124 |         guard let standType = HKObjectType.categoryType(forIdentifier: .appleStandHour) else {
125 |             return []
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift:136:44: error: 'HKCategorySample' is only available in macOS 13.0 or newer
  4 | /// Fetches daily activity summaries (steps, energy, distance, exercise, stand).
  5 | @MainActor
  6 | public final class ActivityProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
134 |     }
135 |
136 |     private func countStoodHours(samples: [HKCategorySample]) -> Int {
    |                  |                         `- error: 'HKCategorySample' is only available in macOS 13.0 or newer
    |                  `- note: add '@available' attribute to enclosing instance method
137 |         samples.filter { sample in
138 |             sample.value == HKCategoryValueAppleStandHour.stood.rawValue
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/BodyProvider.swift:84:15: error: 'HKUnit' is only available in macOS 13.0 or newer
  4 | /// Fetches the most recent body mass, BMI, and body fat percentage samples.
  5 | @MainActor
  6 | public final class BodyProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
 79 |     }
 80 |
 81 |     private func latestSample(
    |                  `- note: add '@available' attribute to enclosing instance method
 82 |         identifier: HKQuantityTypeIdentifier,
 83 |         asOf end: Date,
 84 |         unit: HKUnit
    |               `- error: 'HKUnit' is only available in macOS 13.0 or newer
 85 |     ) async throws -> (date: Date, value: Double)? {
 86 |         guard let type = HKQuantityType.quantityType(forIdentifier: identifier) else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/HeartProvider.swift:123:15: error: 'HKUnit' is only available in macOS 13.0 or newer
  4 | /// Fetches heart rate averages, resting HR, HRV (SDNN), and per-day samples.
  5 | @MainActor
  6 | public final class HeartProvider {
    |                    `- note: add '@available' attribute to enclosing class
  7 |     private let store: HealthStoreProtocol
  8 |
    :
119 |     }
120 |
121 |     private func latestQuantity(
    |                  `- note: add '@available' attribute to enclosing instance method
122 |         identifier: HKQuantityTypeIdentifier,
123 |         unit: HKUnit,
    |               `- error: 'HKUnit' is only available in macOS 13.0 or newer
124 |         from start: Date,
125 |         to endExclusive: Date
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Authorization/HealthKitPermissions.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapError.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/HealthSnapKit.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/CalendarDayRange.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKError+HealthSnap.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HKQueryAsync.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/HealthStoreProtocol.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/LiveHealthStore.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Internal/SleepAnalysisAggregator.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Models/ActivitySnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Models/BodySnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Models/HeartSnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Models/SleepSnapshot.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/ActivityProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/BodyProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/HeartProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/HealthSnapKit/Providers/SleepProvider.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HealthSnapKit -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthSnapKit.build/Debug/HealthSnapKit-t.build/Objects-normal/arm64/HealthSnapKit.abi.json
error: Build failed
BUILD FAILURE 6.4 macosSpm