Build Information
Failed to build StateTree, reference v0.1.1 (d35898
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 02:24:49 UTC.
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 -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
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[307/322] Compiling StateTree Runtime.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[308/322] Compiling StateTree ScopeStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[309/322] Compiling StateTree StateStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[310/322] Compiling StateTree TreeStateRecord+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[311/322] Compiling StateTree ValueDependencyTracker.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[312/322] Compiling StateTree AnyScope.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Models/RouteChanges.swift:23:14: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
1 | // MARK: - TreeChanges
2 |
3 | struct TreeChanges: TreeState {
| `- note: consider making struct 'TreeChanges' conform to the 'Sendable' protocol
4 |
5 | // MARK: Lifecycle
:
21 | // MARK: Internal
22 |
23 | static let none = TreeChanges()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'TreeChanges' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
24 |
25 | let addedScopes: [NodeID]
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:183:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
181 | }
182 |
183 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
184 | state.activeIntent
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:23:10: warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
21 | ) {
22 | self.treeID = treeID
23 | self.dependencies = dependencies
| `- warning: main actor-isolated property 'dependencies' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
24 | self.configuration = configuration
25 | }
:
46 | private let state: StateStorage = .init()
47 | private let scopes: ScopeStorage = .init()
48 | private let dependencies: DependencyValues
| `- note: mutation of this property is only permitted within the actor
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:24:10: warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
22 | self.treeID = treeID
23 | self.dependencies = dependencies
24 | self.configuration = configuration
| `- warning: main actor-isolated property 'configuration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
:
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: mutation of this property is only permitted within the actor
43 |
44 | // MARK: Private
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:32:5: warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated var updateEmitter: some Emitter<[TreeEvent], Never> {
32 | updateSubject
| `- warning: main actor-isolated property 'updateSubject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | .merge(behaviorTracker.behaviorEvents.map { [.behavior(event: $0)] })
34 | }
:
48 | private let dependencies: DependencyValues
49 | private let didStabilizeSubject = PublishSubject<Void, Never>()
50 | private let updateSubject = PublishSubject<[TreeEvent], Never>()
| `- note: property declared here
51 | private var transactionCount: Int = 0
52 | private var updates: TreeChanges = .none
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:135:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
133 |
134 | public nonisolated var behaviorEvents: some Emitter<BehaviorEvent, Never> {
135 | configuration.behaviorTracker.behaviorEvents
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/Runtime.swift:180:5: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | // MARK: Internal
41 |
42 | let configuration: RuntimeConfiguration
| `- note: property declared here
43 |
44 | // MARK: Private
:
178 |
179 | nonisolated var behaviorTracker: BehaviorTracker {
180 | configuration.behaviorTracker
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
181 | }
182 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/StateStorage.swift:28:7: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | }
27 |
28 | var activeIntent: ActiveIntent<NodeID>? {
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | state.activeIntent
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:42:39: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 | mutating func popIntentStep() {
41 | if var activeIntent {
42 | let (_, isValid) = activeIntent.popStep()
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
43 | if isValid {
44 | assert(activeIntent.isValid)
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:44:29: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
42 | let (_, isValid) = activeIntent.popStep()
43 | if isValid {
44 | assert(activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:47:30: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
45 | self.activeIntent = activeIntent
46 | } else {
47 | assert(!activeIntent.isValid)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | self.activeIntent = nil
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:54:19: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 |
53 | mutating func recordIntentNodeDependency(_ nodeID: NodeID) {
54 | activeIntent?.recordConsumer(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:59:23: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | mutating func register(intent: Intent) throws {
58 | if let root {
59 | activeIntent = .init(intent: intent, from: root)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | } else {
61 | throw RootNodeMissingError()
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Runtime/TreeStateRecord+Ext.swift:68:20: warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | if
67 | let activeIntent,
68 | activeIntent.consumerIDs.contains(nodeID)
| `- warning: type 'NodeID' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | {
70 | self.activeIntent = nil
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:11:15: note: consider making struct 'NodeID' conform to the 'Sendable' protocol
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:39:15: warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
| |- warning: main actor-isolated instance method 'own' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'own' to make this instance method not isolated to the actor
40 | public func canOwn() -> Bool { underlying.canOwn() }
41 |
:
51 | // MARK: StateSyncableScope, BehaviorScoping
52 |
53 | extension AnyScope: StateSyncableScope, BehaviorScoping {
| `- note: add '@preconcurrency' to the 'BehaviorScoping' conformance to defer isolation checking to run time
54 |
55 | // MARK: Public
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:8:8: note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
6 |
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
| `- note: mark the protocol requirement 'own' 'async' to allow actor-isolated conformances
9 | func canOwn() -> Bool
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:40:15: warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 |
39 | public func own(_ disposable: some Disposable) { underlying.own(disposable) }
40 | public func canOwn() -> Bool { underlying.canOwn() }
| |- warning: main actor-isolated instance method 'canOwn()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'canOwn()' to make this instance method not isolated to the actor
41 |
42 | // MARK: Internal
/Users/admin/builder/spi-builder-workspace/Sources/Behavior/Scoping/BehaviorScoping.swift:9:8: note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
7 | public protocol BehaviorScoping {
8 | func own(_ disposable: some Disposable)
9 | func canOwn() -> Bool
| `- note: mark the protocol requirement 'canOwn()' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:17:10: warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
15 |
16 | nonisolated init(scope: some ScopeTypeInternal<some Node>) {
17 | self.nid = scope.nid
| `- warning: main actor-isolated property 'nid' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
18 | self.depth = scope.depth
19 | self.underlying = scope
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: mutation of this property is only permitted within the actor
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:19:10: warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
17 | self.nid = scope.nid
18 | self.depth = scope.depth
19 | self.underlying = scope
| `- warning: main actor-isolated property 'underlying' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
20 | self.getNodeFunc = {
21 | scope.node
:
42 | // MARK: Internal
43 |
44 | let underlying: any ScopeTypeInternal
| `- note: mutation of this property is only permitted within the actor
45 |
46 | let nid: NodeID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:9: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:32:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 |
31 | public nonisolated static func == (lhs: AnyScope, rhs: AnyScope) -> Bool {
32 | lhs.nid == rhs.nid
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | }
34 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/System/Scope/AnyScope.swift:36:20: warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | public nonisolated func hash(into hasher: inout Hasher) {
36 | hasher.combine(nid)
| `- warning: main actor-isolated property 'nid' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
:
44 | let underlying: any ScopeTypeInternal
45 |
46 | let nid: NodeID
| `- note: property declared here
47 | let depth: Int
48 | let getNodeFunc: @TreeActor () -> any Node
[313/322] Compiling StateTree Export.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[314/322] Compiling StateTree FieldID.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[315/322] Compiling StateTree FieldRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[316/322] Compiling StateTree FieldType.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[317/322] Compiling StateTree LSID.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[318/322] Compiling StateTree NodeID.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[319/322] Compiling StateTree NodeRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[320/322] Compiling StateTree RouteRecord.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[321/322] Compiling StateTree RouteSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
[322/322] Compiling StateTree TreeState.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:89:14: warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
87 |
88 | /// A custom invalid `NodeID` which should never be present in serialised output.
89 | static let invalid = NodeID(uuid: .fifteens)
| |- warning: static property 'invalid' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'invalid' 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
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:92:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
90 |
91 | /// A custom `NodeID` indicating a reference to the StateTree system itself.
92 | static let system = NodeID(uuid: .zeros)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
93 |
94 | /// A custom `NodeID` identifying the root node.
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:95:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
9 | ///
10 | /// String serialised `NodeIDs` are formatted as `<UUID>`
11 | public struct NodeID: TreeState, LosslessStringConvertible, Comparable {
| `- note: consider making struct 'NodeID' conform to the 'Sendable' protocol
12 |
13 | // MARK: Lifecycle
:
93 |
94 | /// A custom `NodeID` identifying the root node.
95 | static let root = NodeID(uuid: .ones)
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'NodeID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' 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
96 |
97 | let uuid: UUID
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/NodeID.swift:103:7: warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
101 | // MARK: - NodeIDDecodingError
102 |
103 | class NodeIDDecodingError: Error { }
| `- warning: non-final class 'NodeIDDecodingError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
104 |
105 | extension UUID {
/Users/admin/builder/spi-builder-workspace/Sources/StateTree/Foundation/State/RouteSource.swift:50:14: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
25 | // MARK: - RouteSource
26 |
27 | public struct RouteSource: TreeState, CustomStringConvertible {
| `- note: consider making struct 'RouteSource' conform to the 'Sendable' protocol
28 |
29 | // MARK: Public
:
48 | // MARK: Internal
49 |
50 | static let system: RouteSource = .init(
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'RouteSource' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' 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
51 | fieldID: .system,
52 | identity: nil,
BUILD FAILURE 6.0 macosSpm