The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build HealthDataSync, reference master (7e2ca2), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 11:19:52 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
[19/20] Compiling HealthDataSync HDSStoreProxyProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:13:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   |                        `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
14 |
15 |     public init(store: HKHealthStore)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:15:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
14 |
15 |     public init(store: HKHealthStore)
   |            |           `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |     {
17 |         self.store = store;
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:47: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:64: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:64: error: 'HKSampleType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:102: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:35:34: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
33 |     }
34 |
35 |     public func execute(_ query: HKQuery)
   |                 |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
36 |     {
37 |         self.store.execute(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:40:31: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
38 |     }
39 |
40 |     public func stop(_ query: HKQuery)
   |                 |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
41 |     {
42 |         self.store.stop(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:77: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:54:53: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
52 |     }
53 |
54 |     public func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
55 |     {
56 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:55: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:96: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:113: error: 'HKUnit' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:22:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
18 |     }
19 |
20 |     public func isHealthDataAvailable() -> Bool
   |                 `- note: add @available attribute to enclosing instance method
21 |     {
22 |         return HKHealthStore.isHealthDataAvailable()
   |                |- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |                `- note: add 'if #available' version check
23 |     }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:32:95: warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                                                                                                                      `- note: parameter 'completion' is implicitly non-sendable
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
   |                                                                                               `- warning: passing non-sendable parameter 'completion' to function expecting a @Sendable closure
33 |     }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:50:27: error: cannot find 'HealthKitError' in scope
48 |         self.store.enableBackgroundDelivery(for: type, frequency: frequency, withCompletion: completion)
49 | #else
50 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
51 | #endif
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:59:27: error: cannot find 'HealthKitError' in scope
57 |         self.store.disableBackgroundDelivery(for: type, withCompletion: completion)
58 | #else
59 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
60 | #endif
61 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:68:27: error: cannot find 'HealthKitError' in scope
66 |         self.store.disableAllBackgroundDelivery(completion: completion)
67 | #else
68 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
69 | #endif
70 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:74:20: error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
   |                    |- error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
   |                    `- note: add 'if #available' version check
75 |     }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:40: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:57: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:57: error: 'HKSampleType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:95: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:58:27: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 56 |      authorization to access objects of that type before executing the query.
 57 |      */
 58 |     func execute(_ query: HKQuery)
    |          |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 59 |
 60 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:66:24: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 64 |      query is already stopped, this method does nothing.
 65 |      */
 66 |     func stop(_ query: HKQuery)
    |          |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 67 |
 68 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:45: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
[20/20] Emitting module HealthDataSync
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:17:34: error: cannot find type 'HDSQueryObserver' in scope
15 |     /// - Parameter observer: The HDSQueryObserver that was notified of changes.
16 |     /// - Returns: The number of changes that should be included in the query result. (If nil, the default value of 25 will be used.
17 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
18 |
19 |     /// Will be called when the HDSQueryObserver is notified of changes relating to the query, before the execution of the anchored query.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:24:38: error: cannot find type 'HDSQueryObserver' in scope
22 |     ///   - observer: The HDSQueryObserver that was notified of changes.
23 |     ///   - completion: Must be called to start the execution of the anchored query and subsequent synchronization with the external store. Return true to start the execution and false to cancel.
24 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
25 |
26 |     /// Will be called after execution of the anchor query AND synchronization with the external store has completed.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:31:43: error: cannot find type 'HDSQueryObserver' in scope
29 |     ///   - observer: The HDSQueryObserver that finished execution.
30 |     ///   - error: An Error providing data on an execution or synchronization failure (error will be nil if the process completed successfully).
31 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:10:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 8 | import Foundation
 9 |
10 | public protocol HDSQueryObserverDelegate: class
   |                                           `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:36:34: error: cannot find type 'HDSQueryObserver' in scope
34 | public extension HDSQueryObserverDelegate
35 | {
36 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
37 |     {
38 |         return Constants.defaultBatchSize
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:41:38: error: cannot find type 'HDSQueryObserver' in scope
39 |     }
40 |
41 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
42 |     {
43 |         completion(true)
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:46:43: error: cannot find type 'HDSQueryObserver' in scope
44 |     }
45 |
46 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
47 |     {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:21:85: error: cannot find type 'HDSQueryObserver' in scope
19 |     }
20 |
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
   |                                                                                     `- error: cannot find type 'HDSQueryObserver' in scope
22 |     {
23 |         var observers = [HDSQueryObserver]()
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:13:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   |                        `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
14 |
15 |     public init(store: HKHealthStore)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:15:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
14 |
15 |     public init(store: HKHealthStore)
   |            |           `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |     {
17 |         self.store = store;
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:47: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:64: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:64: error: 'HKSampleType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:102: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:35:34: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
33 |     }
34 |
35 |     public func execute(_ query: HKQuery)
   |                 |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
36 |     {
37 |         self.store.execute(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:40:31: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
38 |     }
39 |
40 |     public func stop(_ query: HKQuery)
   |                 |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
41 |     {
42 |         self.store.stop(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:77: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:54:53: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
52 |     }
53 |
54 |     public func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
55 |     {
56 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:55: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:96: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:113: error: 'HKUnit' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:40: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:57: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:57: error: 'HKSampleType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:95: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:58:27: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 56 |      authorization to access objects of that type before executing the query.
 57 |      */
 58 |     func execute(_ query: HKQuery)
    |          |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 59 |
 60 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:66:24: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 64 |      query is already stopped, this method does nothing.
 65 |      */
 66 |     func stop(_ query: HKQuery)
    |          |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 67 |
 68 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:45: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:21:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
19 |     /// In some cases (e.g. blood pressure) a user must authorize each component of blood pressure separately (systolic, diastolic, and heart rate),
20 |     /// but the query will be a single correlation type
21 |     static func authorizationTypes() -> [HKObjectType]?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
22 |
23 |     /// The HealthKit object type used to query HealthKit.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:24:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
22 |
23 |     /// The HealthKit object type used to query HealthKit.
24 |     static func healthKitObjectType() -> HKObjectType?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
25 |
26 |     /// Creates a new External Object populated with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:40: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:47: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                             `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:45:30: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
43 |     ///
44 |     /// - Parameter object: An HKObject containing data to be copied to the External Object.
45 |     func update(with object: HKObject)
   |          |                   `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:32: error: 'HKQuantityType' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:49: error: 'HKUnit' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:15:27: error: cannot find type 'HDSConverterProtocol' in scope
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
 15 |     public var converter: HDSConverterProtocol?
    |                           `- error: cannot find type 'HDSConverterProtocol' in scope
 16 |     private let store: HDSStoreProxyProtocol
 17 |     private let externalObjectStore: HDSExternalStoreProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:37: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:66: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:57:42: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 55 |     }
 56 |
 57 |     private func delete(deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |                  |                       `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 58 |     {
 59 |         guard let deleted = deletedObjects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:84:43: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 82 |     }
 83 |
 84 |     private func createOrUpdate(objects: [HKObject]?, completion: @escaping (Error?) -> Void)
    |                  |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 85 |     {
 86 |         guard let createOrUpdateObjects = objects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:122:41: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
120 |     }
121 |
122 |     private func applyUpdates(objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?, completion: @escaping (Error?) -> Void)
    |                  |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
123 |     {
124 |         if let externalObjects = self.externalObjects(from: objects, existingObjects: existingObjects)
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:169:49: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
167 |     }
168 |
169 |     private func externalObjects(from objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?) -> (add: [HDSExternalObjectProtocol], update: [HDSExternalObjectProtocol])?
    |                  |                              `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
170 |     {
171 |         var add = [HDSExternalObjectProtocol]()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:40: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:69: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                                                     `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:15:20: error: cannot find type 'HDSConverterProtocol' in scope
13 |
14 |     /// A custom converter that handles the conversion of HealthKit types.
15 |     var converter: HDSConverterProtocol? { get set }
   |                    `- error: cannot find type 'HDSConverterProtocol' in scope
16 |
17 |     /// The external object type the used by the synchronizer to convert HealthKit objects to a format compatible with the external store.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:32: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:61: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
[21/21] Compiling HealthDataSync HDSObjectSynchronizerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:15:20: error: cannot find type 'HDSConverterProtocol' in scope
13 |
14 |     /// A custom converter that handles the conversion of HealthKit types.
15 |     var converter: HDSConverterProtocol? { get set }
   |                    `- error: cannot find type 'HDSConverterProtocol' in scope
16 |
17 |     /// The external object type the used by the synchronizer to convert HealthKit objects to a format compatible with the external store.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:32: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:61: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/19] Compiling HealthDataSync HDSExternalObjectProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:21:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
19 |     /// In some cases (e.g. blood pressure) a user must authorize each component of blood pressure separately (systolic, diastolic, and heart rate),
20 |     /// but the query will be a single correlation type
21 |     static func authorizationTypes() -> [HKObjectType]?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
22 |
23 |     /// The HealthKit object type used to query HealthKit.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:24:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
22 |
23 |     /// The HealthKit object type used to query HealthKit.
24 |     static func healthKitObjectType() -> HKObjectType?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
25 |
26 |     /// Creates a new External Object populated with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:40: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:47: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                             `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:45:30: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
43 |     ///
44 |     /// - Parameter object: An HKObject containing data to be copied to the External Object.
45 |     func update(with object: HKObject)
   |          |                   `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
46 | }
47 |
[3/19] Compiling HealthDataSync HDSExternalStoreProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:21:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
19 |     /// In some cases (e.g. blood pressure) a user must authorize each component of blood pressure separately (systolic, diastolic, and heart rate),
20 |     /// but the query will be a single correlation type
21 |     static func authorizationTypes() -> [HKObjectType]?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
22 |
23 |     /// The HealthKit object type used to query HealthKit.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:24:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
22 |
23 |     /// The HealthKit object type used to query HealthKit.
24 |     static func healthKitObjectType() -> HKObjectType?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
25 |
26 |     /// Creates a new External Object populated with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:40: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:47: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                             `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:45:30: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
43 |     ///
44 |     /// - Parameter object: An HKObject containing data to be copied to the External Object.
45 |     func update(with object: HKObject)
   |          |                   `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
46 | }
47 |
[4/19] Compiling HealthDataSync HDSObjectSynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:32: error: 'HKQuantityType' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:49: error: 'HKUnit' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:15:27: error: cannot find type 'HDSConverterProtocol' in scope
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
 15 |     public var converter: HDSConverterProtocol?
    |                           `- error: cannot find type 'HDSConverterProtocol' in scope
 16 |     private let store: HDSStoreProxyProtocol
 17 |     private let externalObjectStore: HDSExternalStoreProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:37: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:66: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:57:42: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 55 |     }
 56 |
 57 |     private func delete(deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |                  |                       `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 58 |     {
 59 |         guard let deleted = deletedObjects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:84:43: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 82 |     }
 83 |
 84 |     private func createOrUpdate(objects: [HKObject]?, completion: @escaping (Error?) -> Void)
    |                  |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 85 |     {
 86 |         guard let createOrUpdateObjects = objects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:122:41: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
120 |     }
121 |
122 |     private func applyUpdates(objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?, completion: @escaping (Error?) -> Void)
    |                  |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
123 |     {
124 |         if let externalObjects = self.externalObjects(from: objects, existingObjects: existingObjects)
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:169:49: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
167 |     }
168 |
169 |     private func externalObjects(from objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?) -> (add: [HDSExternalObjectProtocol], update: [HDSExternalObjectProtocol])?
    |                  |                              `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
170 |     {
171 |         var add = [HDSExternalObjectProtocol]()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:40: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:69: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                                                     `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:15:20: error: cannot find type 'HDSConverterProtocol' in scope
13 |
14 |     /// A custom converter that handles the conversion of HealthKit types.
15 |     var converter: HDSConverterProtocol? { get set }
   |                    `- error: cannot find type 'HDSConverterProtocol' in scope
16 |
17 |     /// The external object type the used by the synchronizer to convert HealthKit objects to a format compatible with the external store.
[5/20] Compiling HealthDataSync HDSUserDefaultsProxy.swift
[6/20] Compiling HealthDataSync HDSUserDefaultsProxyProtocol.swift
[7/20] Compiling HealthDataSync HDSPermissionsManager.swift
[8/20] Compiling HealthDataSync HDSQueryObserver.swift
[9/20] Compiling HealthDataSync HDSStoreProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:13:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   |                        `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
14 |
15 |     public init(store: HKHealthStore)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:15:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
14 |
15 |     public init(store: HKHealthStore)
   |            |           `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |     {
17 |         self.store = store;
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:47: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:64: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:64: error: 'HKSampleType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:102: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:35:34: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
33 |     }
34 |
35 |     public func execute(_ query: HKQuery)
   |                 |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
36 |     {
37 |         self.store.execute(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:40:31: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
38 |     }
39 |
40 |     public func stop(_ query: HKQuery)
   |                 |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
41 |     {
42 |         self.store.stop(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:77: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:54:53: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
52 |     }
53 |
54 |     public func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
55 |     {
56 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:55: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:96: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:113: error: 'HKUnit' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:22:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
18 |     }
19 |
20 |     public func isHealthDataAvailable() -> Bool
   |                 `- note: add @available attribute to enclosing instance method
21 |     {
22 |         return HKHealthStore.isHealthDataAvailable()
   |                |- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |                `- note: add 'if #available' version check
23 |     }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:50:27: error: cannot find 'HealthKitError' in scope
48 |         self.store.enableBackgroundDelivery(for: type, frequency: frequency, withCompletion: completion)
49 | #else
50 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
51 | #endif
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:59:27: error: cannot find 'HealthKitError' in scope
57 |         self.store.disableBackgroundDelivery(for: type, withCompletion: completion)
58 | #else
59 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
60 | #endif
61 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:68:27: error: cannot find 'HealthKitError' in scope
66 |         self.store.disableAllBackgroundDelivery(completion: completion)
67 | #else
68 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
69 | #endif
70 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:74:20: error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
   |                    |- error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
   |                    `- note: add 'if #available' version check
75 |     }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:40: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:57: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:57: error: 'HKSampleType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:95: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:58:27: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 56 |      authorization to access objects of that type before executing the query.
 57 |      */
 58 |     func execute(_ query: HKQuery)
    |          |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 59 |
 60 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:66:24: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 64 |      query is already stopped, this method does nothing.
 65 |      */
 66 |     func stop(_ query: HKQuery)
    |          |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 67 |
 68 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:45: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
[10/20] Compiling HealthDataSync HDSStoreProxyProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:13:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   |                        `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
14 |
15 |     public init(store: HKHealthStore)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:15:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
14 |
15 |     public init(store: HKHealthStore)
   |            |           `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |     {
17 |         self.store = store;
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:47: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:64: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:64: error: 'HKSampleType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:102: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:35:34: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
33 |     }
34 |
35 |     public func execute(_ query: HKQuery)
   |                 |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
36 |     {
37 |         self.store.execute(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:40:31: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
38 |     }
39 |
40 |     public func stop(_ query: HKQuery)
   |                 |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
41 |     {
42 |         self.store.stop(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:77: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:54:53: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
52 |     }
53 |
54 |     public func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
55 |     {
56 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:55: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:96: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:113: error: 'HKUnit' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:22:16: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
18 |     }
19 |
20 |     public func isHealthDataAvailable() -> Bool
   |                 `- note: add @available attribute to enclosing instance method
21 |     {
22 |         return HKHealthStore.isHealthDataAvailable()
   |                |- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |                `- note: add 'if #available' version check
23 |     }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:50:27: error: cannot find 'HealthKitError' in scope
48 |         self.store.enableBackgroundDelivery(for: type, frequency: frequency, withCompletion: completion)
49 | #else
50 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
51 | #endif
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:59:27: error: cannot find 'HealthKitError' in scope
57 |         self.store.disableBackgroundDelivery(for: type, withCompletion: completion)
58 | #else
59 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
60 | #endif
61 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:68:27: error: cannot find 'HealthKitError' in scope
66 |         self.store.disableAllBackgroundDelivery(completion: completion)
67 | #else
68 |         completion(false, HealthKitError.notSupported)
   |                           `- error: cannot find 'HealthKitError' in scope
69 | #endif
70 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:74:20: error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
   |                    |- error: 'preferredUnits(for:completion:)' is only available in macOS 13.0 or newer
   |                    `- note: add 'if #available' version check
75 |     }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:40: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:57: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:57: error: 'HKSampleType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:95: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:58:27: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 56 |      authorization to access objects of that type before executing the query.
 57 |      */
 58 |     func execute(_ query: HKQuery)
    |          |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 59 |
 60 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:66:24: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 64 |      query is already stopped, this method does nothing.
 65 |      */
 66 |     func stop(_ query: HKQuery)
    |          |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 67 |
 68 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:45: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
[11/20] Compiling HealthDataSync HDSQueryObserverDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:17:34: error: cannot find type 'HDSQueryObserver' in scope
15 |     /// - Parameter observer: The HDSQueryObserver that was notified of changes.
16 |     /// - Returns: The number of changes that should be included in the query result. (If nil, the default value of 25 will be used.
17 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
18 |
19 |     /// Will be called when the HDSQueryObserver is notified of changes relating to the query, before the execution of the anchored query.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:24:38: error: cannot find type 'HDSQueryObserver' in scope
22 |     ///   - observer: The HDSQueryObserver that was notified of changes.
23 |     ///   - completion: Must be called to start the execution of the anchored query and subsequent synchronization with the external store. Return true to start the execution and false to cancel.
24 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
25 |
26 |     /// Will be called after execution of the anchor query AND synchronization with the external store has completed.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:31:43: error: cannot find type 'HDSQueryObserver' in scope
29 |     ///   - observer: The HDSQueryObserver that finished execution.
30 |     ///   - error: An Error providing data on an execution or synchronization failure (error will be nil if the process completed successfully).
31 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:10:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 8 | import Foundation
 9 |
10 | public protocol HDSQueryObserverDelegate: class
   |                                           `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:36:34: error: cannot find type 'HDSQueryObserver' in scope
34 | public extension HDSQueryObserverDelegate
35 | {
36 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
37 |     {
38 |         return Constants.defaultBatchSize
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:41:38: error: cannot find type 'HDSQueryObserver' in scope
39 |     }
40 |
41 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
42 |     {
43 |         completion(true)
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:46:43: error: cannot find type 'HDSQueryObserver' in scope
44 |     }
45 |
46 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
47 |     {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:21:85: error: cannot find type 'HDSQueryObserver' in scope
19 |     }
20 |
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
   |                                                                                     `- error: cannot find type 'HDSQueryObserver' in scope
22 |     {
23 |         var observers = [HDSQueryObserver]()
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:23:26: error: cannot find 'HDSQueryObserver' in scope
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
22 |     {
23 |         var observers = [HDSQueryObserver]()
   |                          `- error: cannot find 'HDSQueryObserver' in scope
24 |
25 |         synchronizers.forEach
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:23:25: error: cannot call value of non-function type '[Any]'
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
22 |     {
23 |         var observers = [HDSQueryObserver]()
   |                         `- error: cannot call value of non-function type '[Any]'
24 |
25 |         synchronizers.forEach
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:28:32: error: cannot find 'HDSQueryObserver' in scope
26 |             { (synchronizer) in
27 |
28 |                 let observer = HDSQueryObserver(store: self.store,
   |                                `- error: cannot find 'HDSQueryObserver' in scope
29 |                                                 userDefaultsProxy: self.userDefaults,
30 |                                                 synchronizer:synchronizer)
[12/20] Compiling HealthDataSync HDSQueryObserverFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:17:34: error: cannot find type 'HDSQueryObserver' in scope
15 |     /// - Parameter observer: The HDSQueryObserver that was notified of changes.
16 |     /// - Returns: The number of changes that should be included in the query result. (If nil, the default value of 25 will be used.
17 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
18 |
19 |     /// Will be called when the HDSQueryObserver is notified of changes relating to the query, before the execution of the anchored query.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:24:38: error: cannot find type 'HDSQueryObserver' in scope
22 |     ///   - observer: The HDSQueryObserver that was notified of changes.
23 |     ///   - completion: Must be called to start the execution of the anchored query and subsequent synchronization with the external store. Return true to start the execution and false to cancel.
24 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
25 |
26 |     /// Will be called after execution of the anchor query AND synchronization with the external store has completed.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:31:43: error: cannot find type 'HDSQueryObserver' in scope
29 |     ///   - observer: The HDSQueryObserver that finished execution.
30 |     ///   - error: An Error providing data on an execution or synchronization failure (error will be nil if the process completed successfully).
31 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:10:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 8 | import Foundation
 9 |
10 | public protocol HDSQueryObserverDelegate: class
   |                                           `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:36:34: error: cannot find type 'HDSQueryObserver' in scope
34 | public extension HDSQueryObserverDelegate
35 | {
36 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
37 |     {
38 |         return Constants.defaultBatchSize
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:41:38: error: cannot find type 'HDSQueryObserver' in scope
39 |     }
40 |
41 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
42 |     {
43 |         completion(true)
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:46:43: error: cannot find type 'HDSQueryObserver' in scope
44 |     }
45 |
46 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
47 |     {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:21:85: error: cannot find type 'HDSQueryObserver' in scope
19 |     }
20 |
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
   |                                                                                     `- error: cannot find type 'HDSQueryObserver' in scope
22 |     {
23 |         var observers = [HDSQueryObserver]()
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:23:26: error: cannot find 'HDSQueryObserver' in scope
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
22 |     {
23 |         var observers = [HDSQueryObserver]()
   |                          `- error: cannot find 'HDSQueryObserver' in scope
24 |
25 |         synchronizers.forEach
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:23:25: error: cannot call value of non-function type '[Any]'
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
22 |     {
23 |         var observers = [HDSQueryObserver]()
   |                         `- error: cannot call value of non-function type '[Any]'
24 |
25 |         synchronizers.forEach
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:28:32: error: cannot find 'HDSQueryObserver' in scope
26 |             { (synchronizer) in
27 |
28 |                 let observer = HDSQueryObserver(store: self.store,
   |                                `- error: cannot find 'HDSQueryObserver' in scope
29 |                                                 userDefaultsProxy: self.userDefaults,
30 |                                                 synchronizer:synchronizer)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/20] Compiling HealthDataSync HDSManagerFactory.swift
[14/20] Compiling HealthDataSync HDSManagerProtocol.swift
[15/20] Compiling HealthDataSync Constants.swift
[16/20] Compiling HealthDataSync HDSConverterProtocol.swift
[17/20] Compiling HealthDataSync HDSError.swift
[18/20] Compiling HealthDataSync HDSManager.swift
[19/20] Emitting module HealthDataSync
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:17:34: error: cannot find type 'HDSQueryObserver' in scope
15 |     /// - Parameter observer: The HDSQueryObserver that was notified of changes.
16 |     /// - Returns: The number of changes that should be included in the query result. (If nil, the default value of 25 will be used.
17 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
18 |
19 |     /// Will be called when the HDSQueryObserver is notified of changes relating to the query, before the execution of the anchored query.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:24:38: error: cannot find type 'HDSQueryObserver' in scope
22 |     ///   - observer: The HDSQueryObserver that was notified of changes.
23 |     ///   - completion: Must be called to start the execution of the anchored query and subsequent synchronization with the external store. Return true to start the execution and false to cancel.
24 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
25 |
26 |     /// Will be called after execution of the anchor query AND synchronization with the external store has completed.
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:31:43: error: cannot find type 'HDSQueryObserver' in scope
29 |     ///   - observer: The HDSQueryObserver that finished execution.
30 |     ///   - error: An Error providing data on an execution or synchronization failure (error will be nil if the process completed successfully).
31 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:10:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 8 | import Foundation
 9 |
10 | public protocol HDSQueryObserverDelegate: class
   |                                           `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:36:34: error: cannot find type 'HDSQueryObserver' in scope
34 | public extension HDSQueryObserverDelegate
35 | {
36 |     func batchSize(for observer: HDSQueryObserver) -> Int?
   |                                  `- error: cannot find type 'HDSQueryObserver' in scope
37 |     {
38 |         return Constants.defaultBatchSize
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:41:38: error: cannot find type 'HDSQueryObserver' in scope
39 |     }
40 |
41 |     func shouldExecute(for observer: HDSQueryObserver, completion: @escaping (Bool) -> Void)
   |                                      `- error: cannot find type 'HDSQueryObserver' in scope
42 |     {
43 |         completion(true)
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverDelegate.swift:46:43: error: cannot find type 'HDSQueryObserver' in scope
44 |     }
45 |
46 |     func didFinishExecution(for observer: HDSQueryObserver, error: Error?)
   |                                           `- error: cannot find type 'HDSQueryObserver' in scope
47 |     {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/HDSQueryObserverFactory.swift:21:85: error: cannot find type 'HDSQueryObserver' in scope
19 |     }
20 |
21 |     internal func observers(with synchronizers:[HDSObjectSynchronizerProtocol]) -> [HDSQueryObserver]
   |                                                                                     `- error: cannot find type 'HDSQueryObserver' in scope
22 |     {
23 |         var observers = [HDSQueryObserver]()
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:13:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   |                        `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
14 |
15 |     public init(store: HKHealthStore)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:15:24: error: 'HKHealthStore' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
14 |
15 |     public init(store: HKHealthStore)
   |            |           `- error: 'HKHealthStore' is only available in macOS 13.0 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |     {
17 |         self.store = store;
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:47: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:25:64: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
23 |     }
24 |
25 |     public func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
   |                 |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
26 |     {
27 |         return self.store.authorizationStatus(for: type)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:64: error: 'HKSampleType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:30:102: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
28 |     }
29 |
30 |     public func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
31 |     {
32 |         self.store.requestAuthorization(toShare: typesToShare, read: typesToRead, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:35:34: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
33 |     }
34 |
35 |     public func execute(_ query: HKQuery)
   |                 |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
36 |     {
37 |         self.store.execute(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:40:31: error: 'HKQuery' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
38 |     }
39 |
40 |     public func stop(_ query: HKQuery)
   |                 |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
41 |     {
42 |         self.store.stop(query)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:52: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:45:77: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
43 |     }
44 |
45 |     public func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
46 |     {
47 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:54:53: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
52 |     }
53 |
54 |     public func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
   |                 |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
55 |     {
56 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:55: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:96: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxy.swift:72:113: error: 'HKUnit' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public class HDSStoreProxy : HDSStoreProxyProtocol
   |              `- note: add @available attribute to enclosing class
12 | {
13 |     private var store: HKHealthStore
   :
70 |     }
71 |
72 |     public func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Void)
   |                 |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing instance method
73 |     {
74 |         self.store.preferredUnits(for: quantityTypes, completion: completion)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:40: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                             `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:27:57: error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 25 |      @abstract      Returns the application's authorization status for the given object type.
 26 |      */
 27 |     func authorizationStatus(for type: HKObjectType) -> HKAuthorizationStatus
    |          |                                              `- error: 'HKAuthorizationStatus' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 28 |
 29 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:57: error: 'HKSampleType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                              `- error: 'HKSampleType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:42:95: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 40 |      granted authorization.
 41 |      */
 42 |     func requestAuthorization(toShare typesToShare: Set<HKSampleType>?, read typesToRead: Set<HKObjectType>?, completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                                                    `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 43 |
 44 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:58:27: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 56 |      authorization to access objects of that type before executing the query.
 57 |      */
 58 |     func execute(_ query: HKQuery)
    |          |                `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 59 |
 60 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:66:24: error: 'HKQuery' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 64 |      query is already stopped, this method does nothing.
 65 |      */
 66 |     func stop(_ query: HKQuery)
    |          |             `- error: 'HKQuery' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 67 |
 68 |     /*!
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:45: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                  `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:77:70: error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 75 |      transparently to the caller.
 76 |      */
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                                           `- error: 'HKUpdateFrequency' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:79:46: error: 'HKObjectType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 77 |     func enableBackgroundDelivery(for type: HKObjectType, frequency: HKUpdateFrequency, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
 78 |
 79 |     func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping (Bool, Error?) -> Swift.Void)
    |          |                                   `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 80 |
 81 |     func disableAllBackgroundDelivery(completion: @escaping (Bool, Error?) -> Swift.Void)
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:48: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                     `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:89: error: 'HKQuantityType' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                              `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Proxies/HDSStoreProxyProtocol.swift:98:106: error: 'HKUnit' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 8.0, watchOS 2.0, *)
 12 | public protocol HDSStoreProxyProtocol
    |                 `- note: add @available attribute to enclosing protocol
 13 | {
 14 |     /*!
    :
 96 |      */
 97 |     @available(iOS 8.2, watchOS 2.0, *)
 98 |     func preferredUnits(for quantityTypes: Set<HKQuantityType>, completion: @escaping ([HKQuantityType : HKUnit], Error?) -> Swift.Void)
    |          |                                                                                               `- error: 'HKUnit' is only available in macOS 13.0 or newer
    |          `- note: add @available attribute to enclosing instance method
 99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:21:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
19 |     /// In some cases (e.g. blood pressure) a user must authorize each component of blood pressure separately (systolic, diastolic, and heart rate),
20 |     /// but the query will be a single correlation type
21 |     static func authorizationTypes() -> [HKObjectType]?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
22 |
23 |     /// The HealthKit object type used to query HealthKit.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:24:42: error: 'HKObjectType' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
22 |
23 |     /// The HealthKit object type used to query HealthKit.
24 |     static func healthKitObjectType() -> HKObjectType?
   |                 |                        `- error: 'HKObjectType' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
25 |
26 |     /// Creates a new External Object populated with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:40: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:47: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                 |                             `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |                 `- note: add @available attribute to enclosing static method
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:45:30: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSExternalObjectProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
43 |     ///
44 |     /// - Parameter object: An HKObject containing data to be copied to the External Object.
45 |     func update(with object: HKObject)
   |          |                   `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:32: error: 'HKQuantityType' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:14:49: error: 'HKUnit' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
    |                                                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
 15 |     public var converter: HDSConverterProtocol?
 16 |     private let store: HDSStoreProxyProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:15:27: error: cannot find type 'HDSConverterProtocol' in scope
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
 14 |     open var unitsDictionary: [HKQuantityType : HKUnit]?
 15 |     public var converter: HDSConverterProtocol?
    |                           `- error: cannot find type 'HDSConverterProtocol' in scope
 16 |     private let store: HDSStoreProxyProtocol
 17 |     private let externalObjectStore: HDSExternalStoreProtocol
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:37: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:28:66: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 26 |     }
 27 |
 28 |     open func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |               |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
 29 |     {
 30 |         // Give subclasses an opportunity to execute code before syncing
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:57:42: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 55 |     }
 56 |
 57 |     private func delete(deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
    |                  |                       `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 58 |     {
 59 |         guard let deleted = deletedObjects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:84:43: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
 82 |     }
 83 |
 84 |     private func createOrUpdate(objects: [HKObject]?, completion: @escaping (Error?) -> Void)
    |                  |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
 85 |     {
 86 |         guard let createOrUpdateObjects = objects,
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:122:41: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
120 |     }
121 |
122 |     private func applyUpdates(objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?, completion: @escaping (Error?) -> Void)
    |                  |                      `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
123 |     {
124 |         if let externalObjects = self.externalObjects(from: objects, existingObjects: existingObjects)
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:169:49: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
167 |     }
168 |
169 |     private func externalObjects(from objects: [HKObject], existingObjects: [HDSExternalObjectProtocol]?) -> (add: [HDSExternalObjectProtocol], update: [HDSExternalObjectProtocol])?
    |                  |                              `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
170 |     {
171 |         var add = [HDSExternalObjectProtocol]()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:40: error: 'HKObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizer.swift:208:69: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
  9 | import HealthKit
 10 |
 11 | open class HDSObjectSynchronizer: HDSObjectSynchronizerProtocol
    |            `- note: add @available attribute to enclosing class
 12 | {
 13 |     open private(set) var externalObjectType: HDSExternalObjectProtocol.Type
    :
206 |
207 |     // Subclasses can override to execute code to BEFORE requests to the external store are made.
208 |     open func willSyncronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion:@escaping () -> Void)
    |               |                                                     `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
    |               `- note: add @available attribute to enclosing instance method
209 |     {
210 |         completion()
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:15:20: error: cannot find type 'HDSConverterProtocol' in scope
13 |
14 |     /// A custom converter that handles the conversion of HealthKit types.
15 |     var converter: HDSConverterProtocol? { get set }
   |                    `- error: cannot find type 'HDSConverterProtocol' in scope
16 |
17 |     /// The external object type the used by the synchronizer to convert HealthKit objects to a format compatible with the external store.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:32: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:61: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
[20/20] Compiling HealthDataSync HDSObjectSynchronizerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:15:20: error: cannot find type 'HDSConverterProtocol' in scope
13 |
14 |     /// A custom converter that handles the conversion of HealthKit types.
15 |     var converter: HDSConverterProtocol? { get set }
   |                    `- error: cannot find type 'HDSConverterProtocol' in scope
16 |
17 |     /// The external object type the used by the synchronizer to convert HealthKit objects to a format compatible with the external store.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:32:61: error: cannot find type 'HDSConverterProtocol' in scope
30 |     ///   - converter: An instance of a custom converter class.
31 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKObject or nil if the HKObject cannot be processed.
32 |     static func externalObject(object: HKObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                             `- error: cannot find type 'HDSConverterProtocol' in scope
33 |
34 |     /// Creates a new External Object populated with data from the HKDeletedObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSExternalObjectProtocol.swift:40:75: error: cannot find type 'HDSConverterProtocol' in scope
38 |     ///   - converter: An instance of a custom converter class.
39 |     /// - Returns: A new object conforming to the HDSExternalObjectProtocol populated with the data from the HKDeletedObject or nil if the HKDeletedObject cannot be processed.
40 |     static func externalObject(deletedObject: HKDeletedObject, converter: HDSConverterProtocol?) -> HDSExternalObjectProtocol?
   |                                                                           `- error: cannot find type 'HDSConverterProtocol' in scope
41 |
42 |     /// Updates the External Object with data from the HKObject.
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:32: error: 'HKObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                     `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Synchronizers/HDSObjectSynchronizerProtocol.swift:26:61: error: 'HKDeletedObject' is only available in macOS 13.0 or newer
 9 | import HealthKit
10 |
11 | public protocol HDSObjectSynchronizerProtocol
   |                 `- note: add @available attribute to enclosing protocol
12 | {
13 |
   :
24 |     ///   - deletedObjects: HealthKit objects to be deleted.
25 |     ///   - completion: Envoked when the synchronization process completed.
26 |     func synchronize(objects: [HKObject]?, deletedObjects: [HKDeletedObject]?, completion: @escaping (Error?) -> Void)
   |          |                                                  `- error: 'HKDeletedObject' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
27 | }
28 |
BUILD FAILURE 6.1 macosSpm