The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HealthKitToFhir with Swift 5.9 for macOS (SPM).

Build Command

env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/microsoft/healthkit-to-fhir.git
Reference: 1.0.3
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/microsoft/healthkit-to-fhir
 * tag               1.0.3      -> FETCH_HEAD
HEAD is now at 3193ec9 Fixed issue with OS Version (#6)
Cloned https://github.com/microsoft/healthkit-to-fhir.git into spi-builder-workspace
3193ec9772d21a0e7df3a917b8a7ed1d541ea20f
SUCCESS checkout https://github.com/microsoft/healthkit-to-fhir.git at 1.0.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
env DEVELOPER_DIR="/Applications/Xcode-15.0.0-Beta.app" xcrun swift build --arch arm64
Building ... (attempt 1)
Fetching https://github.com/smart-on-fhir/Swift-FHIR from cache
Fetched https://github.com/smart-on-fhir/Swift-FHIR (0.18s)
Computing version for https://github.com/smart-on-fhir/Swift-FHIR
Computed https://github.com/smart-on-fhir/Swift-FHIR at 4.2.0 (0.43s)
Creating working copy for https://github.com/smart-on-fhir/Swift-FHIR
Working copy of https://github.com/smart-on-fhir/Swift-FHIR resolved at 4.2.0
Building for debugging...
[1/167] Compiling Models Account.swift
[2/167] Compiling Models ActivityDefinition.swift
[3/167] Compiling Models Address.swift
[4/167] Compiling Models AdverseEvent.swift
[5/167] Compiling Models Age.swift
[6/167] Compiling Models AllergyIntolerance.swift
[7/167] Compiling Models Annotation.swift
[8/167] Compiling Models Appointment.swift
[9/167] Compiling Models AppointmentResponse.swift
[10/167] Compiling Models Attachment.swift
[11/167] Compiling Models AuditEvent.swift
[12/167] Compiling Models BackboneElement.swift
[13/167] Compiling Models Base64Binary.swift
[14/167] Compiling Models Basic.swift
[15/167] Compiling Models Binary.swift
[16/167] Compiling Models BiologicallyDerivedProduct.swift
[17/167] Compiling Models BodyStructure.swift
[18/167] Compiling Models Bundle.swift
[19/167] Compiling Models CapabilityStatement.swift
[20/167] Compiling Models CarePlan.swift
[21/167] Compiling Models CareTeam.swift
[22/167] Compiling Models CatalogEntry.swift
[23/167] Compiling Models ChargeItem.swift
[24/167] Compiling Models ChargeItemDefinition.swift
[25/167] Compiling Models Observation.swift
[26/167] Compiling Models ObservationDefinition.swift
[27/167] Compiling Models OperationDefinition.swift
[28/167] Compiling Models OperationOutcome.swift
[29/167] Compiling Models Organization.swift
[30/167] Compiling Models OrganizationAffiliation.swift
[31/167] Compiling Models ParameterDefinition.swift
[32/167] Compiling Models Parameters.swift
[33/167] Compiling Models Patient.swift
[34/167] Compiling Models PaymentNotice.swift
[35/167] Compiling Models PaymentReconciliation.swift
[36/167] Compiling Models Period.swift
[37/167] Compiling Models Person.swift
[38/167] Compiling Models PlanDefinition.swift
[39/167] Compiling Models Population.swift
[40/167] Compiling Models Practitioner.swift
[41/167] Compiling Models PractitionerRole.swift
[42/167] Compiling Models Procedure.swift
[43/167] Compiling Models ProdCharacteristic.swift
[44/167] Compiling Models ProductShelfLife.swift
[45/167] Compiling Models Provenance.swift
[46/167] Compiling Models Quantity.swift
[47/167] Compiling Models Questionnaire.swift
[48/167] Emitting module Models
[49/167] Compiling Models Goal.swift
[50/167] Compiling Models GraphDefinition.swift
[51/167] Compiling Models Group.swift
[52/167] Compiling Models GuidanceResponse.swift
[53/167] Compiling Models HealthcareService.swift
[54/167] Compiling Models HumanName.swift
[55/167] Compiling Models Identifier.swift
[56/167] Compiling Models ImagingStudy.swift
[57/167] Compiling Models Immunization.swift
[58/167] Compiling Models ImmunizationEvaluation.swift
[59/167] Compiling Models ImmunizationRecommendation.swift
[60/167] Compiling Models ImplementationGuide.swift
[61/167] Compiling Models InsurancePlan.swift
[62/167] Compiling Models Invoice.swift
[63/167] Compiling Models Library.swift
[64/167] Compiling Models Linkage.swift
[65/167] Compiling Models List.swift
[66/167] Compiling Models Location.swift
[67/167] Compiling Models MarketingStatus.swift
[68/167] Compiling Models Measure.swift
[69/167] Compiling Models MeasureReport.swift
[70/167] Compiling Models Media.swift
[71/167] Compiling Models Medication.swift
[72/167] Compiling Models MedicationAdministration.swift
[73/213] Compiling Models MedicationDispense.swift
[74/213] Compiling Models MedicationKnowledge.swift
[75/213] Compiling Models MedicationRequest.swift
[76/213] Compiling Models MedicationStatement.swift
[77/213] Compiling Models MedicinalProduct.swift
[78/213] Compiling Models MedicinalProductAuthorization.swift
[79/213] Compiling Models MedicinalProductContraindication.swift
[80/213] Compiling Models MedicinalProductIndication.swift
[81/213] Compiling Models MedicinalProductIngredient.swift
[82/213] Compiling Models MedicinalProductInteraction.swift
[83/213] Compiling Models MedicinalProductManufactured.swift
[84/213] Compiling Models MedicinalProductPackaged.swift
[85/213] Compiling Models MedicinalProductPharmaceutical.swift
[86/213] Compiling Models MedicinalProductUndesirableEffect.swift
[87/213] Compiling Models MessageDefinition.swift
[88/213] Compiling Models MessageHeader.swift
[89/213] Compiling Models Meta.swift
[90/213] Compiling Models MetadataResource.swift
[91/213] Compiling Models MolecularSequence.swift
[92/213] Compiling Models Money.swift
[93/213] Compiling Models NamingSystem.swift
[94/213] Compiling Models Narrative.swift
[95/213] Compiling Models NutritionOrder.swift
[96/213] Compiling Models ExampleScenario.swift
[97/213] Compiling Models ExplanationOfBenefit.swift
[98/213] Compiling Models Expression.swift
[99/213] Compiling Models Extension.swift
[100/213] Compiling Models FHIRAbstractBase+Factory.swift
[101/213] Compiling Models FHIRAbstractBase.swift
[102/213] Compiling Models FHIRAbstractResource.swift
[103/213] Compiling Models FHIRBool.swift
[104/213] Compiling Models FHIRCanonical.swift
[105/213] Compiling Models FHIRDecimal.swift
[106/213] Compiling Models FHIREnum.swift
[107/213] Compiling Models FHIRError.swift
[108/213] Compiling Models FHIRInteger.swift
[109/213] Compiling Models FHIRPrimitive.swift
[110/213] Compiling Models FHIRRequest.swift
[111/213] Compiling Models FHIRRequestHandler.swift
[112/213] Compiling Models FHIRServer.swift
[113/213] Compiling Models FHIRServerResponse.swift
[114/213] Compiling Models FHIRString.swift
[115/213] Compiling Models FHIRType.swift
[116/213] Compiling Models FHIRURL.swift
[117/213] Compiling Models FHIRValidationError.swift
[118/213] Compiling Models FamilyMemberHistory.swift
[119/213] Compiling Models Flag.swift
[120/213] Compiling Models DetectedIssue.swift
[121/213] Compiling Models Device.swift
[122/213] Compiling Models DeviceDefinition.swift
[123/213] Compiling Models DeviceMetric.swift
[124/213] Compiling Models DeviceRequest.swift
[125/213] Compiling Models DeviceUseStatement.swift
[126/213] Compiling Models DiagnosticReport.swift
[127/213] Compiling Models Distance.swift
[128/213] Compiling Models DocumentManifest.swift
[129/213] Compiling Models DocumentReference.swift
[130/213] Compiling Models DomainResource.swift
[131/213] Compiling Models Dosage.swift
[132/213] Compiling Models Duration.swift
[133/213] Compiling Models EffectEvidenceSynthesis.swift
[134/213] Compiling Models Element.swift
[135/213] Compiling Models ElementDefinition.swift
[136/213] Compiling Models Encounter.swift
[137/213] Compiling Models Endpoint.swift
[138/213] Compiling Models EnrollmentRequest.swift
[139/213] Compiling Models EnrollmentResponse.swift
[140/213] Compiling Models EpisodeOfCare.swift
[141/213] Compiling Models EventDefinition.swift
[142/213] Compiling Models Evidence.swift
[143/213] Compiling Models EvidenceVariable.swift
[144/213] Compiling Models Claim.swift
[145/213] Compiling Models ClaimResponse.swift
[146/213] Compiling Models ClinicalImpression.swift
[147/213] Compiling Models CodeSystem.swift
[148/213] Compiling Models CodeSystems.swift
[149/213] Compiling Models CodeableConcept.swift
[150/213] Compiling Models Coding.swift
[151/213] Compiling Models Communication.swift
[152/213] Compiling Models CommunicationRequest.swift
[153/213] Compiling Models CompartmentDefinition.swift
[154/213] Compiling Models Composition.swift
[155/213] Compiling Models ConceptMap.swift
[156/213] Compiling Models Condition.swift
[157/213] Compiling Models Consent.swift
[158/213] Compiling Models ContactDetail.swift
[159/213] Compiling Models ContactPoint.swift
[160/213] Compiling Models Contract.swift
[161/213] Compiling Models Contributor.swift
[162/213] Compiling Models Count.swift
[163/213] Compiling Models Coverage.swift
[164/213] Compiling Models CoverageEligibilityRequest.swift
[165/213] Compiling Models CoverageEligibilityResponse.swift
[166/213] Compiling Models DataRequirement.swift
[167/213] Compiling Models DateAndTime.swift
[168/213] Compiling Models QuestionnaireResponse.swift
[169/213] Compiling Models Range.swift
[170/213] Compiling Models Ratio.swift
[171/213] Compiling Models Reference.swift
[172/213] Compiling Models RelatedArtifact.swift
[173/213] Compiling Models RelatedPerson.swift
[174/213] Compiling Models RequestGroup.swift
[175/213] Compiling Models ResearchDefinition.swift
[176/213] Compiling Models ResearchElementDefinition.swift
[177/213] Compiling Models ResearchStudy.swift
[178/213] Compiling Models ResearchSubject.swift
[179/213] Compiling Models Resource+Meta.swift
[180/213] Compiling Models Resource.swift
[181/213] Compiling Models RiskAssessment.swift
[182/213] Compiling Models RiskEvidenceSynthesis.swift
[183/213] Compiling Models SampledData.swift
[184/213] Compiling Models Schedule.swift
[185/213] Compiling Models SearchParameter.swift
[186/213] Compiling Models ServiceRequest.swift
[187/213] Compiling Models Signature.swift
[188/213] Compiling Models Slot.swift
[189/213] Compiling Models Specimen.swift
[190/213] Compiling Models SpecimenDefinition.swift
[191/213] Compiling Models StructureDefinition.swift
[192/213] Compiling Models StructureMap.swift
[193/213] Compiling Models Subscription.swift
[194/213] Compiling Models Substance.swift
[195/213] Compiling Models SubstanceAmount.swift
[196/213] Compiling Models SubstanceNucleicAcid.swift
[197/213] Compiling Models SubstancePolymer.swift
[198/213] Compiling Models SubstanceProtein.swift
[199/213] Compiling Models SubstanceReferenceInformation.swift
[200/213] Compiling Models SubstanceSourceMaterial.swift
[201/213] Compiling Models SubstanceSpecification.swift
[202/213] Compiling Models SupplyDelivery.swift
[203/213] Compiling Models SupplyRequest.swift
[204/213] Compiling Models Task.swift
[205/213] Compiling Models TerminologyCapabilities.swift
[206/213] Compiling Models TestReport.swift
[207/213] Compiling Models TestScript.swift
[208/213] Compiling Models Timing.swift
[209/213] Compiling Models TriggerDefinition.swift
[210/213] Compiling Models UsageContext.swift
[211/213] Compiling Models ValueSet.swift
[212/213] Compiling Models VerificationResult.swift
[213/213] Compiling Models VisionPrescription.swift
[214/229] Emitting module Client
[215/231] Compiling Client DomainResource+Containment.swift
[216/231] Compiling Client Element+Extensions.swift
[217/231] Compiling Client FHIRBaseRequestHandler.swift
[218/231] Compiling Client Patient+SMART.swift
[219/231] Compiling Client Reference+Resolving.swift
[220/231] Compiling Client Resource+Instantiation.swift
[221/231] Compiling Client Resource+Operation.swift
[222/231] Compiling Client FHIRServerDataResponse.swift
[223/231] Compiling Client FHIRString+Localization.swift
[224/231] Compiling Client Resource+REST.swift
[225/231] Compiling Client ValueSet+Localization.swift
[226/231] Compiling Client FHIRBaseServer.swift
[227/231] Compiling Client FHIRCanonical+Resolving.swift
[228/231] Compiling Client FHIRMinimalServer.swift
[229/231] Compiling Client FHIROpenServer.swift
[230/231] Compiling Client FHIROperation.swift
[231/231] Compiling Client FHIRSearch.swift
[232/233] Compiling FHIR SwiftFHIR.swift
[233/233] Emitting module FHIR
error: emit-module command failed with exit code 1 (use -v to see invocation)
[234/241] Compiling HealthKitToFhir Configurations.swift
[235/241] Compiling HealthKitToFhir ConfigurationError.swift
[236/241] Compiling HealthKitToFhir FactoryBase.swift
[237/241] Compiling HealthKitToFhir ConversionError.swift
[238/241] Compiling HealthKitToFhir Constants.swift
[239/241] Emitting module HealthKitToFhir
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:35: error: 'HKObject' is only available in macOS 13.0 or newer
    open func device(from object: HKObject) throws -> Device {
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:62: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
                                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:51: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addVersions(device: Device, object: HKObject) throws {
                                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:48: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addNames(device: Device, object: HKObject) {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:40: error: 'HKObject' is only available in macOS 13.0 or newer
    open func observation(from object: HKObject) throws -> Observation {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:43: error: 'HKObjectType' is only available in macOS 13.0 or newer
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:15: note: add @available attribute to enclosing instance method
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:45: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:15: note: add @available attribute to enclosing instance method
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:38: error: 'HKCorrelation' is only available in macOS 13.0 or newer
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:15: note: add @available attribute to enclosing instance method
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:33: error: 'HKSample' is only available in macOS 13.0 or newer
    open func effective(sample: HKSample) throws -> Any {
                                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:15: note: add @available attribute to enclosing instance method
    open func effective(sample: HKSample) throws -> Any {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:35: error: 'HKObject' is only available in macOS 13.0 or newer
    func resource<T>(from object: HKObject) throws -> T
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:10: note: add @available attribute to enclosing instance method
    func resource<T>(from object: HKObject) throws -> T
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:12:17: note: add @available attribute to enclosing protocol
public protocol ResourceFactoryProtocol {
                ^
[240/241] Compiling HealthKitToFhir ObservationFactory.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:40: error: 'HKObject' is only available in macOS 13.0 or newer
    open func observation(from object: HKObject) throws -> Observation {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:43: error: 'HKObjectType' is only available in macOS 13.0 or newer
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:15: note: add @available attribute to enclosing instance method
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:45: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:15: note: add @available attribute to enclosing instance method
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:38: error: 'HKCorrelation' is only available in macOS 13.0 or newer
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:15: note: add @available attribute to enclosing instance method
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:33: error: 'HKSample' is only available in macOS 13.0 or newer
    open func effective(sample: HKSample) throws -> Any {
                                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:15: note: add @available attribute to enclosing instance method
    open func effective(sample: HKSample) throws -> Any {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:45:39: error: 'HKSample' is only available in macOS 13.0 or newer
        guard let sample = object as? HKSample else {
                                      ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:45:39: note: add 'if #available' version check
        guard let sample = object as? HKSample else {
                                      ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:47:82: error: 'HKObject' is only available in macOS 13.0 or newer
            throw ConversionError.unsupportedType(identifier: String(describing: HKObject.self))
                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:47:82: note: add 'if #available' version check
            throw ConversionError.unsupportedType(identifier: String(describing: HKObject.self))
                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:52:44: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
        if let quantitySample = sample as? HKQuantitySample {
                                           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:52:44: note: add 'if #available' version check
        if let quantitySample = sample as? HKQuantitySample {
                                           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:56:46: error: 'HKCorrelation' is only available in macOS 13.0 or newer
        else if let correlation = sample as? HKCorrelation {
                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:56:46: note: add 'if #available' version check
        else if let correlation = sample as? HKCorrelation {
                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:119:77: error: 'HKUnit' is only available in macOS 13.0 or newer
        json[Constants.valueKey] = quantitySample.quantity.doubleValue(for: HKUnit.init(from: unitString))
                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:119:77: note: add 'if #available' version check
        json[Constants.valueKey] = quantitySample.quantity.doubleValue(for: HKUnit.init(from: unitString))
                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:15: note: add @available attribute to enclosing instance method
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:134:48: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
            if let quantitySample = sample as? HKQuantitySample {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:134:48: note: add 'if #available' version check
            if let quantitySample = sample as? HKQuantitySample {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:15: note: add @available attribute to enclosing instance method
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:156:47: error: 'HKMetadataKeyTimeZone' is only available in macOS 13.0 or newer
        let timeZoneString = sample.metadata?[HKMetadataKeyTimeZone] as? String
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:156:47: note: add 'if #available' version check
        let timeZoneString = sample.metadata?[HKMetadataKeyTimeZone] as? String
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:15: note: add @available attribute to enclosing instance method
    open func effective(sample: HKSample) throws -> Any {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
[241/241] Compiling HealthKitToFhir DeviceFactory.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:35: error: 'HKObject' is only available in macOS 13.0 or newer
    open func device(from object: HKObject) throws -> Device {
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:62: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
                                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:51: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addVersions(device: Device, object: HKObject) throws {
                                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:48: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addNames(device: Device, object: HKObject) {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:27:109: error: 'sourceRevision' is only available in macOS 13.0 or newer
        device.identifier = [try identifier(system: FactoryBase.healthKitIdentifierSystemKey, value: object.sourceRevision.source.bundleIdentifier)]
                                                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:27:109: note: add 'if #available' version check
        device.identifier = [try identifier(system: FactoryBase.healthKitIdentifierSystemKey, value: object.sourceRevision.source.bundleIdentifier)]
                                                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:30:40: error: 'device' is only available in macOS 13.0 or newer
        if let localIdentifer = object.device?.localIdentifier {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:30:40: note: add 'if #available' version check
        if let localIdentifer = object.device?.localIdentifier {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:32:130: error: 'device' is only available in macOS 13.0 or newer
            codeableConcept.coding = [try coding(system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.localIdentifier).keyPath)]
                                                                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:32:130: note: add 'if #available' version check
            codeableConcept.coding = [try coding(system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.localIdentifier).keyPath)]
                                                                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:37:38: error: 'device' is only available in macOS 13.0 or newer
        if let manufacturer = object.device?.manufacturer {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:37:38: note: add 'if #available' version check
        if let manufacturer = object.device?.manufacturer {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:42:31: error: 'device' is only available in macOS 13.0 or newer
        if let model = object.device?.model {
                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:42:31: note: add 'if #available' version check
        if let model = object.device?.model {
                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:66:45: error: 'device' is only available in macOS 13.0 or newer
        if let udiDeviceIdentifier = object.device?.udiDeviceIdentifier {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:66:45: note: add 'if #available' version check
        if let udiDeviceIdentifier = object.device?.udiDeviceIdentifier {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:32: error: 'sourceRevision' is only available in macOS 13.0 or newer
        let osVersion = object.sourceRevision.operatingSystemVersion
                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:32: note: add 'if #available' version check
        let osVersion = object.sourceRevision.operatingSystemVersion
                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:47: error: 'operatingSystemVersion' is only available in macOS 13.0 or newer
        let osVersion = object.sourceRevision.operatingSystemVersion
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:47: note: add 'if #available' version check
        let osVersion = object.sourceRevision.operatingSystemVersion
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:219: error: 'sourceRevision' is only available in macOS 13.0 or newer
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersion.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:219: note: add 'if #available' version check
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersion.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:234: error: 'operatingSystemVersion' is only available in macOS 13.0 or newer
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersio
n.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:234: note: add 'if #available' version check
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersion.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:89:33: error: 'sourceRevision' is only available in macOS 13.0 or newer
        if let version = object.sourceRevision.version {
                                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:89:33: note: add 'if #available' version check
        if let version = object.sourceRevision.version {
                                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:90:151: error: 'sourceRevision' is only available in macOS 13.0 or newer
            deviceVersions.append(try deviceVersion(version: version, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.version).keyPath))
                                                                                                                                                      ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:90:151: note: add 'if #available' version check
            deviceVersions.append(try deviceVersion(version: version, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.version).keyPath))
                                                                                                                                                      ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:94:41: error: 'device' is only available in macOS 13.0 or newer
        if let firmwareVersion = object.device?.firmwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:94:41: note: add 'if #available' version check
        if let firmwareVersion = object.device?.firmwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:95:159: error: 'device' is only available in macOS 13.0 or newer
            deviceVersions.append(try deviceVersion(version: firmwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.firmwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:95:159: note: add 'if #available' version check
            deviceVersions.append(try deviceVersion(version: firmwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.firmwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:99:41: error: 'device' is only available in macOS 13.0 or newer
        if let hardwareVersion = object.device?.hardwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:99:41: note: add 'if #available' version check
        if let hardwareVersion = object.device?.hardwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:100:159: error: 'device' is only available in macOS 13.0 or newer
            deviceVersions.append(try deviceVersion(version: hardwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.hardwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:100:159: note: add 'if #available' version check
            deviceVersions.append(try deviceVersion(version: hardwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.hardwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:104:41: error: 'device' is only available in macOS 13.0 or newer
        if let softwareVersion = object.device?.softwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:104:41: note: add 'if #available' version check
        if let softwareVersion = object.device?.softwareVersion {
                                        ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:105:159: error: 'device' is only available in macOS 13.0 or newer
            deviceVersions.append(try deviceVersion(version: softwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.softwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:105:159: note: add 'if #available' version check
            deviceVersions.append(try deviceVersion(version: softwareVersion, system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.softwareVersion).keyPath))
                                                                                                                                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:120:69: error: 'sourceRevision' is only available in macOS 13.0 or newer
        deviceNames.append(DeviceDeviceName(name: FHIRString(object.sourceRevision.source.name), type: .userFriendlyName))
                                                                    ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:120:69: note: add 'if #available' version check
        deviceNames.append(DeviceDeviceName(name: FHIRString(object.sourceRevision.source.name), type: .userFriendlyName))
                                                                    ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:123:30: error: 'device' is only available in macOS 13.0 or newer
        if let name = object.device?.name {
                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:123:30: note: add 'if #available' version check
        if let name = object.device?.name {
                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
[242/242] Compiling HealthKitToFhir ResourceFactoryProtocol.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:35: error: 'HKObject' is only available in macOS 13.0 or newer
    func resource<T>(from object: HKObject) throws -> T
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:10: note: add @available attribute to enclosing instance method
    func resource<T>(from object: HKObject) throws -> T
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:12:17: note: add @available attribute to enclosing protocol
public protocol ResourceFactoryProtocol {
                ^
error: fatalError
Retrying in 0 seconds ...
Building ... (attempt 2)
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Emitting module HealthKitToFhir
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:35: error: 'HKObject' is only available in macOS 13.0 or newer
    open func device(from object: HKObject) throws -> Device {
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:62: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
                                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:51: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addVersions(device: Device, object: HKObject) throws {
                                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:48: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addNames(device: Device, object: HKObject) {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:40: error: 'HKObject' is only available in macOS 13.0 or newer
    open func observation(from object: HKObject) throws -> Observation {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:15: note: add @available attribute to enclosing instance method
    open func observation(from object: HKObject) throws -> Observation {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:43: error: 'HKObjectType' is only available in macOS 13.0 or newer
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:15: note: add @available attribute to enclosing instance method
    open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:45: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:15: note: add @available attribute to enclosing instance method
    open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:38: error: 'HKCorrelation' is only available in macOS 13.0 or newer
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:15: note: add @available attribute to enclosing instance method
    open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:33: error: 'HKSample' is only available in macOS 13.0 or newer
    open func effective(sample: HKSample) throws -> Any {
                                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:15: note: add @available attribute to enclosing instance method
    open func effective(sample: HKSample) throws -> Any {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:14:12: note: add @available attribute to enclosing class
open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:35: error: 'HKObject' is only available in macOS 13.0 or newer
    func resource<T>(from object: HKObject) throws -> T
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:10: note: add @available attribute to enclosing instance method
    func resource<T>(from object: HKObject) throws -> T
         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:12:17: note: add @available attribute to enclosing protocol
public protocol ResourceFactoryProtocol {
                ^
[2/4] Compiling HealthKitToFhir DeviceFactory.swift
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:42: error: 'HKObject' is only available in macOS 13.0 or newer
    public func resource<T>(from object: HKObject) throws -> T {
                                         ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:17: note: add @available attribute to enclosing instance method
    public func resource<T>(from object: HKObject) throws -> T {
                ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:35: error: 'HKObject' is only available in macOS 13.0 or newer
    open func device(from object: HKObject) throws -> Device {
                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:62: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
                                                             ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:51: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addVersions(device: Device, object: HKObject) throws {
                                                  ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:48: error: 'HKObject' is only available in macOS 13.0 or newer
    open func addNames(device: Device, object: HKObject) {
                                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:15: note: add @available attribute to enclosing instance method
    open func addNames(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:27:109: error: 'sourceRevision' is only available in macOS 13.0 or newer
        device.identifier = [try identifier(system: FactoryBase.healthKitIdentifierSystemKey, value: object.sourceRevision.source.bundleIdentifier)]
                                                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:27:109: note: add 'if #available' version check
        device.identifier = [try identifier(system: FactoryBase.healthKitIdentifierSystemKey, value: object.sourceRevision.source.bundleIdentifier)]
                                                                                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:30:40: error: 'device' is only available in macOS 13.0 or newer
        if let localIdentifer = object.device?.localIdentifier {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:30:40: note: add 'if #available' version check
        if let localIdentifer = object.device?.localIdentifier {
                                       ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:32:130: error: 'device' is only available in macOS 13.0 or newer
            codeableConcept.coding = [try coding(system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.localIdentifier).keyPath)]
                                                                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:32:130: note: add 'if #available' version check
            codeableConcept.coding = [try coding(system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.device?.localIdentifier).keyPath)]
                                                                                                                                 ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:37:38: error: 'device' is only available in macOS 13.0 or newer
        if let manufacturer = object.device?.manufacturer {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:37:38: note: add 'if #available' version check
        if let manufacturer = object.device?.manufacturer {
                                     ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:42:31: error: 'device' is only available in macOS 13.0 or newer
        if let model = object.device?.model {
                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:42:31: note: add 'if #available' version check
        if let model = object.device?.model {
                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:15: note: add @available attribute to enclosing instance method
    open func device(from object: HKObject) throws -> Device {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:66:45: error: 'device' is only available in macOS 13.0 or newer
        if let udiDeviceIdentifier = object.device?.udiDeviceIdentifier {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:66:45: note: add 'if #available' version check
        if let udiDeviceIdentifier = object.device?.udiDeviceIdentifier {
                                            ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:15: note: add @available attribute to enclosing instance method
    open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:32: error: 'sourceRevision' is only available in macOS 13.0 or newer
        let osVersion = object.sourceRevision.operatingSystemVersion
                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:32: note: add 'if #available' version check
        let osVersion = object.sourceRevision.operatingSystemVersion
                               ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:47: error: 'operatingSystemVersion' is only available in macOS 13.0 or newer
        let osVersion = object.sourceRevision.operatingSystemVersion
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:85:47: note: add 'if #available' version check
        let osVersion = object.sourceRevision.operatingSystemVersion
                                              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:219: error: 'sourceRevision' is only available in macOS 13.0 or newer
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersion.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:219: note: add 'if #available' version check
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersion.patchVersion)", system: Constants.hkObjectSystemValue, code: NSExpression(forKeyPath: \HKObject.sourceRevision.operatingSystemVersion).keyPath))
                                                                                                                                                                                                                          ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:15: note: add @available attribute to enclosing instance method
    open func addVersions(device: Device, object: HKObject) throws {
              ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:13:12: note: add @available attribute to enclosing class
open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
           ^
/Users/builder/builds/TDmZkXJm/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:86:234: error: 'operatingSystemVersion' is only available in macOS 13.0 or newer
        deviceVersions.append(try deviceVersion(version: "\(osVersion.majorVersion).\(osVersion.minorVersion).\(osVersio
Retrying in 0 seconds ...
BUILD FAILURE 5.9 macosSpm