The Swift Package Index logo.Swift Package Index

Build Information

Successful build of HealthDataGenerator, reference main (359ef0), with Swift 6.1 for macOS (SPM) on 7 Apr 2026 18:06:05 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
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 359ef02 Rename HealthKitDataGenerator to HealthDataGenerator everywhere
Cloned https://github.com/aminbenarieb/healthkit-data-generator.git
Revision (git rev-parse @):
359ef0205f3a66bc8c6fe128e6be1fe29a59e60c
SUCCESS checkout https://github.com/aminbenarieb/healthkit-data-generator.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aminbenarieb/healthkit-data-generator.git
https://github.com/aminbenarieb/healthkit-data-generator.git
{
  "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:)'
 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:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 7 |     name: "HealthDataGenerator",
 8 |     platforms: [
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/9] Compiling Logging MetadataProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/9] Compiling Logging Locks.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/9] Compiling Logging LogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/9] Emitting module Logging
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/9] Compiling Logging Logging.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/9] Compiling Logging LogEvent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/31] Emitting module HealthDataGenerator
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataExport/ExportConfiguration.swift:17:23: warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | /// What data should be exported
 8 | public enum HealthDataToExportType : String {
   |             `- note: consider making enum 'HealthDataToExportType' conform to the 'Sendable' protocol
 9 |     /// all that is accessible
10 |     case ALL                    = "All"
   :
15 |
16 |     /// returns all values of this enumeration
17 |     public static let allValues = [ALL, ADDED_BY_THIS_APP, GENERATED_BY_THIS_APP];
   |                       |- warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'allValues' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:173:23: warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
171 | extension HealthProfile {
172 |     /// Athletic profile: High activity, excellent recovery
173 |     public static let sporty = HealthProfile(
    |                       |- warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sporty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |         id: "sporty",
175 |         name: "Athletic",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:195:23: warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
193 |
194 |     /// Stressed profile: High stress, poor sleep, irregular activity
195 |     public static let stressed = HealthProfile(
    |                       |- warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'stressed' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |         id: "stressed",
197 |         name: "Stressed Professional",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:217:23: warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
215 |
216 |     /// Balanced profile: Moderate activity, good sleep, healthy lifestyle
217 |     public static let balanced = HealthProfile(
    |                       |- warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'balanced' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 |         id: "balanced",
219 |         name: "Balanced Lifestyle",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:239:23: warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
237 |
238 |     /// Sedentary profile: Low activity, average sleep
239 |     public static let sedentary = HealthProfile(
    |                       |- warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sedentary' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |         id: "sedentary",
241 |         name: "Sedentary",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:261:23: warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
259 |
260 |     /// All available presets
261 |     public static let allPresets: [HealthProfile] = [
    |                       |- warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allPresets' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |         .sporty,
263 |         .stressed,
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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
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
157 |     let label: String
158 |     let fileHandle: FileHandle
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 |     ///
144 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
146 |
147 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
254 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
255 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
257 |         self.log(
258 |             level: event.level,
[11/33] Compiling HealthDataGenerator JsonHandlerProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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: use 'String(describing:)' to silence this warning
    |                            `- note: provide a default value to avoid this warning
115 |         }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/JsonHandlerProtocol.swift:162:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
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
163 |             outString += " "
164 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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 |         }
[12/33] Compiling HealthDataGenerator JsonReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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: use 'String(describing:)' to silence this warning
    |                            `- note: provide a default value to avoid this warning
115 |         }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/JsonHandlerProtocol.swift:162:13: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
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
163 |             outString += " "
164 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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 |         }
[13/33] Compiling HealthDataGenerator JsonTokenizer.swift
[14/33] Compiling HealthDataGenerator JsonWriter.swift
[15/33] Compiling HealthDataGenerator OutputStreams.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/OutputStreams.swift:33:9: warning: result of call to 'write(_:maxLength:)' is unused
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
34 |     }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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 | }
[16/33] Compiling HealthDataGenerator AppleFoundationModelProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/JSON/OutputStreams.swift:33:9: warning: result of call to 'write(_:maxLength:)' is unused
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
34 |     }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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 | }
[17/33] Compiling HealthDataGenerator FileNameUtil.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:64:29: warning: capture of 'self' with non-sendable type 'HealthStoreCleaner' in a '@Sendable' closure
28 |
29 | /// Utility class for cleaning Health data created by this app
30 | public class HealthStoreCleaner {
   |              `- note: class 'HealthStoreCleaner' does not conform to the 'Sendable' protocol
31 |
32 |     let healthStore: HKHealthStore
   :
62 |
63 |                         if results?.count > 0 {
64 |                             self.healthStore.delete(results!, withCompletion: {
   |                             `- warning: capture of 'self' with non-sendable type 'HealthStoreCleaner' in a '@Sendable' closure
65 |                                 (success:Bool, error:Error?) -> Void in
66 |                                 if success {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:68:11: warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
66 |                                 if success {
67 | 									if results?.isEmpty == false {
68 | 										onProgress("deleted \(results?.count ?? 0) from \(type)", nil)
   |           |- warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | 									}
70 |                                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:68:11: warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
66 |                                 if success {
67 | 									if results?.isEmpty == false {
68 | 										onProgress("deleted \(results?.count ?? 0) from \(type)", nil)
   |           |- warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | 									}
70 |                                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:79:25: warning: mutation of captured var 'result' in concurrently-executing code
77 |                         }
78 |
79 |                         result.anchor = newAnchor
   |                         `- warning: mutation of captured var 'result' in concurrently-executing code
80 |                         result.count = results?.count
81 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:80:25: warning: mutation of captured var 'result' in concurrently-executing code
78 |
79 |                         result.anchor = newAnchor
80 |                         result.count = results?.count
   |                         `- warning: mutation of captured var 'result' in concurrently-executing code
81 |                 }
82 |
[18/33] Compiling HealthDataGenerator HealthStoreCleaner.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:64:29: warning: capture of 'self' with non-sendable type 'HealthStoreCleaner' in a '@Sendable' closure
28 |
29 | /// Utility class for cleaning Health data created by this app
30 | public class HealthStoreCleaner {
   |              `- note: class 'HealthStoreCleaner' does not conform to the 'Sendable' protocol
31 |
32 |     let healthStore: HKHealthStore
   :
62 |
63 |                         if results?.count > 0 {
64 |                             self.healthStore.delete(results!, withCompletion: {
   |                             `- warning: capture of 'self' with non-sendable type 'HealthStoreCleaner' in a '@Sendable' closure
65 |                                 (success:Bool, error:Error?) -> Void in
66 |                                 if success {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:68:11: warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
66 |                                 if success {
67 | 									if results?.isEmpty == false {
68 | 										onProgress("deleted \(results?.count ?? 0) from \(type)", nil)
   |           |- warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | 									}
70 |                                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:68:11: warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
66 |                                 if success {
67 | 									if results?.isEmpty == false {
68 | 										onProgress("deleted \(results?.count ?? 0) from \(type)", nil)
   |           |- warning: capture of 'onProgress' with non-sendable type '(String, Double?) -> Void' in a '@Sendable' closure
   |           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | 									}
70 |                                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:79:25: warning: mutation of captured var 'result' in concurrently-executing code
77 |                         }
78 |
79 |                         result.anchor = newAnchor
   |                         `- warning: mutation of captured var 'result' in concurrently-executing code
80 |                         result.count = results?.count
81 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Utilities/HealthStoreCleaner.swift:80:25: warning: mutation of captured var 'result' in concurrently-executing code
78 |
79 |                         result.anchor = newAnchor
80 |                         result.count = results?.count
   |                         `- warning: mutation of captured var 'result' in concurrently-executing code
81 |                 }
82 |
[19/33] Compiling HealthDataGenerator LLMManager.swift
[20/33] Compiling HealthDataGenerator LLMProvider.swift
[21/33] Compiling HealthDataGenerator HealthDataProfileImporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:52:17: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 50 |                 /// TODO success error handling
 51 |
 52 |                 self.importQueue.addOperation(){
    |                 `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:55:36: warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
 55 |                     let metaData = profile.loadMetaData()
    |                                    `- warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:22:12: note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:58:25: warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
 58 |                         onCompletion(ImportError.unsupportedType("\(strExpectedType) is only supported"))
    |                         |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |                         return
 60 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:55:36: warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
 55 |                     let metaData = profile.loadMetaData()
    |                                    `- warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:22:12: note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:58:25: warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
 58 |                         onCompletion(ImportError.unsupportedType("\(strExpectedType) is only supported"))
    |                         |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |                         return
 60 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:65:57: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 63 |                     if deleteExistingData {
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
    |                                                         `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
 67 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:79:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
 77 |                         if lastSampleType != String(describing: sample.sampleType) {
 78 |                             lastSampleType = String(describing: sample.sampleType)
 79 |                             onProgress("importing \(lastSampleType)", nil)
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                         }
 81 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:82:25: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in an isolated closure; this is an error in the Swift 6 language mode
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 80 |                         }
 81 |
 82 |                         self.healthStore.save(sample, withCompletion: {
    |                         `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in an isolated closure; this is an error in the Swift 6 language mode
 83 |                             (success:Bool, error:Error?) in
 84 |                             if !success {
[22/33] Compiling HealthDataGenerator HealthDataProfileReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:52:17: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 50 |                 /// TODO success error handling
 51 |
 52 |                 self.importQueue.addOperation(){
    |                 `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:55:36: warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
 55 |                     let metaData = profile.loadMetaData()
    |                                    `- warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:22:12: note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:58:25: warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
 58 |                         onCompletion(ImportError.unsupportedType("\(strExpectedType) is only supported"))
    |                         |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |                         return
 60 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:55:36: warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 53 |
 54 |                     // check that the type is one of the supported profile types
 55 |                     let metaData = profile.loadMetaData()
    |                                    `- warning: capture of 'profile' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:22:12: note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:58:25: warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
 56 |                     let strExpectedType = String(describing: JsonSingleDocExportTarget.self)
 57 |                     if metaData.type != strExpectedType {
 58 |                         onCompletion(ImportError.unsupportedType("\(strExpectedType) is only supported"))
    |                         |- warning: capture of 'onCompletion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 59 |                         return
 60 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:65:57: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 63 |                     if deleteExistingData {
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
    |                                                         `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in a '@Sendable' closure
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
 67 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:66:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
 64 |
 65 |                         HealthStoreCleaner(healthStore: self.healthStore).clean(){(message:String, progressInPercent: Double?) in
 66 |                             onProgress(message, progressInPercent == nil ? nil : NSNumber(value: progressInPercent!/2))
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |                         }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:79:29: warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
 77 |                         if lastSampleType != String(describing: sample.sampleType) {
 78 |                             lastSampleType = String(describing: sample.sampleType)
 79 |                             onProgress("importing \(lastSampleType)", nil)
    |                             |- warning: capture of 'onProgress' with non-sendable type '(String, NSNumber?) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 80 |                         }
 81 |
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfileImporter.swift:82:25: warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in an isolated closure; this is an error in the Swift 6 language mode
 17 |
 18 | /// Importer for a health data profile
 19 | open class HealthDataProfileImporter {
    |            `- note: class 'HealthDataProfileImporter' does not conform to the 'Sendable' protocol
 20 |
 21 |     let healthStore: HKHealthStore
    :
 80 |                         }
 81 |
 82 |                         self.healthStore.save(sample, withCompletion: {
    |                         `- warning: capture of 'self' with non-sendable type 'HealthDataProfileImporter' in an isolated closure; this is an error in the Swift 6 language mode
 83 |                             (success:Bool, error:Error?) in
 84 |                             if !success {
[23/33] Compiling HealthDataGenerator ExportTargets.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:173:23: warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
171 | extension HealthProfile {
172 |     /// Athletic profile: High activity, excellent recovery
173 |     public static let sporty = HealthProfile(
    |                       |- warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sporty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |         id: "sporty",
175 |         name: "Athletic",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:195:23: warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
193 |
194 |     /// Stressed profile: High stress, poor sleep, irregular activity
195 |     public static let stressed = HealthProfile(
    |                       |- warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'stressed' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |         id: "stressed",
197 |         name: "Stressed Professional",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:217:23: warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
215 |
216 |     /// Balanced profile: Moderate activity, good sleep, healthy lifestyle
217 |     public static let balanced = HealthProfile(
    |                       |- warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'balanced' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 |         id: "balanced",
219 |         name: "Balanced Lifestyle",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:239:23: warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
237 |
238 |     /// Sedentary profile: Low activity, average sleep
239 |     public static let sedentary = HealthProfile(
    |                       |- warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sedentary' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |         id: "sedentary",
241 |         name: "Sedentary",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:261:23: warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
259 |
260 |     /// All available presets
261 |     public static let allPresets: [HealthProfile] = [
    |                       |- warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allPresets' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |         .sporty,
263 |         .stressed,
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:271:13: warning: initialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it
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
272 |
273 |         // 3️⃣ Create the builder
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:282:17: warning: initialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it
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
283 |             // precededByGap is optional logic (hardcode to `false` here)
284 |             let precededByGap = false
[24/33] Compiling HealthDataGenerator HealthProfile.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:173:23: warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
171 | extension HealthProfile {
172 |     /// Athletic profile: High activity, excellent recovery
173 |     public static let sporty = HealthProfile(
    |                       |- warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sporty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |         id: "sporty",
175 |         name: "Athletic",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:195:23: warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
193 |
194 |     /// Stressed profile: High stress, poor sleep, irregular activity
195 |     public static let stressed = HealthProfile(
    |                       |- warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'stressed' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |         id: "stressed",
197 |         name: "Stressed Professional",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:217:23: warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
215 |
216 |     /// Balanced profile: Moderate activity, good sleep, healthy lifestyle
217 |     public static let balanced = HealthProfile(
    |                       |- warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'balanced' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 |         id: "balanced",
219 |         name: "Balanced Lifestyle",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:239:23: warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
237 |
238 |     /// Sedentary profile: Low activity, average sleep
239 |     public static let sedentary = HealthProfile(
    |                       |- warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sedentary' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |         id: "sedentary",
241 |         name: "Sedentary",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:261:23: warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
259 |
260 |     /// All available presets
261 |     public static let allPresets: [HealthProfile] = [
    |                       |- warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allPresets' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |         .sporty,
263 |         .stressed,
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:271:13: warning: initialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it
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
272 |
273 |         // 3️⃣ Create the builder
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:282:17: warning: initialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it
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
283 |             // precededByGap is optional logic (hardcode to `false` here)
284 |             let precededByGap = false
[25/33] Compiling HealthDataGenerator SampleCreator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:173:23: warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
171 | extension HealthProfile {
172 |     /// Athletic profile: High activity, excellent recovery
173 |     public static let sporty = HealthProfile(
    |                       |- warning: static property 'sporty' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sporty' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 |         id: "sporty",
175 |         name: "Athletic",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:195:23: warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
193 |
194 |     /// Stressed profile: High stress, poor sleep, irregular activity
195 |     public static let stressed = HealthProfile(
    |                       |- warning: static property 'stressed' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'stressed' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 |         id: "stressed",
197 |         name: "Stressed Professional",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:217:23: warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
215 |
216 |     /// Balanced profile: Moderate activity, good sleep, healthy lifestyle
217 |     public static let balanced = HealthProfile(
    |                       |- warning: static property 'balanced' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'balanced' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
218 |         id: "balanced",
219 |         name: "Balanced Lifestyle",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:239:23: warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
237 |
238 |     /// Sedentary profile: Low activity, average sleep
239 |     public static let sedentary = HealthProfile(
    |                       |- warning: static property 'sedentary' is not concurrency-safe because non-'Sendable' type 'HealthProfile' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'sedentary' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |         id: "sedentary",
241 |         name: "Sedentary",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/HealthProfile.swift:261:23: warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// Represents a health profile persona with characteristic patterns
  5 | public struct HealthProfile: Codable, Equatable, Hashable {
    |               `- note: consider making struct 'HealthProfile' conform to the 'Sendable' protocol
  6 |     public let id: String
  7 |     public let name: String
    :
259 |
260 |     /// All available presets
261 |     public static let allPresets: [HealthProfile] = [
    |                       |- warning: static property 'allPresets' is not concurrency-safe because non-'Sendable' type '[HealthProfile]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allPresets' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
262 |         .sporty,
263 |         .stressed,
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:271:13: warning: initialization of immutable value 'endDate' was never used; consider replacing with assignment to '_' or removing it
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
272 |
273 |         // 3️⃣ Create the builder
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleCreator.swift:282:17: warning: initialization of immutable value 'confidence' was never used; consider replacing with assignment to '_' or removing it
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
283 |             // precededByGap is optional logic (hardcode to `false` here)
284 |             let precededByGap = false
[26/33] Compiling HealthDataGenerator HealthConstants.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Core/HealthDataGenerator.swift:147:21: warning: mutation of captured var 'savedCount' in concurrently-executing code
145 |                     ])
146 |                 } else {
147 |                     savedCount += 1
    |                     `- warning: mutation of captured var 'savedCount' in concurrently-executing code
148 |                     AppLogger.healthKit.debug("Saved sample", metadata: [
149 |                         "sampleType": "\(sample.sampleType)",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataExport/ExportConfiguration.swift:17:23: warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | /// What data should be exported
 8 | public enum HealthDataToExportType : String {
   |             `- note: consider making enum 'HealthDataToExportType' conform to the 'Sendable' protocol
 9 |     /// all that is accessible
10 |     case ALL                    = "All"
   :
15 |
16 |     /// returns all values of this enumeration
17 |     public static let allValues = [ALL, ADDED_BY_THIS_APP, GENERATED_BY_THIS_APP];
   |                       |- warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'allValues' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[27/33] Compiling HealthDataGenerator HealthDataGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Core/HealthDataGenerator.swift:147:21: warning: mutation of captured var 'savedCount' in concurrently-executing code
145 |                     ])
146 |                 } else {
147 |                     savedCount += 1
    |                     `- warning: mutation of captured var 'savedCount' in concurrently-executing code
148 |                     AppLogger.healthKit.debug("Saved sample", metadata: [
149 |                         "sampleType": "\(sample.sampleType)",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataExport/ExportConfiguration.swift:17:23: warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | /// What data should be exported
 8 | public enum HealthDataToExportType : String {
   |             `- note: consider making enum 'HealthDataToExportType' conform to the 'Sendable' protocol
 9 |     /// all that is accessible
10 |     case ALL                    = "All"
   :
15 |
16 |     /// returns all values of this enumeration
17 |     public static let allValues = [ALL, ADDED_BY_THIS_APP, GENERATED_BY_THIS_APP];
   |                       |- warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'allValues' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[28/33] Compiling HealthDataGenerator ExportConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/Core/HealthDataGenerator.swift:147:21: warning: mutation of captured var 'savedCount' in concurrently-executing code
145 |                     ])
146 |                 } else {
147 |                     savedCount += 1
    |                     `- warning: mutation of captured var 'savedCount' in concurrently-executing code
148 |                     AppLogger.healthKit.debug("Saved sample", metadata: [
149 |                         "sampleType": "\(sample.sampleType)",
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataExport/ExportConfiguration.swift:17:23: warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
 6 |
 7 | /// What data should be exported
 8 | public enum HealthDataToExportType : String {
   |             `- note: consider making enum 'HealthDataToExportType' conform to the 'Sendable' protocol
 9 |     /// all that is accessible
10 |     case ALL                    = "All"
   :
15 |
16 |     /// returns all values of this enumeration
17 |     public static let allValues = [ALL, ADDED_BY_THIS_APP, GENERATED_BY_THIS_APP];
   |                       |- warning: static property 'allValues' is not concurrency-safe because non-'Sendable' type '[HealthDataToExportType]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'allValues' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | }
19 |
[29/33] Compiling HealthDataGenerator AppLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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
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
157 |     let label: String
158 |     let fileHandle: FileHandle
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 |     ///
144 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
146 |
147 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
254 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
255 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
257 |         self.log(
258 |             level: event.level,
[30/33] Compiling HealthDataGenerator DateExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/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
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
157 |     let label: String
158 |     let fileHandle: FileHandle
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 |     ///
144 |     /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 |     func log(event: LogEvent)
    |          `- note: requirement 'log(event:)' declared here
146 |
147 |     /// Please do _not_ implement this method when you create a `LogHandler` implementation.
    :
254 |     ///   Implement ``log(event:)`` in your ``LogHandler`` instead.
255 |     @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 |     public func log(event: LogEvent) {
    |                 `- note: 'log(event:)' declared here
257 |         self.log(
258 |             level: event.level,
[31/33] Compiling HealthDataGenerator SampleDataGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleDataGenerator.swift:382:17: warning: initialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it
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
383 |
384 |             // Each sleep period has light sleep, some deep sleep, and REM
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:17: warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                 |- warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 84 |             }
 85 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:26: warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
    :
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                          `- warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 84 |             }
 85 |         } else {
[32/33] Compiling HealthDataGenerator SampleGenerationConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleDataGenerator.swift:382:17: warning: initialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it
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
383 |
384 |             // Each sleep period has light sleep, some deep sleep, and REM
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:17: warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                 |- warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 84 |             }
 85 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:26: warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
    :
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                          `- warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 84 |             }
 85 |         } else {
[33/33] Compiling HealthDataGenerator HealthDataProfile.swift
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataGeneration/SampleDataGenerator.swift:382:17: warning: initialization of immutable value 'periodEnd' was never used; consider replacing with assignment to '_' or removing it
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
383 |
384 |             // Each sleep period has light sleep, some deep sleep, and REM
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:17: warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                 |- warning: capture of 'callback' with non-sendable type '(HealthDataProfileMetaData) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 84 |             }
 85 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/HealthDataGenerator/DataImport/HealthDataProfile.swift:83:26: warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 20 |
 21 | /// A health data Profile - can be used to read data from the profile and import the profile into the health store.
 22 | open class HealthDataProfile : CustomStringConvertible {
    |            `- note: class 'HealthDataProfile' does not conform to the 'Sendable' protocol
 23 |
 24 |     private let healthStore: HKHealthStore
    :
 81 |         if asynchronous {
 82 |             fileReadQueue.addOperation(){
 83 |                 callback(self.loadMetaData())
    |                          `- warning: capture of 'self' with non-sendable type 'HealthDataProfile' in a '@Sendable' closure
 84 |             }
 85 |         } else {
Build complete! (9.09s)
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:)'
 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:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 7 |     name: "HealthDataGenerator",
 8 |     platforms: [
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (1.04s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (1.56s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
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:)'
 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:)'
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 7 |     name: "HealthDataGenerator",
 8 |     platforms: [
Done.