Build Information
Successful build of HealthDataGenerator, reference main (8d03a5), with Swift 6.4 for macOS (SPM) on 30 Sep 2026 15:22:01 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aminbenarieb/healthkit-data-generator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aminbenarieb/healthkit-data-generator
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8d03a52 Merge pull request #6 from kishorepran/feature/resting-heart-rate
Cloned https://github.com/aminbenarieb/healthkit-data-generator.git
Revision (git rev-parse @):
8d03a52901f1119a070e97b37573ef47c4c5f0f2
SUCCESS checkout https://github.com/aminbenarieb/healthkit-data-generator.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/aminbenarieb/healthkit-data-generator.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 / 96]
[Planning deferred tasks]
[25 / 42]
[26 / 43] Logging
[35 / 70]
[39 / 70]
[41 / 70]
[42 / 70]
[53 / 70] Logging
[54 / 70] Logging
[60 / 71] Logging
[62 / 71] HealthDataGenerator
[71 / 129]
[74 / 129]
[80 / 129]
[82 / 129]
[86 / 129]
[88 / 129]
[91 / 129]
[95 / 129]
[98 / 129]
[99 / 129]
[100 / 129]
[107 / 129]
[109 / 129]
[120 / 129] HealthDataGenerator
[121 / 129] HealthDataGenerator
[126 / 129] HealthDataGenerator
[128 / 129] HealthDataGenerator
Build complete! (10.46 sec)
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:6:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
4 | import PackageDescription
5 |
6 | let package = Package(
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
7 | name: "HealthDataGenerator",
8 | platforms: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/apple/swift-log.git
[1/8165] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.40s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (2.03s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/AppLogger.swift:156:8: [1;33mwarning: [1;39mdeprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m154 |[0;0m
[0;36m155 |[0;0m /// Simple file-based log handler
[0;36m156 |[0;0m struct FileLogHandler: LogHandler {
[0;36m|[0;0m `- [1;33mwarning: [1;39mdeprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m157 |[0;0m let label: String
[0;36m158 |[0;0m let fileHandle: FileHandle
Logging.LogHandler.log:3:15: [1;39mnote: [1;39m'log(event:)' declared here[0;0m
[0;36m1 |[0;0m protocol LogHandler {
[0;36m2 |[0;0m @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
[0;36m3 |[0;0m public func log(event: Logging.LogEvent)}
[0;36m|[0;0m `- [1;39mnote: [1;39m'log(event:)' declared here[0;0m
[0;36m4 |[0;0m
Logging.LogHandler.log:2:6: [1;39mnote: [1;39mrequirement 'log(event:)' declared here[0;0m
[0;36m1 |[0;0m protocol LogHandler {
[0;36m2 |[0;0m func log(event: Logging.LogEvent)}
[0;36m|[0;0m `- [1;39mnote: [1;39mrequirement 'log(event:)' declared here[0;0m
[0;36m3 |[0;0m
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/JsonHandlerProtocol.swift:114:28: [1;33mwarning: [1;39mstring interpolation produces a debug description for an optional value; did you mean to make this explicit?[0;0m
[0;36m112 |[0;0m
[0;36m113 |[0;0m var description: String {
[0;36m114 |[0;0m return "name:\([4;39mname[0;0m) type:\(type) dict:\(dict) childs:\(childs)"
[0;36m|[0;0m |- [1;33mwarning: [1;39mstring interpolation produces a debug description for an optional value; did you mean to make this explicit?[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39mprovide a default value to avoid this warning[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39muse 'String(describing:)' to silence this warning[0;0m
[0;36m115 |[0;0m }
[0;36m116 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/JsonHandlerProtocol.swift:162:13: [1;33mwarning: [1;39mimmutable value 'i' was never used; consider replacing with '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m160 |[0;0m internal func printWithLevel(_ level:Int, string:String){
[0;36m161 |[0;0m var outString = "\(level)"
[0;36m162 |[0;0m for i in 0 ..< level {
[0;36m|[0;0m `- [1;33mwarning: [1;39mimmutable value 'i' was never used; consider replacing with '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m163 |[0;0m outString += " "
[0;36m164 |[0;0m }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/JsonReader.swift:50:53: [1;33mwarning: [1;39mforced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?[0;0m
[0;36m48 |[0;0m if bytesRead > 0 {
[0;36m49 |[0;0m let textFileContents = NSString(bytes: &buffer, length: bytesRead, encoding: String.Encoding.utf8.rawValue)
[0;36m50 |[0;0m tokenizer.tokenize([4;39mtextFileContents[0;0m as! [4;39mString[0;0m)
[0;36m|[0;0m `- [1;33mwarning: [1;39mforced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?[0;0m
[0;36m51 |[0;0m }
[0;36m52 |[0;0m }
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/AppLogger.swift:156:8: [1;33mwarning: [1;39mdeprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m154 |[0;0m
[0;36m155 |[0;0m /// Simple file-based log handler
[0;36m156 |[0;0m struct FileLogHandler: LogHandler {
[0;36m|[0;0m `- [1;33mwarning: [1;39mdeprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m157 |[0;0m let label: String
[0;36m158 |[0;0m let fileHandle: FileHandle
Logging.LogHandler.log:3:15: [1;39mnote: [1;39m'log(event:)' declared here[0;0m
[0;36m1 |[0;0m protocol LogHandler {
[0;36m2 |[0;0m @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
[0;36m3 |[0;0m public func log(event: Logging.LogEvent)}
[0;36m|[0;0m `- [1;39mnote: [1;39m'log(event:)' declared here[0;0m
[0;36m4 |[0;0m
Logging.LogHandler.log:2:6: [1;39mnote: [1;39mrequirement 'log(event:)' declared here[0;0m
[0;36m1 |[0;0m protocol LogHandler {
[0;36m2 |[0;0m func log(event: Logging.LogEvent)}
[0;36m|[0;0m `- [1;39mnote: [1;39mrequirement 'log(event:)' declared here[0;0m
[0;36m3 |[0;0m
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:271:13: [1;33mwarning: [1;39minitialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m269 |[0;0m // 2️⃣ Parse dates
[0;36m270 |[0;0m let startDate = (try? startString.date(.iso8601)) ?? Date()
[0;36m271 |[0;0m let endDate = (try? endString.date(.iso8601)) ?? startDate
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m272 |[0;0m
[0;36m273 |[0;0m // 3️⃣ Create the builder
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:282:17: [1;33mwarning: [1;39minitialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m280 |[0;0m // Confidence must be an Int from [0..3]. We'll clamp just in case
[0;36m281 |[0;0m let rawConfidence = hb["confidence"] as? Int ?? 0
[0;36m282 |[0;0m let confidence = max(0, min(rawConfidence, 3))
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m283 |[0;0m // precededByGap is optional logic (hardcode to `false` here)
[0;36m284 |[0;0m let precededByGap = false
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleDataGenerator.swift:384:17: [1;33mwarning: [1;39minitialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m382 |[0;0m for i in 0..<sleepPeriods {
[0;36m383 |[0;0m let periodStart = currentTime
[0;36m384 |[0;0m let periodEnd = currentTime.addingTimeInterval(periodDuration * 3600)
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m385 |[0;0m
[0;36m386 |[0;0m // Each sleep period has light sleep, some deep sleep, and REM
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/OutputStreams.swift:33:9: [1;33mwarning: [1;39mresult of call to 'write(_:maxLength:)' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m31 |[0;0m func write(_ theString: String) {
[0;36m32 |[0;0m let data = stringToData(theString)
[0;36m33 |[0;0m write((data as NSData).bytes.bindMemory(to: UInt8.self, capacity: data.count), maxLength: data.count)
[0;36m|[0;0m `- [1;33mwarning: [1;39mresult of call to 'write(_:maxLength:)' is unused[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m34 |[0;0m }
[0;36m35 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/OutputStreams.swift:64:87: [1;33mwarning: [1;39mforced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?[0;0m
[0;36m62 |[0;0m let data = outputStream.property(forKey: Stream.PropertyKey.dataWrittenToMemoryStreamKey)
[0;36m63 |[0;0m
[0;36m64 |[0;0m return [4;39mNSString(data: data as! Data, encoding: String.Encoding.utf8.rawValue)[0;0m as! [4;39mString[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39mforced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?[0;0m
[0;36m65 |[0;0m }
[0;36m66 |[0;0m }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/LLM/AppleFoundationModelProvider.swift:187:21: [1;33mwarning: [1;39minitialization of immutable value 'smt' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m185 |[0;0m // Validate that it's valid JSON
[0;36m186 |[0;0m do {
[0;36m187 |[0;0m let smt = try JSONSerialization.jsonObject(with: jsonString.data(using: .utf8)!)
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of immutable value 'smt' was never used; consider replacing with assignment to '_' or removing it[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[0;36m188 |[0;0m return jsonString
[0;36m189 |[0;0m } catch {
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "HealthDataGenerator",
"name" : "HealthDataGenerator",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "HealthDataGenerator",
"targets" : [
"HealthDataGenerator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "HealthDataGeneratorTests",
"module_type" : "SwiftTarget",
"name" : "HealthDataGeneratorTests",
"path" : "Tests/HealthDataGeneratorTests",
"sources" : [
"HealthDataGeneratorTests.swift"
],
"target_dependencies" : [
"HealthDataGenerator"
],
"type" : "test"
},
{
"c99name" : "HealthDataGenerator",
"module_type" : "SwiftTarget",
"name" : "HealthDataGenerator",
"path" : "Sources/HealthDataGenerator",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"HealthDataGenerator"
],
"sources" : [
"Constants/HealthConstants.swift",
"Core/HealthDataGenerator.swift",
"DataExport/ExportConfiguration.swift",
"DataExport/ExportTargets.swift",
"DataGeneration/HealthProfile.swift",
"DataGeneration/SampleCreator.swift",
"DataGeneration/SampleDataGenerator.swift",
"DataGeneration/SampleGenerationConfig.swift",
"DataImport/HealthDataProfile.swift",
"DataImport/HealthDataProfileImporter.swift",
"DataImport/HealthDataProfileReader.swift",
"JSON/JsonHandlerProtocol.swift",
"JSON/JsonReader.swift",
"JSON/JsonTokenizer.swift",
"JSON/JsonWriter.swift",
"JSON/OutputStreams.swift",
"LLM/AppleFoundationModelProvider.swift",
"LLM/LLMManager.swift",
"LLM/LLMProvider.swift",
"Utilities/AppLogger.swift",
"Utilities/DateExtensions.swift",
"Utilities/FileNameUtil.swift",
"Utilities/HealthStoreCleaner.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
warning: 'spi-builder-workspace': /Users/admin/builder/spi-builder-workspace/Package.swift:6:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
4 | import PackageDescription
5 |
6 | let package = Package(
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
7 | name: "HealthDataGenerator",
8 | platforms: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Done.