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 Fit, reference 1.0.2 (701b55), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 21:55:43 UTC.

Swift 6 data race errors: 4

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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OlehKorchytskyi/Fit.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OlehKorchytskyi/Fit
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at 701b55b - removed unnecessary container width check; - code cleaning.
Cloned https://github.com/OlehKorchytskyi/Fit.git
Revision (git rev-parse @):
701b55b29197fe816325a567cc37c61972033796
SUCCESS checkout https://github.com/OlehKorchytskyi/Fit.git at 1.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "fit",
      "name": "Fit",
      "url": "https://github.com/OlehKorchytskyi/Fit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/OlehKorchytskyi/Fit.git
[1/61] Fetching fit
Fetched https://github.com/OlehKorchytskyi/Fit.git from cache (0.62s)
Creating working copy for https://github.com/OlehKorchytskyi/Fit.git
Working copy of https://github.com/OlehKorchytskyi/Fit.git resolved at 1.0.2 (701b55b)
warning: '.resolve-product-dependencies': dependency 'fit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/OlehKorchytskyi/Fit.git
https://github.com/OlehKorchytskyi/Fit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fit",
  "name" : "Fit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "Fit",
      "targets" : [
        "Fit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FitTests",
      "module_type" : "SwiftTarget",
      "name" : "FitTests",
      "path" : "Tests/FitTests",
      "sources" : [
        "FitTests.swift"
      ],
      "target_dependencies" : [
        "Fit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fit",
      "module_type" : "SwiftTarget",
      "name" : "Fit",
      "path" : "Sources/Fit",
      "product_memberships" : [
        "Fit"
      ],
      "sources" : [
        "Fit.swift",
        "FitLayout.swift",
        "ItemSpacing.swift",
        "LayoutCache.swift",
        "LineBreak.swift",
        "LineCache.swift",
        "LineSpacing.swift",
        "LineStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/11] Compiling Fit ItemSpacing.swift
[4/11] Compiling Fit LayoutCache.swift
[5/11] Compiling Fit LineCache.swift
[6/11] Compiling Fit Fit.swift
[7/11] Emitting module Fit
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LineBreak?' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct LineBreakKey: LayoutValueKey {
12 |     static let defaultValue: LineBreak? = nil
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LineBreak?' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
   :
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:46:23: warning: static property 'noBreak' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
44 | extension LineBreak {
45 |
46 |     public static let noBreak = LineBreak(after: false, condition: { _ in false })
   |                       |- warning: static property 'noBreak' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'noBreak' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 |     /// A demand to place the element on the next line.
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:49:23: warning: static property 'before' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
47 |
48 |     /// A demand to place the element on the next line.
49 |     public static let before = LineBreak(after: false, condition: { _ in true })
   |                       |- warning: static property 'before' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'before' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 |     /// A conditional demand to place the element on the next line.
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:59:23: warning: static property 'after' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
57 |
58 |     /// A demand to line brake after current element.
59 |     public static let after = LineBreak(after: true, condition: { _ in true })
   |                       |- warning: static property 'after' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'after' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |     /// A conditional demand to line brake after current element.
61 |     /// - Parameter condition: a required condition that needs to be met for performing a line brake.
[8/11] Compiling Fit LineBreak.swift
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:12:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LineBreak?' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | struct LineBreakKey: LayoutValueKey {
12 |     static let defaultValue: LineBreak? = nil
   |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LineBreak?' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | }
14 |
   :
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:46:23: warning: static property 'noBreak' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
44 | extension LineBreak {
45 |
46 |     public static let noBreak = LineBreak(after: false, condition: { _ in false })
   |                       |- warning: static property 'noBreak' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'noBreak' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 |     /// A demand to place the element on the next line.
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:49:23: warning: static property 'before' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
47 |
48 |     /// A demand to place the element on the next line.
49 |     public static let before = LineBreak(after: false, condition: { _ in true })
   |                       |- warning: static property 'before' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'before' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 |     /// A conditional demand to place the element on the next line.
/Users/admin/builder/spi-builder-workspace/Sources/Fit/LineBreak.swift:59:23: warning: static property 'after' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
26 | /// }
27 | /// ```
28 | public struct LineBreak {
   |               `- note: consider making struct 'LineBreak' conform to the 'Sendable' protocol
29 |
30 |     let after: Bool
   :
57 |
58 |     /// A demand to line brake after current element.
59 |     public static let after = LineBreak(after: true, condition: { _ in true })
   |                       |- warning: static property 'after' is not concurrency-safe because non-'Sendable' type 'LineBreak' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'after' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |     /// A conditional demand to line brake after current element.
61 |     /// - Parameter condition: a required condition that needs to be met for performing a line brake.
[9/11] Compiling Fit FitLayout.swift
[10/11] Compiling Fit LineStyle.swift
[11/11] Compiling Fit LineSpacing.swift
Build complete! (10.24s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/Fit/PrivacyInfo.xcprivacy
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fit",
  "name" : "Fit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "Fit",
      "targets" : [
        "Fit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FitTests",
      "module_type" : "SwiftTarget",
      "name" : "FitTests",
      "path" : "Tests/FitTests",
      "sources" : [
        "FitTests.swift"
      ],
      "target_dependencies" : [
        "Fit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fit",
      "module_type" : "SwiftTarget",
      "name" : "Fit",
      "path" : "Sources/Fit",
      "product_memberships" : [
        "Fit"
      ],
      "sources" : [
        "Fit.swift",
        "FitLayout.swift",
        "ItemSpacing.swift",
        "LayoutCache.swift",
        "LineBreak.swift",
        "LineCache.swift",
        "LineSpacing.swift",
        "LineStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.