Build Information
Successful build of EnvironmentOverrides, reference 0.0.4 (d0b763
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 19:41:55 UTC.
Swift 6 data race errors: 7
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nalexn/EnvironmentOverrides.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nalexn/EnvironmentOverrides
* tag 0.0.4 -> FETCH_HEAD
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 0.0.4
========================================
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": "environmentoverrides",
"name": "EnvironmentOverrides",
"url": "https://github.com/nalexn/EnvironmentOverrides.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EnvironmentOverrides",
"dependencies": [
]
}
]
}
Fetching https://github.com/nalexn/EnvironmentOverrides.git
[1/221] Fetching environmentoverrides
Fetched https://github.com/nalexn/EnvironmentOverrides.git from cache (0.67s)
Creating working copy for https://github.com/nalexn/EnvironmentOverrides.git
Working copy of https://github.com/nalexn/EnvironmentOverrides.git resolved at 0.0.4 (d0b763a)
warning: '.resolve-product-dependencies': dependency 'environmentoverrides' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/nalexn/EnvironmentOverrides.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun 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--7754E27361AE5C74.txt
[3/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 nonisolated 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 nonisolated 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/GeneralHelpers.swift:10:13: warning: capture of 'toValue' with non-sendable type '(Value) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | fromValue: @escaping (T) -> Value) -> Binding<T> {
9 | return .init(get: {
10 | toValue(self.wrappedValue)
| |- warning: capture of 'toValue' with non-sendable type '(Value) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
11 | }, set: { value in
12 | self.wrappedValue = fromValue(value)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:10:21: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | fromValue: @escaping (T) -> Value) -> Binding<T> {
9 | return .init(get: {
10 | toValue(self.wrappedValue)
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | }, set: { value in
12 | self.wrappedValue = fromValue(value)
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:12:13: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | toValue(self.wrappedValue)
11 | }, set: { value in
12 | self.wrappedValue = fromValue(value)
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | })
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:12:33: warning: capture of 'fromValue' with non-sendable type '(T) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 | toValue(self.wrappedValue)
11 | }, set: { value in
12 | self.wrappedValue = fromValue(value)
| |- warning: capture of 'fromValue' with non-sendable type '(T) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
13 | })
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:18:13: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | func onChange(_ perform: @escaping (Value) -> Void) -> Binding<Value> {
17 | return .init(get: {
18 | self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | }, set: { value in
20 | self.wrappedValue = value
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:20:13: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | self.wrappedValue
19 | }, set: { value in
20 | self.wrappedValue = value
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | perform(value)
22 | })
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/GeneralHelpers.swift:21:13: warning: capture of 'perform' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | }, set: { value in
20 | self.wrappedValue = value
21 | perform(value)
| |- warning: capture of 'perform' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 | })
23 | }
[4/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 nonisolated 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 nonisolated 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()
[5/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 nonisolated 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 nonisolated 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()
[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 nonisolated 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 nonisolated 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/EnvironmentOverridesView.swift:160:26: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | init(wrappedValue: Value) {
159 | var value = wrappedValue
160 | self.init(get: { value }, set: { value = $0 })
| `- warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:160:26: warning: reference to captured var 'value' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | init(wrappedValue: Value) {
159 | var value = wrappedValue
160 | self.init(get: { value }, set: { value = $0 })
| `- warning: reference to captured var 'value' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | }
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:160:42: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | init(wrappedValue: Value) {
159 | var value = wrappedValue
160 | self.init(get: { value }, set: { value = $0 })
| `- warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/EnvironmentOverrides/EnvironmentOverridesView.swift:160:42: warning: mutation of captured var 'value' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | init(wrappedValue: Value) {
159 | var value = wrappedValue
160 | self.init(get: { value }, set: { value = $0 })
| `- warning: mutation of captured var 'value' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | }
162 | }
[7/8] Compiling EnvironmentOverrides BaseView.swift
[8/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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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! (15.98s)
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.