The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of OMHModels, reference 0.1.0 (083cbe), with Swift 6.0 for Linux on 3 Nov 2024 17:57:32 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/OMHModels.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/StanfordBDHG/OMHModels
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 083cbed Update README.md
Cloned https://github.com/StanfordBDHG/OMHModels.git
Revision (git rev-parse @):
083cbedd03c9f6ed34507d6366228f12d4c98f0b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordBDHG/OMHModels.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/StanfordBDHG/OMHModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/51] Emitting module OMHModels
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[4/57] Compiling OMHModels Schema.swift
[5/57] Compiling OMHModels SchemaId.swift
[6/57] Compiling OMHModels SchemaNamespace.swift
[7/57] Compiling OMHModels SpecimenSource.swift
[8/57] Compiling OMHModels StepCount.swift
[9/57] Compiling OMHModels StepCountUnit.swift
[10/57] Compiling OMHModels SupplementalOxygenFlowRateUnit.swift
[11/57] Compiling OMHModels BodyHeight.swift
[12/57] Compiling OMHModels BodyLocation.swift
[13/57] Compiling OMHModels BodyMassIndex.swift
[14/57] Compiling OMHModels BodyMassIndexUnit.swift
[15/57] Compiling OMHModels BodyPosture.swift
[16/57] Compiling OMHModels BodyTemperature.swift
[17/57] Compiling OMHModels BodyWeight.swift
[18/57] Compiling OMHModels MassUnit.swift
[19/57] Compiling OMHModels Modality.swift
[20/57] Compiling OMHModels OxygenSaturation.swift
[21/57] Compiling OMHModels OxygenSaturationUnit.swift
[22/57] Compiling OMHModels PartOfDay.swift
[23/57] Compiling OMHModels RespiratoryRate.swift
[24/57] Compiling OMHModels RespiratoryRateUnit.swift
[25/57] Compiling OMHModels TimeUnit.swift
[26/57] Compiling OMHModels TimeWindow.swift
[27/57] Compiling OMHModels TotalSleepTime.swift
[28/57] Compiling OMHModels TypedUnitValue.swift
[29/57] Compiling OMHModels TypedUnitValueRange.swift
[30/57] Compiling OMHModels UnitProtocol.swift
[31/57] Compiling OMHModels FrequencyUnitValue.swift
[32/57] Compiling OMHModels Header.swift
[33/57] Compiling OMHModels HealthKitQuantitySample.swift
[34/57] Compiling OMHModels HealthKitUnit.swift
[35/57] Compiling OMHModels HeartRate.swift
[36/57] Compiling OMHModels HeartRateUnit.swift
[37/57] Compiling OMHModels LengthUnit.swift
[38/57] Compiling OMHModels TemperatureUnit.swift
[39/57] Compiling OMHModels TemporalRelationshipToMeal.swift
[40/57] Compiling OMHModels TemporalRelationshipToPhysicalActivity.swift
[41/57] Compiling OMHModels TemporalRelationshipToSleep.swift
[42/57] Compiling OMHModels TimeFrame.swift
[43/57] Compiling OMHModels TimeInterval.swift
[44/57] Compiling OMHModels DataPoint.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[45/57] Compiling OMHModels DateTime.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[46/57] Compiling OMHModels DescriptiveStatistic.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[47/57] Compiling OMHModels DescriptiveStatisticDenominator.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[48/57] Compiling OMHModels DurationUnitValue.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[49/57] Compiling OMHModels DurationUnitValueRange.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[50/57] Compiling OMHModels ExternalDataSheets.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 |     public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 |     private static let formatter: ISO8601DateFormatter = {
   |                        |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |         let formatter = ISO8601DateFormatter()
18 |         return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
   |            `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
 2 |     open var timeZone: TimeZone! { get set }
 3 |     open var formatOptions: ISO8601DateFormatter.Options { get set }
[51/57] Compiling OMHModels AcquisitionProvenance.swift
[52/57] Compiling OMHModels BloodGlucose.swift
[53/57] Compiling OMHModels BloodGlucoseUnit.swift
[54/57] Compiling OMHModels BloodPressure.swift
[55/57] Compiling OMHModels BloodPressureUnit.swift
[56/57] Compiling OMHModels BodyFatPercentage.swift
[57/57] Compiling OMHModels BodyFatPercentageUnit.swift
Build complete! (12.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OMHModels",
  "name" : "OMHModels",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "OMHModels",
      "targets" : [
        "OMHModels"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OMHModelsTests",
      "module_type" : "SwiftTarget",
      "name" : "OMHModelsTests",
      "path" : "Tests/OMHModelsTests",
      "sources" : [
        "HeaderTests.swift",
        "OMHModelsTests.swift",
        "TimeFrameTests.swift",
        "TimeIntervalTests.swift",
        "TimeWindowTests.swift",
        "TypedUnitValueRangeTests.swift",
        "TypedUnitValueTests.swift"
      ],
      "target_dependencies" : [
        "OMHModels"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OMHModels",
      "module_type" : "SwiftTarget",
      "name" : "OMHModels",
      "path" : "Sources/OMHModels",
      "product_memberships" : [
        "OMHModels"
      ],
      "sources" : [
        "AcquisitionProvenance.swift",
        "BloodGlucose.swift",
        "BloodGlucoseUnit.swift",
        "BloodPressure.swift",
        "BloodPressureUnit.swift",
        "BodyFatPercentage.swift",
        "BodyFatPercentageUnit.swift",
        "BodyHeight.swift",
        "BodyLocation.swift",
        "BodyMassIndex.swift",
        "BodyMassIndexUnit.swift",
        "BodyPosture.swift",
        "BodyTemperature.swift",
        "BodyWeight.swift",
        "DataPoint.swift",
        "DateTime.swift",
        "DescriptiveStatistic.swift",
        "DescriptiveStatisticDenominator.swift",
        "DurationUnitValue.swift",
        "DurationUnitValueRange.swift",
        "ExternalDataSheets.swift",
        "FrequencyUnitValue.swift",
        "Header.swift",
        "HealthKitQuantitySample.swift",
        "HealthKitUnit.swift",
        "HeartRate.swift",
        "HeartRateUnit.swift",
        "LengthUnit.swift",
        "MassUnit.swift",
        "Modality.swift",
        "OxygenSaturation.swift",
        "OxygenSaturationUnit.swift",
        "PartOfDay.swift",
        "RespiratoryRate.swift",
        "RespiratoryRateUnit.swift",
        "Schema.swift",
        "SchemaId.swift",
        "SchemaNamespace.swift",
        "SpecimenSource.swift",
        "StepCount.swift",
        "StepCountUnit.swift",
        "SupplementalOxygenFlowRateUnit.swift",
        "TemperatureUnit.swift",
        "TemporalRelationshipToMeal.swift",
        "TemporalRelationshipToPhysicalActivity.swift",
        "TemporalRelationshipToSleep.swift",
        "TimeFrame.swift",
        "TimeInterval.swift",
        "TimeUnit.swift",
        "TimeWindow.swift",
        "TotalSleepTime.swift",
        "TypedUnitValue.swift",
        "TypedUnitValueRange.swift",
        "UnitProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.