The Swift Package Index logo.Swift Package Index

Build Information

Successful build of HealthKitDataGenerator, reference 0.1.0 (927450), with Swift 6.4 for macOS (SPM) on 23 Sep 2026 04:49:14 UTC.

Swift 6 data race errors: 0

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/aminbenarieb/healthkit-data-generator.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aminbenarieb/healthkit-data-generator
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 927450a Initial commit: Health Generator App with comprehensive health data generation capabilities
Cloned https://github.com/aminbenarieb/healthkit-data-generator.git
Revision (git rev-parse @):
927450a7e77afbfb4c7d32ef63eaf2906af4b2eb
SUCCESS checkout https://github.com/aminbenarieb/healthkit-data-generator.git at 0.1.0
========================================
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
[60 / 71] Logging
[62 / 71] HealthKitDataGenerator
[72 / 129]
[77 / 129]
[81 / 129]
[82 / 129]
[86 / 129]
[89 / 129]
[92 / 129]
[95 / 129]
[98 / 129]
[99 / 129]
[100 / 129]
[107 / 129]
[108 / 129]
[109 / 129]
[120 / 129] HealthKitDataGenerator
[121 / 129] HealthKitDataGenerator
[126 / 129] HealthKitDataGenerator
[128 / 129] HealthKitDataGenerator
Build complete! (10.10 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: "HealthKitDataGenerator",
 8 |     platforms: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/apple/swift-log.git
[1/8148] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.36s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (1.99s)
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/HealthKitDataGenerator/Utilities/AppLogger.swift:156:8: warning: deprecated 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
154 |
155 | /// Simple file-based log handler
156 | struct FileLogHandler: LogHandler {
    |        `- warning: deprecated 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
157 |     let label: String
158 |     let fileHandle: FileHandle
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/JSON/JsonHandlerProtocol.swift:114:28: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
112 |
113 |         var description: String {
114 |             return "name:\(name) type:\(type) dict:\(dict) childs:\(childs)"
    |                            |- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
    |                            |- note: provide a default value to avoid this warning
    |                            `- note: use 'String(describing:)' to silence this warning
115 |         }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/JSON/JsonHandlerProtocol.swift:162:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
160 |     internal func printWithLevel(_ level:Int, string:String){
161 |         var outString = "\(level)"
162 |         for i in 0 ..< level {
    |             `- warning: immutable value 'i' was never used; consider replacing with '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
163 |             outString += " "
164 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/JSON/JsonReader.swift:50:53: warning: forced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?
48 |             if bytesRead > 0 {
49 |                 let textFileContents = NSString(bytes: &buffer, length: bytesRead, encoding: String.Encoding.utf8.rawValue)
50 |                 tokenizer.tokenize(textFileContents as! String)
   |                                                     `- warning: forced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?
51 |             }
52 |         }
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/Utilities/AppLogger.swift:156:8: warning: deprecated 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
154 |
155 | /// Simple file-based log handler
156 | struct FileLogHandler: LogHandler {
    |        `- warning: deprecated 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 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
157 |     let label: String
158 |     let fileHandle: FileHandle
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/DataGeneration/SampleCreator.swift:271:13: warning: initialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
269 |         // 2️⃣ Parse dates
270 |         let startDate = (try? startString.date(.iso8601)) ?? Date()
271 |         let endDate   = (try? endString.date(.iso8601)) ?? startDate
    |             `- warning: initialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
272 |
273 |         // 3️⃣ Create the builder
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/DataGeneration/SampleCreator.swift:282:17: warning: initialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
280 |             // Confidence must be an Int from [0..3]. We'll clamp just in case
281 |             let rawConfidence = hb["confidence"] as? Int ?? 0
282 |             let confidence = max(0, min(rawConfidence, 3))
    |                 `- warning: initialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
283 |             // precededByGap is optional logic (hardcode to `false` here)
284 |             let precededByGap = false
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/DataGeneration/SampleDataGenerator.swift:382:17: warning: initialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
380 |         for i in 0..<sleepPeriods {
381 |             let periodStart = currentTime
382 |             let periodEnd = currentTime.addingTimeInterval(periodDuration * 3600)
    |                 `- warning: initialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
383 |
384 |             // 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/HealthKitDataGenerator/JSON/OutputStreams.swift:33:9: warning: result of call to 'write(_:maxLength:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
31 |     func write(_ theString: String) {
32 |         let data = stringToData(theString)
33 |         write((data as NSData).bytes.bindMemory(to: UInt8.self, capacity: data.count), maxLength: data.count)
   |         `- warning: result of call to 'write(_:maxLength:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
34 |     }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/JSON/OutputStreams.swift:64:87: warning: forced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?
62 |         let data = outputStream.property(forKey: Stream.PropertyKey.dataWrittenToMemoryStreamKey)
63 |
64 |         return NSString(data: data as! Data, encoding: String.Encoding.utf8.rawValue) as! String
   |                                                                                       `- warning: forced cast from 'NSString?' to 'String' only unwraps and bridges; did you mean to use '!' with 'as'?
65 |     }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/HealthKitDataGenerator/LLM/AppleFoundationModelProvider.swift:187:21: warning: initialization of immutable value 'smt' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
185 |             // Validate that it's valid JSON
186 |             do {
187 |                 let smt = try JSONSerialization.jsonObject(with: jsonString.data(using: .utf8)!)
    |                     `- warning: initialization of immutable value 'smt' was never used; consider replacing with assignment to '_' or removing it [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
188 |                 return jsonString
189 |             } 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" : "HealthKitDataGenerator",
  "name" : "HealthKitDataGenerator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "HealthKitDataGenerator",
      "targets" : [
        "HealthKitDataGenerator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "HealthKitDataGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "HealthKitDataGeneratorTests",
      "path" : "Tests/HealthKitDataGeneratorTests",
      "sources" : [
        "HealthKitDataGeneratorTests.swift"
      ],
      "target_dependencies" : [
        "HealthKitDataGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HealthKitDataGenerator",
      "module_type" : "SwiftTarget",
      "name" : "HealthKitDataGenerator",
      "path" : "Sources/HealthKitDataGenerator",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "HealthKitDataGenerator"
      ],
      "sources" : [
        "Constants/HealthKitConstants.swift",
        "Core/HealthKitDataGenerator.swift",
        "DataExport/ExportConfiguration.swift",
        "DataExport/ExportTargets.swift",
        "DataGeneration/HealthProfile.swift",
        "DataGeneration/SampleCreator.swift",
        "DataGeneration/SampleDataGenerator.swift",
        "DataGeneration/SampleGenerationConfig.swift",
        "DataImport/HealthKitProfile.swift",
        "DataImport/HealthKitProfileImporter.swift",
        "DataImport/HealthKitProfileReader.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/HealthKitStoreCleaner.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: "HealthKitDataGenerator",
 8 |     platforms: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Done.