This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 EnvironmentOverrides with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nalexn/EnvironmentOverrides.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nalexn/EnvironmentOverrides
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d0b763a Merge branch '0.0.4'
Cloned https://github.com/nalexn/EnvironmentOverrides.git
Revision (git rev-parse @):
d0b763a678d254e51c74c48e83119bd063250ba3
SUCCESS checkout https://github.com/nalexn/EnvironmentOverrides.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/nalexn/EnvironmentOverrides.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling EnvironmentOverrides SettingsView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/SettingsElements.swift:81:20: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 79 | extension SettingsView {
 80 |     struct ControlWidth: PreferenceKey {
 81 |         static var defaultValue: CGFloat = 300
    |                    |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'defaultValue' 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
 82 |         static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) {
 83 |             let next = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/SettingsView.swift:97:17: warning: capture of 'self' with non-sendable type 'SettingsView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 12 | }
 13 |
 14 | struct SettingsView: View {
    |        `- note: consider making struct 'SettingsView' conform to the 'Sendable' protocol
 15 |
 16 |     private let params: Params
    :
 95 |                     Haptic.errorFeedback()
 96 |                 }
 97 |                 self.isHidden = false
    |                 `- warning: capture of 'self' with non-sendable type 'SettingsView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |             }
 99 |         }, label: { Text("Take Screenshot") })
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/SettingsView.swift:97:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 95 |                     Haptic.errorFeedback()
 96 |                 }
 97 |                 self.isHidden = false
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 98 |             }
 99 |         }, label: { Text("Take Screenshot") })
[4/8] Compiling EnvironmentOverrides BaseView.swift
[5/8] Compiling EnvironmentOverrides GeneralHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:65:16: warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 63 | extension EnvironmentValues {
 64 |
 65 |     static var supportedLocales: [Locale] = {
    |                |- warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedLocales' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedLocales' 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
 66 |         let bundle = Bundle.main
 67 |         return bundle.localizations.map { Locale(identifier: $0) }
[6/8] Compiling EnvironmentOverrides EnvironmentOverridesView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:11:27: warning: static property 'locale' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
  9 |         }
 10 |
 11 |         public static let locale = Diff(rawValue: 1 << 0)
    |                           |- warning: static property 'locale' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'locale' 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
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:12:27: warning: static property 'colorScheme' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 10 |
 11 |         public static let locale = Diff(rawValue: 1 << 0)
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
    |                           |- warning: static property 'colorScheme' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'colorScheme' 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
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:13:27: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 11 |         public static let locale = Diff(rawValue: 1 << 0)
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
    |                           |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'sizeCategory' 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
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:14:27: warning: static property 'layoutDirection' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
    |                           |- warning: static property 'layoutDirection' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'layoutDirection' 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
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
 16 |     }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:15:27: warning: static property 'accessibilityEnabled' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
    |                           |- warning: static property 'accessibilityEnabled' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'accessibilityEnabled' 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
 16 |     }
 17 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:65:16: warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 63 | extension EnvironmentValues {
 64 |
 65 |     static var supportedLocales: [Locale] = {
    |                |- warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedLocales' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedLocales' 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
 66 |         let bundle = Bundle.main
 67 |         return bundle.localizations.map { Locale(identifier: $0) }
[7/8] Emitting module EnvironmentOverrides
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:11:27: warning: static property 'locale' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
  9 |         }
 10 |
 11 |         public static let locale = Diff(rawValue: 1 << 0)
    |                           |- warning: static property 'locale' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'locale' 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
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:12:27: warning: static property 'colorScheme' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 10 |
 11 |         public static let locale = Diff(rawValue: 1 << 0)
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
    |                           |- warning: static property 'colorScheme' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'colorScheme' 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
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:13:27: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 11 |         public static let locale = Diff(rawValue: 1 << 0)
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
    |                           |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'sizeCategory' 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
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:14:27: warning: static property 'layoutDirection' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 12 |         public static let colorScheme = Diff(rawValue: 1 << 1)
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
    |                           |- warning: static property 'layoutDirection' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'layoutDirection' 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
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
 16 |     }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:15:27: warning: static property 'accessibilityEnabled' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
  2 |
  3 | public extension EnvironmentValues {
  4 |     struct Diff: OptionSet {
    |            `- note: consider making struct 'Diff' conform to the 'Sendable' protocol
  5 |         public let rawValue: Int
  6 |
    :
 13 |         public static let sizeCategory = Diff(rawValue: 1 << 2)
 14 |         public static let layoutDirection = Diff(rawValue: 1 << 3)
 15 |         public static let accessibilityEnabled = Diff(rawValue: 1 << 4)
    |                           |- warning: static property 'accessibilityEnabled' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues.Diff' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'accessibilityEnabled' 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
 16 |     }
 17 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:65:16: warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 63 | extension EnvironmentValues {
 64 |
 65 |     static var supportedLocales: [Locale] = {
    |                |- warning: static property 'supportedLocales' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supportedLocales' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'supportedLocales' 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
 66 |         let bundle = Bundle.main
 67 |         return bundle.localizations.map { Locale(identifier: $0) }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/SettingsElements.swift:81:20: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 79 | extension SettingsView {
 80 |     struct ControlWidth: PreferenceKey {
 81 |         static var defaultValue: CGFloat = 300
    |                    |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'defaultValue' 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
 82 |         static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) {
 83 |             let next = nextValue()
[8/8] Compiling EnvironmentOverrides SettingsElements.swift
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/SettingsElements.swift:81:20: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 79 | extension SettingsView {
 80 |     struct ControlWidth: PreferenceKey {
 81 |         static var defaultValue: CGFloat = 300
    |                    |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'defaultValue' 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
 82 |         static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) {
 83 |             let next = nextValue()
Build complete! (33.99s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "EnvironmentOverrides",
  "name" : "EnvironmentOverrides",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "EnvironmentOverrides",
      "targets" : [
        "EnvironmentOverrides"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EnvironmentOverrides",
      "module_type" : "SwiftTarget",
      "name" : "EnvironmentOverrides",
      "path" : "Sources/EnvironmentOverrides",
      "product_memberships" : [
        "EnvironmentOverrides"
      ],
      "sources" : [
        "BaseView.swift",
        "EnvironmentOverridesView.swift",
        "GeneralHelpers.swift",
        "SettingsElements.swift",
        "SettingsView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.