The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HealthKitToFhir, reference master (3193ec), with Swift 6.4 for macOS (SPM) on 17 Sep 2026 14:34:02 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/microsoft/healthkit-to-fhir.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/microsoft/healthkit-to-fhir
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3193ec9 Fixed issue with OS Version (#6)
Cloned https://github.com/microsoft/healthkit-to-fhir.git
Revision (git rev-parse @):
3193ec9772d21a0e7df3a917b8a7ed1d541ea20f
SUCCESS checkout https://github.com/microsoft/healthkit-to-fhir.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/microsoft/healthkit-to-fhir.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 154]
[Planning deferred tasks]
[37 / 70]
[38 / 71] Models
[48 / 116]
[53 / 116]
[56 / 116]
[57 / 116]
[61 / 116]
[63 / 116]
[66 / 116]
[69 / 116]
[71 / 116]
[72 / 116]
[83 / 116] Models
[90 / 117] Client
[99 / 128] Client
[108 / 129] Client
[111 / 131] FHIR
[119 / 132] HealthKitToFhir
[125 / 147]
[134 / 147] HealthKitToFhir
Fetching https://github.com/smart-on-fhir/Swift-FHIR
[1/18089] Fetching swift-fhir
Fetched https://github.com/smart-on-fhir/Swift-FHIR (2.82s)
Computing version for https://github.com/smart-on-fhir/Swift-FHIR
Computed https://github.com/smart-on-fhir/Swift-FHIR at 4.2.1 (3.48s)
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.1
error: SwiftCompile normal arm64 failed with a nonzero exit code. Command line:     cd /Users/admin/builder

/Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:15:42: error: 'HKObject' is only available in macOS 13.0 or newer
 11 |
 12 | /// Class that handles the conversion of Apple HealthKit HKSourceRevision objects to FHIR.Device types
 13 | open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     public func resource<T>(from object: HKObject) throws -> T {
    |                 |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 16 |         guard T.self is Device.Type else {
 17 |             throw ConversionError.incorrectTypeForFactory
/Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:23:35: error: 'HKObject' is only available in macOS 13.0 or newer
 11 |
 12 | /// Class that handles the conversion of Apple HealthKit HKSourceRevision objects to FHIR.Device types
 13 | open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     public func resource<T>(from object: HKObject) throws -> T {
    :
 21 |     }
 22 |
 23 |     open func device(from object: HKObject) throws -> Device {
    |               |                   `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
 24 |         let device = Device()
 25 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:63:62: error: 'HKObject' is only available in macOS 13.0 or newer
 11 |
 12 | /// Class that handles the conversion of Apple HealthKit HKSourceRevision objects to FHIR.Device types
 13 | open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     public func resource<T>(from object: HKObject) throws -> T {
    :
 61 |     ///   - device: The Device object that the UDI should be added to.
 62 |     ///   - object: The HKObject.
 63 |     open func addUdiDeviceIdentifier(device: Device, object: HKObject) {
    |               |                                              `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
 64 |         var udiCarrier = device.udiCarrier ?? [DeviceUdiCarrier]()
 65 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:81:51: error: 'HKObject' is only available in macOS 13.0 or newer
 11 |
 12 | /// Class that handles the conversion of Apple HealthKit HKSourceRevision objects to FHIR.Device types
 13 | open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     public func resource<T>(from object: HKObject) throws -> T {
    :
 79 |     ///   - device: The Device object that the version information should be added to.
 80 |     ///   - object: The HKObject.
 81 |     open func addVersions(device: Device, object: HKObject) throws {
    |               |                                   `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
 82 |         var deviceVersions = device.version ?? [DeviceVersion]()
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift:116:48: error: 'HKObject' is only available in macOS 13.0 or newer
 11 |
 12 | /// Class that handles the conversion of Apple HealthKit HKSourceRevision objects to FHIR.Device types
 13 | open class DeviceFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 14 |
 15 |     public func resource<T>(from object: HKObject) throws -> T {
    :
114 |     ///   - device: The Device object that the name information should be added to.
115 |     ///   - object: The HKObject.
116 |     open func addNames(device: Device, object: HKObject) {
    |               |                                `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
117 |         var deviceNames = device.deviceName ?? [DeviceDeviceName]()
118 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:29:42: error: 'HKObject' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
 27 |     }
 28 |
 29 |     public func resource<T>(from object: HKObject) throws -> T {
    |                 |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |                 `- note: add '@available' attribute to enclosing instance method
 30 |         guard T.self is Observation.Type else {
 31 |             throw ConversionError.incorrectTypeForFactory
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:44:40: error: 'HKObject' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
 42 |     ///   - ConversionError: Will throw if a required value is not mapped properly in the config or the sample type is not supported.
 43 |     ///   - FHIRValidationError: Will throw if the conversion process yeilds an invalid FHIR object.
 44 |     open func observation(from object: HKObject) throws -> Observation {
    |               |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
 45 |         guard let sample = object as? HKSample else {
 46 |             // The given type is not currently supported.
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:87:43: error: 'HKObjectType' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
 85 |     ///   - ConversionError: Will throw if the Config does not contain conversion information for the given type or a required value is not provided.
 86 |     ///   - FHIRValidationError: Will throw if the conversion process yeilds an invalid FHIR object.
 87 |     open func codeableConcept(objectType: HKObjectType) throws -> CodeableConcept {
    |               |                           `- error: 'HKObjectType' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
 88 |         guard let conversionValues = conversionMap[objectType.identifier] else {
 89 |             throw ConversionError.conversionNotDefinedForType(identifier: objectType.identifier)
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:106:45: error: 'HKQuantitySample' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
104 |     ///   - ConversionError: Will throw if the Config does not contain conversion information for the given type or a required value is not provided.
105 |     ///   - FHIRValidationError: Will throw if the conversion process yeilds an invalid FHIR object.
106 |     open func valueQuantity(quantitySample: HKQuantitySample) throws -> Quantity {
    |               |                             `- error: 'HKQuantitySample' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
107 |         guard let conversionValues = conversionMap[quantitySample.quantityType.identifier] else {
108 |             throw ConversionError.conversionNotDefinedForType(identifier: quantitySample.quantityType.identifier)
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:130:38: error: 'HKCorrelation' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
128 |     ///   - ConversionError: Will throw if the Config does not contain conversion information for the given type or a required value is not provided.
129 |     ///   - FHIRValidationError: Will throw if the conversion process yeilds an invalid FHIR object.
130 |     open func component(correlation: HKCorrelation ) throws -> [ObservationComponent] {
    |               |                      `- error: 'HKCorrelation' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
131 |         var components: [ObservationComponent] = []
132 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift:155:33: error: 'HKSample' is only available in macOS 13.0 or newer
 12 |
 13 | /// Class that handles the conversion of Apple HealthKit objects to FHIR.Observation types
 14 | open class ObservationFactory : FactoryBase, ResourceFactoryProtocol {
    |            `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// Initializes a new ObservationFactory object.
    :
153 |     /// - Throws:
154 |     ///   - ConversionError: Will throw if the Date cannot be converted to either a FHIR.DateTime or a FHIR.Period
155 |     open func effective(sample: HKSample) throws -> Any {
    |               |                 `- error: 'HKSample' is only available in macOS 13.0 or newer
    |               `- note: add '@available' attribute to enclosing instance method
156 |         let timeZoneString = sample.metadata?[HKMetadataKeyTimeZone] as? String
157 |
/Users/admin/builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift:24:35: error: 'HKObject' is only available in macOS 13.0 or newer
10 | import FHIR
11 |
12 | public protocol ResourceFactoryProtocol {
   |                 `- note: add '@available' attribute to enclosing protocol
13 |
14 |     /// The Apple Health App bundle id used as the identifier system key when creating resources
   :
22 |     ///   - ConversionError: Will throw if a required value is not mapped properly in the config, the type is not supported, or the factory cannot handle the given resource.
23 |     ///   - FHIRValidationError: Will throw if the conversion process yeilds an invalid FHIR object.
24 |     func resource<T>(from object: HKObject) throws -> T
   |          |                        `- error: 'HKObject' is only available in macOS 13.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
25 | }
26 |
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/Configuration/Configurations.swift /Users/admin/builder/spi-builder-workspace/Sources/Constants/Constants.swift /Users/admin/builder/spi-builder-workspace/Sources/Errors/ConfigurationError.swift /Users/admin/builder/spi-builder-workspace/Sources/Errors/ConversionError.swift /Users/admin/builder/spi-builder-workspace/Sources/Factories/DeviceFactory.swift /Users/admin/builder/spi-builder-workspace/Sources/Factories/FactoryBase.swift /Users/admin/builder/spi-builder-workspace/Sources/Factories/ObservationFactory.swift /Users/admin/builder/spi-builder-workspace/Sources/Factories/ResourceFactoryProtocol.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-80c5bbf1d171475443272936d42f90a36a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HealthKitToFhir -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.build/out/Intermediates.noindex/HealthKitToFhir.build/Debug/HealthKitToFhir-t.build/Objects-normal/arm64/HealthKitToFhir.abi.json
error: Build failed
BUILD FAILURE 6.4 macosSpm