Build Information
Successful build of AutomaticSettings, reference 1.2.3 (2b8cf3
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 07:09:23 UTC.
Swift 6 data race errors: 2
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/krzysztofzablocki/AutomaticSettings.git
Reference: 1.2.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/krzysztofzablocki/AutomaticSettings
* tag 1.2.3 -> FETCH_HEAD
HEAD is now at 2b8cf3c Update Package.swift
Cloned https://github.com/krzysztofzablocki/AutomaticSettings.git
Revision (git rev-parse @):
2b8cf3cb09aba49a1d3c2f8049f2b364b11858b3
SUCCESS checkout https://github.com/krzysztofzablocki/AutomaticSettings.git at 1.2.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/krzysztofzablocki/AutomaticSettings.git
https://github.com/krzysztofzablocki/AutomaticSettings.git
{
"dependencies" : [
],
"manifest_display_name" : "AutomaticSettings",
"name" : "AutomaticSettings",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "AutomaticSettings",
"targets" : [
"AutomaticSettings"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AutomaticSettingsTests",
"module_type" : "SwiftTarget",
"name" : "AutomaticSettingsTests",
"path" : "Tests/AutomaticSettingsTests",
"sources" : [
"AutomaticSettingsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"AutomaticSettings"
],
"type" : "test"
},
{
"c99name" : "AutomaticSettings",
"module_type" : "SwiftTarget",
"name" : "AutomaticSettings",
"path" : "Sources/AutomaticSettings",
"product_memberships" : [
"AutomaticSettings"
],
"sources" : [
"AutomaticSettingsProtocols.swift",
"AutomaticSettingsViewDSL.swift",
"AutomaticSettingsViewModel.swift",
"Foundation+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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/7] Compiling AutomaticSettings Foundation+Extensions.swift
[4/7] Compiling AutomaticSettings AutomaticSettingsViewDSL.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:144:13: warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | Text(name.automaticSettingsTitleCase)
143 | .fixedSize()
144 | Spacer()
| `- warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | TextField(
146 | name.automaticSettingsTitleCase,
SwiftUICore.Spacer.init:2:46: note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
1 | struct Spacer {
2 | @MainActor @inlinable @preconcurrency public init(minLength: CGFloat? = nil)}
| `- note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:167:13: warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | Text(name.automaticSettingsTitleCase)
166 | .fixedSize()
167 | Spacer()
| `- warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | TextField(
169 | name.automaticSettingsTitleCase,
SwiftUICore.Spacer.init:2:46: note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
1 | struct Spacer {
2 | @MainActor @inlinable @preconcurrency public init(minLength: CGFloat? = nil)}
| `- note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:171:28: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
169 | name.automaticSettingsTitleCase,
170 | text: Binding(get: {
171 | return self.viewModel.current[keyPath: keyPath] ?? ""
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
172 | }, set: {
173 | self.viewModel.change(
AutomaticSettings.AutomaticSettingsViewDSL.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AutomaticSettingsViewDSL {
2 | Self : AutomaticSettings.AutomaticSettingsViewDSL}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:171:60: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, String?>' in a '@Sendable' closure
169 | name.automaticSettingsTitleCase,
170 | text: Binding(get: {
171 | return self.viewModel.current[keyPath: keyPath] ?? ""
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, String?>' in a '@Sendable' closure
172 | }, set: {
173 | self.viewModel.change(
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:173:21: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
171 | return self.viewModel.current[keyPath: keyPath] ?? ""
172 | }, set: {
173 | self.viewModel.change(
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
174 | keyPath: keyPath,
175 | requiresRestart: requiresRestart,
AutomaticSettings.AutomaticSettingsViewDSL.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AutomaticSettingsViewDSL {
2 | Self : AutomaticSettings.AutomaticSettingsViewDSL}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:174:34: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, String?>' in a '@Sendable' closure
172 | }, set: {
173 | self.viewModel.change(
174 | keyPath: keyPath,
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, String?>' in a '@Sendable' closure
175 | requiresRestart: requiresRestart,
176 | uniqueIdentifier: uniqueIdentifier,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:178:37: warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
176 | uniqueIdentifier: uniqueIdentifier,
177 | to: $0.automaticSettingsNilIfEmpty,
178 | sideEffect: sideEffect
| |- warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | )
180 | })
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:195:13: warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | Text(name.automaticSettingsTitleCase)
194 | .fixedSize()
195 | Spacer()
| `- warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | TextField(
197 | name.automaticSettingsTitleCase,
SwiftUICore.Spacer.init:2:46: note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
1 | struct Spacer {
2 | @MainActor @inlinable @preconcurrency public init(minLength: CGFloat? = nil)}
| `- note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:199:28: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
197 | name.automaticSettingsTitleCase,
198 | text: Binding(get: {
199 | return self.viewModel.current[keyPath: keyPath].map { "\($0)" } ?? ""
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
200 | }, set: {
201 | self.viewModel.change(
AutomaticSettings.AutomaticSettingsViewDSL.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AutomaticSettingsViewDSL {
2 | Self : AutomaticSettings.AutomaticSettingsViewDSL}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:199:60: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, Number?>' in a '@Sendable' closure
197 | name.automaticSettingsTitleCase,
198 | text: Binding(get: {
199 | return self.viewModel.current[keyPath: keyPath].map { "\($0)" } ?? ""
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, Number?>' in a '@Sendable' closure
200 | }, set: {
201 | self.viewModel.change(
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:201:21: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
199 | return self.viewModel.current[keyPath: keyPath].map { "\($0)" } ?? ""
200 | }, set: {
201 | self.viewModel.change(
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
202 | keyPath: keyPath,
203 | requiresRestart: requiresRestart,
AutomaticSettings.AutomaticSettingsViewDSL.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AutomaticSettingsViewDSL {
2 | Self : AutomaticSettings.AutomaticSettingsViewDSL}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:202:34: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, Number?>' in a '@Sendable' closure
200 | }, set: {
201 | self.viewModel.change(
202 | keyPath: keyPath,
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Self.Settings, Number?>' in a '@Sendable' closure
203 | requiresRestart: requiresRestart,
204 | uniqueIdentifier: uniqueIdentifier,
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:206:37: warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
204 | uniqueIdentifier: uniqueIdentifier,
205 | to: $0.automaticSettingsNilIfEmpty.flatMap { Number($0) },
206 | sideEffect: sideEffect
| |- warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | )
208 | })
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewDSL.swift:222:13: warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
220 | Text(label)
221 | .font(.body)
222 | Spacer()
| `- warning: call to main actor-isolated initializer 'init(minLength:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
223 | Text(value)
224 | .foregroundColor(.gray)
SwiftUICore.Spacer.init:2:46: note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
1 | struct Spacer {
2 | @MainActor @inlinable @preconcurrency public init(minLength: CGFloat? = nil)}
| `- note: calls to initializer 'init(minLength:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:8:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
6 | public var current: Settings
7 |
8 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
9 | public private(set) var externalData: ExternalData
10 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[5/7] Compiling AutomaticSettings AutomaticSettingsViewModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:8:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
6 | public var current: Settings
7 |
8 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
9 | public private(set) var externalData: ExternalData
10 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:19:14: warning: main actor-isolated property 'externalData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
7 |
8 | @ObservedObject
9 | public private(set) var externalData: ExternalData
| `- note: mutation of this property is only permitted within the actor
10 |
11 | private let initial: Settings
:
17 |
18 | public init(settings: Settings, externalData: ExternalData, save: @escaping (Settings) -> Void, dismiss: @escaping () -> Void) {
19 | self.externalData = externalData
| `- warning: main actor-isolated property 'externalData' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | current = settings
21 | initial = settings
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:44:20: warning: capture of 'self' with non-sendable type 'AutomaticSettingsViewModel<Settings, ExternalData>' in a '@Sendable' closure
2 | import SwiftUI
3 |
4 | public class AutomaticSettingsViewModel<Settings: Equatable, ExternalData: ObservableObject>: ObservableObject {
| `- note: generic class 'AutomaticSettingsViewModel' does not conform to the 'Sendable' protocol
5 | @Published
6 | public var current: Settings
:
42 | public func binding<Type>(keyPath: WritableKeyPath<Settings, Type>, requiresRestart: Bool, uniqueIdentifier: String, sideEffect: (() -> Void)? = nil) -> Binding<Type> where Type: Equatable {
43 | return Binding(get: {
44 | return self.current[keyPath: keyPath]
| `- warning: capture of 'self' with non-sendable type 'AutomaticSettingsViewModel<Settings, ExternalData>' in a '@Sendable' closure
45 | }, set: {
46 | self.change(keyPath: keyPath, requiresRestart: requiresRestart, uniqueIdentifier: uniqueIdentifier, to: $0, sideEffect: sideEffect)
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:44:42: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Settings, Type>' in a '@Sendable' closure
42 | public func binding<Type>(keyPath: WritableKeyPath<Settings, Type>, requiresRestart: Bool, uniqueIdentifier: String, sideEffect: (() -> Void)? = nil) -> Binding<Type> where Type: Equatable {
43 | return Binding(get: {
44 | return self.current[keyPath: keyPath]
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Settings, Type>' in a '@Sendable' closure
45 | }, set: {
46 | self.change(keyPath: keyPath, requiresRestart: requiresRestart, uniqueIdentifier: uniqueIdentifier, to: $0, sideEffect: sideEffect)
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:46:13: warning: capture of 'self' with non-sendable type 'AutomaticSettingsViewModel<Settings, ExternalData>' in a '@Sendable' closure
2 | import SwiftUI
3 |
4 | public class AutomaticSettingsViewModel<Settings: Equatable, ExternalData: ObservableObject>: ObservableObject {
| `- note: generic class 'AutomaticSettingsViewModel' does not conform to the 'Sendable' protocol
5 | @Published
6 | public var current: Settings
:
44 | return self.current[keyPath: keyPath]
45 | }, set: {
46 | self.change(keyPath: keyPath, requiresRestart: requiresRestart, uniqueIdentifier: uniqueIdentifier, to: $0, sideEffect: sideEffect)
| `- warning: capture of 'self' with non-sendable type 'AutomaticSettingsViewModel<Settings, ExternalData>' in a '@Sendable' closure
47 | })
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:46:34: warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Settings, Type>' in a '@Sendable' closure
44 | return self.current[keyPath: keyPath]
45 | }, set: {
46 | self.change(keyPath: keyPath, requiresRestart: requiresRestart, uniqueIdentifier: uniqueIdentifier, to: $0, sideEffect: sideEffect)
| `- warning: capture of 'keyPath' with non-sendable type 'WritableKeyPath<Settings, Type>' in a '@Sendable' closure
47 | })
48 | }
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:46:133: warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
44 | return self.current[keyPath: keyPath]
45 | }, set: {
46 | self.change(keyPath: keyPath, requiresRestart: requiresRestart, uniqueIdentifier: uniqueIdentifier, to: $0, sideEffect: sideEffect)
| |- warning: capture of 'sideEffect' with non-sendable type '(() -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | })
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:8:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
6 | public var current: Settings
7 |
8 | @ObservedObject
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
9 | public private(set) var externalData: ExternalData
10 |
[6/7] Emitting module AutomaticSettings
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:8:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
6 | public var current: Settings
7 |
8 | @ObservedObject
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
9 | public private(set) var externalData: ExternalData
10 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AutomaticSettings/AutomaticSettingsViewModel.swift:8:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
6 | public var current: Settings
7 |
8 | @ObservedObject
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
9 | public private(set) var externalData: ExternalData
10 |
[7/7] Compiling AutomaticSettings AutomaticSettingsProtocols.swift
Build complete! (8.84s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "AutomaticSettings",
"name" : "AutomaticSettings",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "AutomaticSettings",
"targets" : [
"AutomaticSettings"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AutomaticSettingsTests",
"module_type" : "SwiftTarget",
"name" : "AutomaticSettingsTests",
"path" : "Tests/AutomaticSettingsTests",
"sources" : [
"AutomaticSettingsTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"AutomaticSettings"
],
"type" : "test"
},
{
"c99name" : "AutomaticSettings",
"module_type" : "SwiftTarget",
"name" : "AutomaticSettings",
"path" : "Sources/AutomaticSettings",
"product_memberships" : [
"AutomaticSettings"
],
"sources" : [
"AutomaticSettingsProtocols.swift",
"AutomaticSettingsViewDSL.swift",
"AutomaticSettingsViewModel.swift",
"Foundation+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.