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 HealthKitOnFHIR, reference main (87a925), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 23:39:42 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
103 |             HKCategoryType(.handwashingEvent),
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:105:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
103 |             HKCategoryType(.handwashingEvent),
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:105:29: error: 'intermenstrualBleeding' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
103 |             HKCategoryType(.handwashingEvent),
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
    |                             |- error: 'intermenstrualBleeding' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:106:13: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:106:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:106:29: error: 'infrequentMenstrualCycles' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
104 |             HKCategoryType(.sexualActivity),
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
    |                             |- error: 'infrequentMenstrualCycles' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:107:13: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:107:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:107:29: error: 'irregularMenstrualCycles' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
105 |             HKCategoryType(.intermenstrualBleeding),
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
    |                             |- error: 'irregularMenstrualCycles' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:108:13: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:108:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:108:29: error: 'persistentIntermenstrualBleeding' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
106 |             HKCategoryType(.infrequentMenstrualCycles),
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
    |                             |- error: 'persistentIntermenstrualBleeding' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:109:13: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
110 |             HKCategoryType(.lactation):
111 |             // Samples of these types do not carry any value,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:109:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
110 |             HKCategoryType(.lactation):
111 |             // Samples of these types do not carry any value,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:109:29: error: 'prolongedMenstrualPeriods' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
107 |             HKCategoryType(.irregularMenstrualCycles),
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
    |                             |- error: 'prolongedMenstrualPeriods' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
110 |             HKCategoryType(.lactation):
111 |             // Samples of these types do not carry any value,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:110:13: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
    |             |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
111 |             // Samples of these types do not carry any value,
112 |             // nor associated metadata, so we use the category
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:110:13: error: 'init(_:)' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
    |             |- error: 'init(_:)' is only available in macOS 13.0 or newer
    |             `- note: add 'if #available' version check
111 |             // Samples of these types do not carry any value,
112 |             // nor associated metadata, so we use the category
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:110:29: error: 'lactation' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
108 |             HKCategoryType(.persistentIntermenstrualBleeding),
109 |             HKCategoryType(.prolongedMenstrualPeriods),
110 |             HKCategoryType(.lactation):
    |                             |- error: 'lactation' is only available in macOS 13.0 or newer
    |                             `- note: add 'if #available' version check
111 |             // Samples of these types do not carry any value,
112 |             // nor associated metadata, so we use the category
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:27:31: error: 'HKCategoryValueAppetiteChanges' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 25 |         switch self.categoryType {
 26 |         case HKCategoryType(.appetiteChanges):
 27 |             valueString = try HKCategoryValueAppetiteChanges(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueAppetiteChanges' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 28 |         case HKCategoryType(.appleStandHour):
 29 |             valueString = try HKCategoryValueAppleStandHour(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:29:31: error: 'HKCategoryValueAppleStandHour' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 27 |             valueString = try HKCategoryValueAppetiteChanges(rawValue: self.value)?.categoryValueDescription
 28 |         case HKCategoryType(.appleStandHour):
 29 |             valueString = try HKCategoryValueAppleStandHour(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueAppleStandHour' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 30 |         case HKCategoryType(.appleWalkingSteadinessEvent):
 31 |             valueString = try HKCategoryValueAppleWalkingSteadinessEvent(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:31:31: error: 'HKCategoryValueAppleWalkingSteadinessEvent' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 29 |             valueString = try HKCategoryValueAppleStandHour(rawValue: self.value)?.categoryValueDescription
 30 |         case HKCategoryType(.appleWalkingSteadinessEvent):
 31 |             valueString = try HKCategoryValueAppleWalkingSteadinessEvent(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueAppleWalkingSteadinessEvent' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 32 |         case HKCategoryType(.cervicalMucusQuality):
 33 |             valueString = try HKCategoryValueCervicalMucusQuality(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:33:31: error: 'HKCategoryValueCervicalMucusQuality' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 31 |             valueString = try HKCategoryValueAppleWalkingSteadinessEvent(rawValue: self.value)?.categoryValueDescription
 32 |         case HKCategoryType(.cervicalMucusQuality):
 33 |             valueString = try HKCategoryValueCervicalMucusQuality(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueCervicalMucusQuality' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 34 |         case HKCategoryType(.contraceptive):
 35 |             valueString = try HKCategoryValueContraceptive(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:35:31: error: 'HKCategoryValueContraceptive' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 33 |             valueString = try HKCategoryValueCervicalMucusQuality(rawValue: self.value)?.categoryValueDescription
 34 |         case HKCategoryType(.contraceptive):
 35 |             valueString = try HKCategoryValueContraceptive(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueContraceptive' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 36 |         case HKCategoryType(.environmentalAudioExposureEvent):
 37 |             valueString = try HKCategoryValueEnvironmentalAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:37:31: error: 'HKCategoryValueEnvironmentalAudioExposureEvent' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 35 |             valueString = try HKCategoryValueContraceptive(rawValue: self.value)?.categoryValueDescription
 36 |         case HKCategoryType(.environmentalAudioExposureEvent):
 37 |             valueString = try HKCategoryValueEnvironmentalAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueEnvironmentalAudioExposureEvent' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 38 |         case HKCategoryType(.headphoneAudioExposureEvent):
 39 |             valueString = try HKCategoryValueHeadphoneAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:39:31: error: 'HKCategoryValueHeadphoneAudioExposureEvent' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 37 |             valueString = try HKCategoryValueEnvironmentalAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
 38 |         case HKCategoryType(.headphoneAudioExposureEvent):
 39 |             valueString = try HKCategoryValueHeadphoneAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueHeadphoneAudioExposureEvent' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 40 |         case HKCategoryType(.lowCardioFitnessEvent):
 41 |             valueString = try HKCategoryValueLowCardioFitnessEvent(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:41:31: error: 'HKCategoryValueLowCardioFitnessEvent' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 39 |             valueString = try HKCategoryValueHeadphoneAudioExposureEvent(rawValue: self.value)?.categoryValueDescription
 40 |         case HKCategoryType(.lowCardioFitnessEvent):
 41 |             valueString = try HKCategoryValueLowCardioFitnessEvent(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueLowCardioFitnessEvent' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 42 |         case HKCategoryType(.menstrualFlow):
 43 |             valueString = try HKCategoryValueMenstrualFlow(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:43:31: error: 'HKCategoryValueMenstrualFlow' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 41 |             valueString = try HKCategoryValueLowCardioFitnessEvent(rawValue: self.value)?.categoryValueDescription
 42 |         case HKCategoryType(.menstrualFlow):
 43 |             valueString = try HKCategoryValueMenstrualFlow(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueMenstrualFlow' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 44 |         case HKCategoryType(.ovulationTestResult):
 45 |             valueString = try HKCategoryValueOvulationTestResult(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:45:31: error: 'HKCategoryValueOvulationTestResult' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 43 |             valueString = try HKCategoryValueMenstrualFlow(rawValue: self.value)?.categoryValueDescription
 44 |         case HKCategoryType(.ovulationTestResult):
 45 |             valueString = try HKCategoryValueOvulationTestResult(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueOvulationTestResult' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 46 |         case HKCategoryType(.pregnancyTestResult):
 47 |             valueString = try HKCategoryValuePregnancyTestResult(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:47:31: error: 'HKCategoryValuePregnancyTestResult' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 45 |             valueString = try HKCategoryValueOvulationTestResult(rawValue: self.value)?.categoryValueDescription
 46 |         case HKCategoryType(.pregnancyTestResult):
 47 |             valueString = try HKCategoryValuePregnancyTestResult(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValuePregnancyTestResult' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 48 |         case HKCategoryType(.progesteroneTestResult):
 49 |             valueString = try HKCategoryValueProgesteroneTestResult(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:49:31: error: 'HKCategoryValueProgesteroneTestResult' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 47 |             valueString = try HKCategoryValuePregnancyTestResult(rawValue: self.value)?.categoryValueDescription
 48 |         case HKCategoryType(.progesteroneTestResult):
 49 |             valueString = try HKCategoryValueProgesteroneTestResult(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueProgesteroneTestResult' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 50 |         case HKCategoryType(.sleepAnalysis):
 51 |             valueString = try HKCategoryValueSleepAnalysis(rawValue: self.value)?.categoryValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:51:31: error: 'HKCategoryValueSleepAnalysis' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 49 |             valueString = try HKCategoryValueProgesteroneTestResult(rawValue: self.value)?.categoryValueDescription
 50 |         case HKCategoryType(.sleepAnalysis):
 51 |             valueString = try HKCategoryValueSleepAnalysis(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueSleepAnalysis' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 52 |         case
 53 |             HKCategoryType(.abdominalCramps),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:90:31: error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 88 |             // Samples of these types carry values of
 89 |             // HKCategoryValueSeverity
 90 |             valueString = try HKCategoryValueSeverity(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 91 |         case
 92 |             HKCategoryType(.moodChanges),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategorySample+Observation.swift:96:31: error: 'HKCategoryValuePresence' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKCategorySample {
    | `- note: add @available attribute to enclosing extension
 14 |     // Disabled the following rules as this function is readable
 15 |     // swiftlint:disable:next cyclomatic_complexity function_body_length
 16 |     func buildCategoryObservation(
    |          `- note: add @available attribute to enclosing instance method
 17 |         _ observation: inout Observation,
 18 |         mappings: HKSampleMapping = HKSampleMapping.default
    :
 94 |             // Samples of these types carry values of
 95 |             // HKCategoryValuePresence
 96 |             valueString = try HKCategoryValuePresence(rawValue: self.value)?.categoryValueDescription
    |                               |- error: 'HKCategoryValuePresence' is only available in macOS 13.0 or newer
    |                               `- note: add 'if #available' version check
 97 |         case
 98 |             HKCategoryType(.irregularHeartRhythmEvent),
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:27:1: warning: extension declares a conformance of imported type 'HKCategoryValueCervicalMucusQuality' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 25 | }
 26 |
 27 | extension HKCategoryValueCervicalMucusQuality: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueCervicalMucusQuality' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 28 |     var categoryValueDescription: String {
 29 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:27:11: error: 'HKCategoryValueCervicalMucusQuality' is only available in macOS 13.0 or newer
 25 | }
 26 |
 27 | extension HKCategoryValueCervicalMucusQuality: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueCervicalMucusQuality' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 28 |     var categoryValueDescription: String {
 29 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:48:1: warning: extension declares a conformance of imported type 'HKCategoryValueMenstrualFlow' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 46 | }
 47 |
 48 | extension HKCategoryValueMenstrualFlow: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueMenstrualFlow' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 49 |     var categoryValueDescription: String {
 50 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:48:11: error: 'HKCategoryValueMenstrualFlow' is only available in macOS 13.0 or newer
 46 | }
 47 |
 48 | extension HKCategoryValueMenstrualFlow: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueMenstrualFlow' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 49 |     var categoryValueDescription: String {
 50 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:69:1: warning: extension declares a conformance of imported type 'HKCategoryValueOvulationTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 67 | }
 68 |
 69 | extension HKCategoryValueOvulationTestResult: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueOvulationTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 70 |     var categoryValueDescription: String {
 71 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:69:11: error: 'HKCategoryValueOvulationTestResult' is only available in macOS 13.0 or newer
 67 | }
 68 |
 69 | extension HKCategoryValueOvulationTestResult: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueOvulationTestResult' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 70 |     var categoryValueDescription: String {
 71 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:88:1: warning: extension declares a conformance of imported type 'HKCategoryValueContraceptive' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 86 | }
 87 |
 88 | extension HKCategoryValueContraceptive: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueContraceptive' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 89 |     var categoryValueDescription: String {
 90 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:88:11: error: 'HKCategoryValueContraceptive' is only available in macOS 13.0 or newer
 86 | }
 87 |
 88 | extension HKCategoryValueContraceptive: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueContraceptive' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 89 |     var categoryValueDescription: String {
 90 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:113:1: warning: extension declares a conformance of imported type 'HKCategoryValueSleepAnalysis' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
111 | }
112 |
113 | extension HKCategoryValueSleepAnalysis: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueSleepAnalysis' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
114 |     var categoryValueDescription: String {
115 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:113:11: error: 'HKCategoryValueSleepAnalysis' is only available in macOS 13.0 or newer
111 | }
112 |
113 | extension HKCategoryValueSleepAnalysis: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueSleepAnalysis' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
114 |     var categoryValueDescription: String {
115 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:136:1: warning: extension declares a conformance of imported type 'HKCategoryValueAppetiteChanges' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
134 | }
135 |
136 | extension HKCategoryValueAppetiteChanges: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueAppetiteChanges' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
137 |     var categoryValueDescription: String {
138 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:136:11: error: 'HKCategoryValueAppetiteChanges' is only available in macOS 13.0 or newer
134 | }
135 |
136 | extension HKCategoryValueAppetiteChanges: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueAppetiteChanges' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
137 |     var categoryValueDescription: String {
138 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:155:1: warning: extension declares a conformance of imported type 'HKCategoryValueEnvironmentalAudioExposureEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
153 | }
154 |
155 | extension HKCategoryValueEnvironmentalAudioExposureEvent: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueEnvironmentalAudioExposureEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
156 |     var categoryValueDescription: String {
157 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:155:11: error: 'HKCategoryValueEnvironmentalAudioExposureEvent' is only available in macOS 13.0 or newer
153 | }
154 |
155 | extension HKCategoryValueEnvironmentalAudioExposureEvent: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueEnvironmentalAudioExposureEvent' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
156 |     var categoryValueDescription: String {
157 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:168:1: warning: extension declares a conformance of imported type 'HKCategoryValueHeadphoneAudioExposureEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
166 | }
167 |
168 | extension HKCategoryValueHeadphoneAudioExposureEvent: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueHeadphoneAudioExposureEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
169 |     var categoryValueDescription: String {
170 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:168:11: error: 'HKCategoryValueHeadphoneAudioExposureEvent' is only available in macOS 13.0 or newer
166 | }
167 |
168 | extension HKCategoryValueHeadphoneAudioExposureEvent: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueHeadphoneAudioExposureEvent' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
169 |     var categoryValueDescription: String {
170 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:181:1: warning: extension declares a conformance of imported type 'HKCategoryValueLowCardioFitnessEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
179 | }
180 |
181 | extension HKCategoryValueLowCardioFitnessEvent: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueLowCardioFitnessEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
182 |     var categoryValueDescription: String {
183 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:181:11: error: 'HKCategoryValueLowCardioFitnessEvent' is only available in macOS 13.0 or newer
179 | }
180 |
181 | extension HKCategoryValueLowCardioFitnessEvent: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueLowCardioFitnessEvent' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
182 |     var categoryValueDescription: String {
183 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:194:1: warning: extension declares a conformance of imported type 'HKAppleWalkingSteadinessClassification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
192 | }
193 |
194 | extension HKAppleWalkingSteadinessClassification: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKAppleWalkingSteadinessClassification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
195 |     var categoryValueDescription: String {
196 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:194:11: error: 'HKAppleWalkingSteadinessClassification' is only available in macOS 13.0 or newer
192 | }
193 |
194 | extension HKAppleWalkingSteadinessClassification: HKCategoryValueDescription {
    | |         `- error: 'HKAppleWalkingSteadinessClassification' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
195 |     var categoryValueDescription: String {
196 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:211:1: warning: extension declares a conformance of imported type 'HKCategoryValueAppleWalkingSteadinessEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
209 | }
210 |
211 | extension HKCategoryValueAppleWalkingSteadinessEvent: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueAppleWalkingSteadinessEvent' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
212 |     var categoryValueDescription: String {
213 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:211:11: error: 'HKCategoryValueAppleWalkingSteadinessEvent' is only available in macOS 13.0 or newer
209 | }
210 |
211 | extension HKCategoryValueAppleWalkingSteadinessEvent: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueAppleWalkingSteadinessEvent' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
212 |     var categoryValueDescription: String {
213 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:230:1: warning: extension declares a conformance of imported type 'HKCategoryValuePregnancyTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
228 | }
229 |
230 | extension HKCategoryValuePregnancyTestResult: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValuePregnancyTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
231 |     var categoryValueDescription: String {
232 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:230:11: error: 'HKCategoryValuePregnancyTestResult' is only available in macOS 13.0 or newer
228 | }
229 |
230 | extension HKCategoryValuePregnancyTestResult: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValuePregnancyTestResult' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
231 |     var categoryValueDescription: String {
232 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:247:1: warning: extension declares a conformance of imported type 'HKCategoryValueProgesteroneTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
245 | }
246 |
247 | extension HKCategoryValueProgesteroneTestResult: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueProgesteroneTestResult' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
248 |     var categoryValueDescription: String {
249 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:247:11: error: 'HKCategoryValueProgesteroneTestResult' is only available in macOS 13.0 or newer
245 | }
246 |
247 | extension HKCategoryValueProgesteroneTestResult: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueProgesteroneTestResult' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
248 |     var categoryValueDescription: String {
249 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:264:1: warning: extension declares a conformance of imported type 'HKCategoryValueAppleStandHour' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
262 | }
263 |
264 | extension HKCategoryValueAppleStandHour: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueAppleStandHour' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
265 |     var categoryValueDescription: String {
266 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:264:11: error: 'HKCategoryValueAppleStandHour' is only available in macOS 13.0 or newer
262 | }
263 |
264 | extension HKCategoryValueAppleStandHour: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueAppleStandHour' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
265 |     var categoryValueDescription: String {
266 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:279:1: warning: extension declares a conformance of imported type 'HKCategoryValueSeverity' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
277 | }
278 |
279 | extension HKCategoryValueSeverity: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValueSeverity' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
280 |     var categoryValueDescription: String {
281 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:279:11: error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
277 | }
278 |
279 | extension HKCategoryValueSeverity: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
280 |     var categoryValueDescription: String {
281 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:300:1: warning: extension declares a conformance of imported type 'HKCategoryValuePresence' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
298 | }
299 |
300 | extension HKCategoryValuePresence: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'HKCategoryValuePresence' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
301 |     var categoryValueDescription: String {
302 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCategoryValue+String.swift:300:11: error: 'HKCategoryValuePresence' is only available in macOS 13.0 or newer
298 | }
299 |
300 | extension HKCategoryValuePresence: HKCategoryValueDescription {
    | |         `- error: 'HKCategoryValuePresence' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
301 |     var categoryValueDescription: String {
302 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKClinicalRecord+ResourceProxy.swift:13:11: error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKClinicalRecord {
   | |         `- error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKClinicalRecord` into a corresponding FHIR resource, encapsulated in a `ResourceProxy`
15 |     func resource() throws -> ResourceProxy {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKClinicalRecord+ResourceProxy.swift:20:28: error: 'fhirVersion' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKClinicalRecord {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKClinicalRecord` into a corresponding FHIR resource, encapsulated in a `ResourceProxy`
15 |     func resource() throws -> ResourceProxy {
   |          `- note: add @available attribute to enclosing instance method
16 |         guard let fhirResource = self.fhirResource else {
17 |             throw HealthKitOnFHIRError.invalidFHIRResource
18 |         }
19 |
20 |         guard fhirResource.fhirVersion == HKFHIRVersion.primaryR4() else {
   |                            |- error: 'fhirVersion' is only available in macOS 13.0 or newer
   |                            `- note: add 'if #available' version check
21 |             throw HealthKitOnFHIRError.unsupportedFHIRVersion
22 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKClinicalRecord+ResourceProxy.swift:20:43: error: 'HKFHIRVersion' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKClinicalRecord {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKClinicalRecord` into a corresponding FHIR resource, encapsulated in a `ResourceProxy`
15 |     func resource() throws -> ResourceProxy {
   |          `- note: add @available attribute to enclosing instance method
16 |         guard let fhirResource = self.fhirResource else {
17 |             throw HealthKitOnFHIRError.invalidFHIRResource
18 |         }
19 |
20 |         guard fhirResource.fhirVersion == HKFHIRVersion.primaryR4() else {
   |                                           |- error: 'HKFHIRVersion' is only available in macOS 13.0 or newer
   |                                           `- note: add 'if #available' version check
21 |             throw HealthKitOnFHIRError.unsupportedFHIRVersion
22 |         }
[690/701] Compiling HealthKitOnFHIR HKSampleType+ResourceType.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:13:11: error: 'HKSampleType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | |         `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:38: error: 'allergyRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                                      |- error: 'allergyRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:38: error: 'conditionRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                                      |- error: 'conditionRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:38: error: 'coverageRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                                      |- error: 'coverageRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:38: error: 'immunizationRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                                      |- error: 'immunizationRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:38: error: 'labResultRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                                      |- error: 'labResultRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:38: error: 'medicationRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                                      |- error: 'medicationRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:38: error: 'procedureRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                                      |- error: 'procedureRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:38: error: 'vitalSignRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                                      |- error: 'vitalSignRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:21: error: 'HKQuantityType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                     |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                     `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:40: error: 'HKCorrelationType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                                        |- error: 'HKCorrelationType' is only available in macOS 13.0 or newer
   |                                        `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:62: error: 'HKCategoryType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                                                              |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
   |                                                              `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:20:38: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
   |                                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKWorkout+Observation.swift:13:11: error: 'HKWorkout' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKWorkout {
   | |         `- error: 'HKWorkout' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Generates an observation that captures the type of physical activity performed for a single instance of physical activity, based on https://build.fhir.org/ig/HL7/physical-activity/StructureDefinition-pa-observation-activity-measure.html
15 |     /// Note:  An `HKWorkout` object can also act as a container for other `HKSample` objects, which will need to be converted to observations individually.
[691/701] Compiling HealthKitOnFHIR HKWorkout+Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:13:11: error: 'HKSampleType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | |         `- error: 'HKSampleType' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:22:38: error: 'allergyRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
20 |             case let clinicalType as HKClinicalType:
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
   |                                      |- error: 'allergyRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:24:38: error: 'conditionRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
22 |                 case HKClinicalType(.allergyRecord):
23 |                     return ResourceType.allergyIntolerance
24 |                 case HKClinicalType(.conditionRecord):
   |                                      |- error: 'conditionRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:26:38: error: 'coverageRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
24 |                 case HKClinicalType(.conditionRecord):
25 |                     return ResourceType.condition
26 |                 case HKClinicalType(.coverageRecord):
   |                                      |- error: 'coverageRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:28:38: error: 'immunizationRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
26 |                 case HKClinicalType(.coverageRecord):
27 |                     return ResourceType.coverage
28 |                 case HKClinicalType(.immunizationRecord):
   |                                      |- error: 'immunizationRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:30:38: error: 'labResultRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
28 |                 case HKClinicalType(.immunizationRecord):
29 |                     return ResourceType.immunization
30 |                 case HKClinicalType(.labResultRecord):
   |                                      |- error: 'labResultRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:32:38: error: 'medicationRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
30 |                 case HKClinicalType(.labResultRecord):
31 |                     return ResourceType.observation
32 |                 case HKClinicalType(.medicationRecord):
   |                                      |- error: 'medicationRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:34:38: error: 'procedureRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
32 |                 case HKClinicalType(.medicationRecord):
33 |                     return ResourceType.medication
34 |                 case HKClinicalType(.procedureRecord):
   |                                      |- error: 'procedureRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:22: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:22: error: 'init(_:)' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                      |- error: 'init(_:)' is only available in macOS 13.0 or newer
   |                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:36:38: error: 'vitalSignRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
   :
34 |                 case HKClinicalType(.procedureRecord):
35 |                     return ResourceType.procedure
36 |                 case HKClinicalType(.vitalSignRecord):
   |                                      |- error: 'vitalSignRecord' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
37 |                     return ResourceType.observation
38 |                 default:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:21: error: 'HKQuantityType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                     |- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |                     `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:40: error: 'HKCorrelationType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                                        |- error: 'HKCorrelationType' is only available in macOS 13.0 or newer
   |                                        `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:18:62: error: 'HKCategoryType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
   |                                                              |- error: 'HKCategoryType' is only available in macOS 13.0 or newer
   |                                                              `- note: add 'if #available' version check
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSampleType+ResourceType.swift:20:38: error: 'HKClinicalType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSampleType {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSampleType` into the corresponding FHIR resource type, defined as a `ResourceType`
15 |     public var resourceType: ResourceType {
   |                `- note: add @available attribute to enclosing property
16 |         get throws {
17 |             switch self {
18 |             case is HKQuantityType, is HKCorrelationType, is HKCategoryType:
19 |                 return ResourceType.observation
20 |             case let clinicalType as HKClinicalType:
   |                                      |- error: 'HKClinicalType' is only available in macOS 13.0 or newer
   |                                      `- note: add 'if #available' version check
21 |                 switch clinicalType {
22 |                 case HKClinicalType(.allergyRecord):
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKWorkout+Observation.swift:13:11: error: 'HKWorkout' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKWorkout {
   | |         `- error: 'HKWorkout' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Generates an observation that captures the type of physical activity performed for a single instance of physical activity, based on https://build.fhir.org/ig/HL7/physical-activity/StructureDefinition-pa-observation-activity-measure.html
15 |     /// Note:  An `HKWorkout` object can also act as a container for other `HKSample` objects, which will need to be converted to observations individually.
[692/701] Compiling HealthKitOnFHIR HKQuantityType+Coding.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantityType+Coding.swift:22:27: error: 'HKQuantityType' is only available in macOS 13.0 or newer
12 |
13 |
14 | extension HKQuantityType {
   | `- note: add @available attribute to enclosing extension
15 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
16 |     var codes: [Coding] {
   :
20 |
21 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
22 |     func codes(mappings: [HKQuantityType: HKQuantitySampleMapping] = HKQuantitySampleMapping.default) -> [Coding] {
   |          |                `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
23 |         guard let mapping = mappings[self] else {
24 |             return []
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantityType+Coding.swift:14:11: error: 'HKQuantityType' is only available in macOS 13.0 or newer
12 |
13 |
14 | extension HKQuantityType {
   | |         `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
15 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
16 |     var codes: [Coding] {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:13:11: error: 'HKSample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | |         `- error: 'HKSample' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:41:36: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
39 |         // Set specific data based on HealthKit type
40 |         switch self {
41 |         case let quantitySample as HKQuantitySample:
   |                                    |- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
42 |             try quantitySample.buildQuantitySampleObservation(&observation, mappings: mapping)
43 |         case let correlation as HKCorrelation:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:43:33: error: 'HKCorrelation' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
41 |         case let quantitySample as HKQuantitySample:
42 |             try quantitySample.buildQuantitySampleObservation(&observation, mappings: mapping)
43 |         case let correlation as HKCorrelation:
   |                                 |- error: 'HKCorrelation' is only available in macOS 13.0 or newer
   |                                 `- note: add 'if #available' version check
44 |             try correlation.buildCorrelationObservation(&observation, mappings: mapping)
45 |         case let categorySample as HKCategorySample:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:45:36: error: 'HKCategorySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
43 |         case let correlation as HKCorrelation:
44 |             try correlation.buildCorrelationObservation(&observation, mappings: mapping)
45 |         case let categorySample as HKCategorySample:
   |                                    |- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
46 |             try categorySample.buildCategoryObservation(&observation)
47 |         case let electrocardiogram as HKElectrocardiogram:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:47:39: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
45 |         case let categorySample as HKCategorySample:
46 |             try categorySample.buildCategoryObservation(&observation)
47 |         case let electrocardiogram as HKElectrocardiogram:
   |                                       |- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
   |                                       `- note: add 'if #available' version check
48 |             try electrocardiogram.buildObservation(&observation, mappings: mapping)
49 |         case let clinicalRecord as HKClinicalRecord:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:49:36: error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
47 |         case let electrocardiogram as HKElectrocardiogram:
48 |             try electrocardiogram.buildObservation(&observation, mappings: mapping)
49 |         case let clinicalRecord as HKClinicalRecord:
   |                                    |- error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
50 |             return try clinicalRecord.resource()
51 |         case let workout as HKWorkout:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:51:29: error: 'HKWorkout' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
49 |         case let clinicalRecord as HKClinicalRecord:
50 |             return try clinicalRecord.resource()
51 |         case let workout as HKWorkout:
   |                             |- error: 'HKWorkout' is only available in macOS 13.0 or newer
   |                             `- note: add 'if #available' version check
52 |             try workout.buildWorkoutObservation(&observation)
53 |         default:
[693/701] Compiling HealthKitOnFHIR HKSample+ResourceProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantityType+Coding.swift:22:27: error: 'HKQuantityType' is only available in macOS 13.0 or newer
12 |
13 |
14 | extension HKQuantityType {
   | `- note: add @available attribute to enclosing extension
15 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
16 |     var codes: [Coding] {
   :
20 |
21 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
22 |     func codes(mappings: [HKQuantityType: HKQuantitySampleMapping] = HKQuantitySampleMapping.default) -> [Coding] {
   |          |                `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   |          `- note: add @available attribute to enclosing instance method
23 |         guard let mapping = mappings[self] else {
24 |             return []
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantityType+Coding.swift:14:11: error: 'HKQuantityType' is only available in macOS 13.0 or newer
12 |
13 |
14 | extension HKQuantityType {
   | |         `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
15 |     /// Converts an HKQuantityType into corresponding FHIR Coding(s) based on a specified mapping
16 |     var codes: [Coding] {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:13:11: error: 'HKSample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | |         `- error: 'HKSample' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:41:36: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
39 |         // Set specific data based on HealthKit type
40 |         switch self {
41 |         case let quantitySample as HKQuantitySample:
   |                                    |- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
42 |             try quantitySample.buildQuantitySampleObservation(&observation, mappings: mapping)
43 |         case let correlation as HKCorrelation:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:43:33: error: 'HKCorrelation' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
41 |         case let quantitySample as HKQuantitySample:
42 |             try quantitySample.buildQuantitySampleObservation(&observation, mappings: mapping)
43 |         case let correlation as HKCorrelation:
   |                                 |- error: 'HKCorrelation' is only available in macOS 13.0 or newer
   |                                 `- note: add 'if #available' version check
44 |             try correlation.buildCorrelationObservation(&observation, mappings: mapping)
45 |         case let categorySample as HKCategorySample:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:45:36: error: 'HKCategorySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
43 |         case let correlation as HKCorrelation:
44 |             try correlation.buildCorrelationObservation(&observation, mappings: mapping)
45 |         case let categorySample as HKCategorySample:
   |                                    |- error: 'HKCategorySample' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
46 |             try categorySample.buildCategoryObservation(&observation)
47 |         case let electrocardiogram as HKElectrocardiogram:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:47:39: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
45 |         case let categorySample as HKCategorySample:
46 |             try categorySample.buildCategoryObservation(&observation)
47 |         case let electrocardiogram as HKElectrocardiogram:
   |                                       |- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
   |                                       `- note: add 'if #available' version check
48 |             try electrocardiogram.buildObservation(&observation, mappings: mapping)
49 |         case let clinicalRecord as HKClinicalRecord:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:49:36: error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
47 |         case let electrocardiogram as HKElectrocardiogram:
48 |             try electrocardiogram.buildObservation(&observation, mappings: mapping)
49 |         case let clinicalRecord as HKClinicalRecord:
   |                                    |- error: 'HKClinicalRecord' is only available in macOS 13.0 or newer
   |                                    `- note: add 'if #available' version check
50 |             return try clinicalRecord.resource()
51 |         case let workout as HKWorkout:
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKSample+ResourceProxy.swift:51:29: error: 'HKWorkout' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKSample {
   | `- note: add @available attribute to enclosing extension
14 |     /// Converts an `HKSample` into an FHIR  resource, encapsulated in a `ResourceProxy`
15 |     public var resource: ResourceProxy {
   :
25 |     /// - Parameter withMapping: A mapping to map `HKSample`s to corresponding FHIR observations allowing the customization of, e.g., codings and units. See ``HKSampleMapping``.
26 |     /// - Returns: A `ResourceProxy`containing an FHIR  `Observation` based on the concrete subclass of `HKSample`.
27 |     public func resource(withMapping mapping: HKSampleMapping = HKSampleMapping.default) throws -> ResourceProxy {
   |                 `- note: add @available attribute to enclosing instance method
28 |         var observation = Observation(
29 |             code: CodeableConcept(),
   :
49 |         case let clinicalRecord as HKClinicalRecord:
50 |             return try clinicalRecord.resource()
51 |         case let workout as HKWorkout:
   |                             |- error: 'HKWorkout' is only available in macOS 13.0 or newer
   |                             `- note: add 'if #available' version check
52 |             try workout.buildWorkoutObservation(&observation)
53 |         default:
[694/701] Compiling HealthKitOnFHIR HKWorkoutSampleMapping.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:23:24: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
21 |
22 |     /// The specified `HKUnit` that should be mapped.
23 |     public var hkunit: HKUnit
   |                        `- error: 'HKUnit' is only available in macOS 13.0 or newer
24 |     /// Unit representation.
25 |     public var unit: String
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:58:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
55 |     ///   - hkunit: The specified `HKUnit` that should be mapped.
56 |     ///   - unit: Unit representation.
57 |     public init(
   |            `- note: add @available attribute to enclosing initializer
58 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
59 |         unit: String
60 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:72:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
69 |     ///   - system: Identity of the terminology system.
70 |     ///   - code: Representation defined by the system.
71 |     public init(
   |            `- note: add @available attribute to enclosing initializer
72 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
73 |         unit: String,
74 |         system: URL,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:34:26: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
30 |
31 |
32 |     public init(from decoder: Decoder) throws {
   |            `- note: add @available attribute to enclosing initializer
33 |         let values = try decoder.container(keyedBy: CodingKeys.self)
34 |         let hkunit = try HKUnit(from: values.decode(String.self, forKey: .hkunit))
   |                          |- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                          `- note: add 'if #available' version check
35 |         let unit = try values.decode(String.self, forKey: .unit)
36 |         guard let system = try values.decodeIfPresent(URL.self, forKey: .system),
[695/701] Compiling HealthKitOnFHIR MappedCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:23:24: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
21 |
22 |     /// The specified `HKUnit` that should be mapped.
23 |     public var hkunit: HKUnit
   |                        `- error: 'HKUnit' is only available in macOS 13.0 or newer
24 |     /// Unit representation.
25 |     public var unit: String
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:58:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
55 |     ///   - hkunit: The specified `HKUnit` that should be mapped.
56 |     ///   - unit: Unit representation.
57 |     public init(
   |            `- note: add @available attribute to enclosing initializer
58 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
59 |         unit: String
60 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:72:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
69 |     ///   - system: Identity of the terminology system.
70 |     ///   - code: Representation defined by the system.
71 |     public init(
   |            `- note: add @available attribute to enclosing initializer
72 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
73 |         unit: String,
74 |         system: URL,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:34:26: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
30 |
31 |
32 |     public init(from decoder: Decoder) throws {
   |            `- note: add @available attribute to enclosing initializer
33 |         let values = try decoder.container(keyedBy: CodingKeys.self)
34 |         let hkunit = try HKUnit(from: values.decode(String.self, forKey: .hkunit))
   |                          |- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                          `- note: add 'if #available' version check
35 |         let unit = try values.decode(String.self, forKey: .unit)
36 |         guard let system = try values.decodeIfPresent(URL.self, forKey: .system),
[696/701] Compiling HealthKitOnFHIR MappedUnit.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:23:24: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
21 |
22 |     /// The specified `HKUnit` that should be mapped.
23 |     public var hkunit: HKUnit
   |                        `- error: 'HKUnit' is only available in macOS 13.0 or newer
24 |     /// Unit representation.
25 |     public var unit: String
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:58:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
55 |     ///   - hkunit: The specified `HKUnit` that should be mapped.
56 |     ///   - unit: Unit representation.
57 |     public init(
   |            `- note: add @available attribute to enclosing initializer
58 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
59 |         unit: String
60 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:72:17: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
69 |     ///   - system: Identity of the terminology system.
70 |     ///   - code: Representation defined by the system.
71 |     public init(
   |            `- note: add @available attribute to enclosing initializer
72 |         hkunit: HKUnit,
   |                 `- error: 'HKUnit' is only available in macOS 13.0 or newer
73 |         unit: String,
74 |         system: URL,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HKSampleMapping/MappedUnit.swift:34:26: error: 'HKUnit' is only available in macOS 13.0 or newer
11 |
12 | /// A ``MappedUnit`` instance is used to specify a unit mapping for FHIR observations mapped from HealthKit's `HKUnit`s.
13 | public struct MappedUnit: Decodable, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     private enum CodingKeys: String, CodingKey {
15 |         case hkunit
   :
30 |
31 |
32 |     public init(from decoder: Decoder) throws {
   |            `- note: add @available attribute to enclosing initializer
33 |         let values = try decoder.container(keyedBy: CodingKeys.self)
34 |         let hkunit = try HKUnit(from: values.decode(String.self, forKey: .hkunit))
   |                          |- error: 'HKUnit' is only available in macOS 13.0 or newer
   |                          `- note: add 'if #available' version check
35 |         let unit = try values.decode(String.self, forKey: .unit)
36 |         guard let system = try values.decodeIfPresent(URL.self, forKey: .system),
[697/701] Compiling HealthKitOnFHIR HKCorrelationType+Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:13:11: error: 'HKCorrelation' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | |         `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
15 |         _ observation: inout Observation,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:33:43: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ observation: inout Observation,
16 |         mappings: HKSampleMapping = HKSampleMapping.default
   :
31 |
32 |         for object in self.objects {
33 |             guard let sample = object as? HKQuantitySample else {
   |                                           |- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   |                                           `- note: add 'if #available' version check
34 |                 throw HealthKitOnFHIRError.notSupported
35 |             }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:1: warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:1: warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:34: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |           `- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:50: error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |                           `- error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:65:73: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
 63 |     ///
 64 |     /// The voltage measurements must be sorted by time interval.
 65 |     public typealias VoltageMeasurements = [(time: TimeInterval, value: HKQuantity)]
    |                      |                                                  `- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 66 |
 67 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:59:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:63: error: 'HKUnit' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                               |- error: 'HKUnit' is only available in macOS 13.0 or newer
    |                                                               `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:70: error: 'hertz()' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                                      |- error: 'hertz()' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:236:70: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
234 |         var lastIndex = 0
235 |         var lastRemainder = 10.0
236 |         var voltageMeasurementBatches: [[(time: TimeInterval, value: HKQuantity)]] = []
    |                                                                      |- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
237 |         for voltageMeasurement in voltageMeasurements.enumerated() {
238 |             let remainder = voltageMeasurement.element.time.truncatingRemainder(dividingBy: 10.0)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:31:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
   :
27 |     }
28 |
29 |     func buildQuantitySampleObservationComponent(
   |          `- note: add @available attribute to enclosing instance method
30 |         _ observation: inout Observation,
31 |         mappings: [HKQuantityType: HKQuantitySampleMapping] = HKQuantitySampleMapping.default
   |                    `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
32 |     ) throws {
33 |         guard let mapping = mappings[self.quantityType] else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:13:11: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | |         `- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
[698/701] Compiling HealthKitOnFHIR HKElectrocardiogram+Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:13:11: error: 'HKCorrelation' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | |         `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
15 |         _ observation: inout Observation,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:33:43: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ observation: inout Observation,
16 |         mappings: HKSampleMapping = HKSampleMapping.default
   :
31 |
32 |         for object in self.objects {
33 |             guard let sample = object as? HKQuantitySample else {
   |                                           |- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   |                                           `- note: add 'if #available' version check
34 |                 throw HealthKitOnFHIRError.notSupported
35 |             }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:1: warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:1: warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:34: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |           `- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:50: error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |                           `- error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:65:73: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
 63 |     ///
 64 |     /// The voltage measurements must be sorted by time interval.
 65 |     public typealias VoltageMeasurements = [(time: TimeInterval, value: HKQuantity)]
    |                      |                                                  `- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 66 |
 67 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:59:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:63: error: 'HKUnit' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                               |- error: 'HKUnit' is only available in macOS 13.0 or newer
    |                                                               `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:70: error: 'hertz()' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                                      |- error: 'hertz()' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:236:70: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
234 |         var lastIndex = 0
235 |         var lastRemainder = 10.0
236 |         var voltageMeasurementBatches: [[(time: TimeInterval, value: HKQuantity)]] = []
    |                                                                      |- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
237 |         for voltageMeasurement in voltageMeasurements.enumerated() {
238 |             let remainder = voltageMeasurement.element.time.truncatingRemainder(dividingBy: 10.0)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:31:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
   :
27 |     }
28 |
29 |     func buildQuantitySampleObservationComponent(
   |          `- note: add @available attribute to enclosing instance method
30 |         _ observation: inout Observation,
31 |         mappings: [HKQuantityType: HKQuantitySampleMapping] = HKQuantitySampleMapping.default
   |                    `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
32 |     ) throws {
33 |         guard let mapping = mappings[self.quantityType] else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:13:11: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | |         `- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
[699/701] Compiling HealthKitOnFHIR HKQuantitySample+Observation.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:13:11: error: 'HKCorrelation' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | |         `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
15 |         _ observation: inout Observation,
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKCorrelationType+Observation.swift:33:43: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKCorrelation {
   | `- note: add @available attribute to enclosing extension
14 |     func buildCorrelationObservation(
   |          `- note: add @available attribute to enclosing instance method
15 |         _ observation: inout Observation,
16 |         mappings: HKSampleMapping = HKSampleMapping.default
   :
31 |
32 |         for object in self.objects {
33 |             guard let sample = object as? HKQuantitySample else {
   |                                           |- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   |                                           `- note: add 'if #available' version check
34 |                 throw HealthKitOnFHIRError.notSupported
35 |             }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:1: warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'Classification' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:13:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 11 |
 12 |
 13 | extension HKElectrocardiogram.Classification: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 14 |     var categoryValueDescription: String {
 15 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:1: warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |- warning: extension declares a conformance of imported type 'SymptomsStatus' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'HealthKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:41:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 39 |
 40 |
 41 | extension HKElectrocardiogram.SymptomsStatus: HKCategoryValueDescription {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |     var categoryValueDescription: String {
 43 |         get throws {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:34: error: 'HKCategoryType' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |           `- error: 'HKCategoryType' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:61:50: error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    |                      |                           `- error: 'HKCategoryValueSeverity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 62 |     /// The raw voltage measurements are defined as `HKQuantity` samples that are correlating to a specific measurement time.
 63 |     ///
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:65:73: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
 63 |     ///
 64 |     /// The voltage measurements must be sorted by time interval.
 65 |     public typealias VoltageMeasurements = [(time: TimeInterval, value: HKQuantity)]
    |                      |                                                  `- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                      `- note: add @available attribute to enclosing type alias
 66 |
 67 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:59:11: error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | |         `- error: 'HKElectrocardiogram' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:63: error: 'HKUnit' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                               |- error: 'HKUnit' is only available in macOS 13.0 or newer
    |                                                               `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:228:70: error: 'hertz()' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
226 |         let period: Double
227 |         if let samplingFrequency {
228 |             period = 1.0 / samplingFrequency.doubleValue(for: HKUnit.hertz())
    |                                                                      |- error: 'hertz()' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
229 |         } else {
230 |             period = (voltageMeasurements.last?.time ?? 0.0) / Double(voltageMeasurements.count)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKElectrocardiogram+Observation.swift:236:70: error: 'HKQuantity' is only available in macOS 13.0 or newer
 57 |
 58 |
 59 | extension HKElectrocardiogram {
    | `- note: add @available attribute to enclosing extension
 60 |     /// The `Symptoms` contain related `HKCategoryType` instances coded as `HKCategoryValueSeverity` enums related to an `HKElectrocardiogram`.
 61 |     public typealias Symptoms = [HKCategoryType: HKCategoryValueSeverity]
    :
215 |
216 |
217 |     private func appendVoltageMeasurementsComponent(
    |                  `- note: add @available attribute to enclosing instance method
218 |         _ observation: inout Observation,
219 |         voltageMeasurements: VoltageMeasurements,
    :
234 |         var lastIndex = 0
235 |         var lastRemainder = 10.0
236 |         var voltageMeasurementBatches: [[(time: TimeInterval, value: HKQuantity)]] = []
    |                                                                      |- error: 'HKQuantity' is only available in macOS 13.0 or newer
    |                                                                      `- note: add 'if #available' version check
237 |         for voltageMeasurement in voltageMeasurements.enumerated() {
238 |             let remainder = voltageMeasurement.element.time.truncatingRemainder(dividingBy: 10.0)
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:31:20: error: 'HKQuantityType' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
   :
27 |     }
28 |
29 |     func buildQuantitySampleObservationComponent(
   |          `- note: add @available attribute to enclosing instance method
30 |         _ observation: inout Observation,
31 |         mappings: [HKQuantityType: HKQuantitySampleMapping] = HKQuantitySampleMapping.default
   |                    `- error: 'HKQuantityType' is only available in macOS 13.0 or newer
32 |     ) throws {
33 |         guard let mapping = mappings[self.quantityType] else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitOnFHIR/HealthKit Extensions/HKQuantitySample+Observation.swift:13:11: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
11 |
12 |
13 | extension HKQuantitySample {
   | |         `- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
   | `- note: add @available attribute to enclosing extension
14 |     func buildQuantitySampleObservation(
15 |         _ observation: inout Observation,
[700/701] Compiling HealthKitOnFHIR Observation+Value.swift
[701/701] Compiling HealthKitOnFHIR resource_bundle_accessor.swift
BUILD FAILURE 6.0 macosSpm