Build Information
Successful build of Atoms, reference 0.0.2 (fa49f2
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 12:40:04 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncAtom.swift:174:67: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
172 | store.tasks[id] = Task {
173 | do {
174 | let result = try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
175 | try await callback()
176 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncAtom.swift:175:39: warning: non-sendable result type 'Root' cannot be sent from nonisolated context in call to parameter 'callback'; this is an error in the Swift 6 language mode
162 |
163 | @MainActor
164 | fileprivate func create<Root>(_ callback: @escaping () async throws -> Root, id: UUID, throwOnCancellation: Bool, taskStatus: @MainActor @escaping ( AtomValue<AsyncState<Root>>, Bool) -> Void) -> AtomValue<AsyncState<Root>> {
| `- note: consider making generic parameter 'Root' conform to the 'Sendable' protocol
165 | let atom = AtomValue<AsyncState<Root>>(.loading, id: id)
166 | let store = StoreConfig.store
:
173 | do {
174 | let result = try await StoreConfig.$store.withValue(store) {
175 | try await callback()
| `- warning: non-sendable result type 'Root' cannot be sent from nonisolated context in call to parameter 'callback'; this is an error in the Swift 6 language mode
176 | }
177 | guard !atom.overriden else {
[67/79] Compiling Atoms Utilities.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Utilities.swift:17:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | if let publisher = store.getSetPublisher(for: us.atom) {
16 | publisher.setterPublisher.debounce(for: .seconds(us.debounced), scheduler: DispatchQueue.main).sink { _ in
17 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | observedChanged(value)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
[68/79] Compiling Atoms WeakRef.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Utilities.swift:17:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | if let publisher = store.getSetPublisher(for: us.atom) {
16 | publisher.setterPublisher.debounce(for: .seconds(us.debounced), scheduler: DispatchQueue.main).sink { _ in
17 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | observedChanged(value)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
[69/79] Compiling Atoms WritableAtom.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Utilities.swift:17:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | if let publisher = store.getSetPublisher(for: us.atom) {
16 | publisher.setterPublisher.debounce(for: .seconds(us.debounced), scheduler: DispatchQueue.main).sink { _ in
17 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
18 | observedChanged(value)
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
[70/79] Compiling Atoms AsyncSequenceAtom.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:57:54: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | store.tasks[id] = Task { @MainActor in
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | for try await value in asyncSequence {
59 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:29: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:89:32: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
87 | var cancellable: AnyCancellable?
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
91 | if finishedTask {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:101:52: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
99 | return
100 | }
101 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
102 | if value.scope == id {
103 | if let publisher = store.getSetPublisher(for: value.atom), !usedIDs.contains(value.atom) {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:113:86: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
111 | store.tasks[id] = Task { @MainActor in
112 | do {
113 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:115:61: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
113 | try await StoreConfig.$store.withValue(store) {
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
116 | guard !Task.isCancelled else {
117 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:163:58: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | taskStatus(atom, false)
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:165:33: warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
149 | }
150 |
151 | fileprivate func create<Root, A: AsyncSequence>(_ asyncSequence: @escaping () -> A, id: UUID, taskStatus: @MainActor @escaping ( AtomValue<AsyncState<Root>>, Bool) -> Void) -> AtomValue<AsyncState<Root>> where Root == A.Element {
| `- note: consider making generic parameter 'Root' conform to the 'Sendable' protocol
152 | let atom = AtomValue<AsyncState<Root>>(.loading, id: id, dontCheckEqual: true)
153 | let store = StoreConfig.store
:
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
| `- warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
166 | guard !Task.isCancelled else {
167 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:73:47: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | if !didSetupGet {
72 | didSetupGet = true
73 | return StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | let value = findObservables(using: id) {
75 | return get()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:95:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | if !didSetupSet {
94 | didSetupSet = true
95 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | findObservables(using: id) {
97 | set(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:52: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:90:35: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | if finishedTask {
92 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:155:9: warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
153 | let store = StoreConfig.store
154 | Task { @MainActor in
155 | atom.getterPublisher.prefix(1).receive(on: DispatchQueue.main).sink { _ in
| |- warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'atom' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 | if store.tasks[id] == nil {
157 | Scope.$id.withValue(id, operation: {
:
188 | }
189 |
190 | return atom
| `- note: access can happen concurrently
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:164:48: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 | for try await value in sequence {
166 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:52:34: warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
50 | self.defaultValue = defaultValue
51 | self.setup = {
52 | let atom = AtomValue(defaultValue, id: id)
| |- warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'defaultValue' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | let store = StoreConfig.store
54 | store.addAtomValue(atom, for: id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:67:68: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
65 | Task { @MainActor in
66 | let store = StoreConfig.store
67 | guard let atom: AtomValue<T> = store.getAtomValue(for: id) else {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:69:13: warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
67 | var didSetupGet = false
68 | let store = StoreConfig.store
69 | cache.value = get()
| |- warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'GetSetAtom<T>.Cache' to main actor-isolated closure due to closure capture risks causing races in between main actor-isolated and nonisolated uses
70 | let getProxy: () -> T = {
71 | if !didSetupGet {
:
116 | }
117 | atomConfigurations[id] = setup
118 | }
| `- note: access can happen concurrently
119 |
120 | /// Resets the value of the `GetSetAtom` to the initial state as defined by the custom getter.
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:123:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
121 | public func reset() {
122 | Task { @MainActor in
123 | cache.value = get()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 |
[71/79] Compiling Atoms Atom.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:57:54: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | store.tasks[id] = Task { @MainActor in
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | for try await value in asyncSequence {
59 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:29: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:89:32: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
87 | var cancellable: AnyCancellable?
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
91 | if finishedTask {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:101:52: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
99 | return
100 | }
101 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
102 | if value.scope == id {
103 | if let publisher = store.getSetPublisher(for: value.atom), !usedIDs.contains(value.atom) {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:113:86: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
111 | store.tasks[id] = Task { @MainActor in
112 | do {
113 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:115:61: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
113 | try await StoreConfig.$store.withValue(store) {
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
116 | guard !Task.isCancelled else {
117 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:163:58: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | taskStatus(atom, false)
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:165:33: warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
149 | }
150 |
151 | fileprivate func create<Root, A: AsyncSequence>(_ asyncSequence: @escaping () -> A, id: UUID, taskStatus: @MainActor @escaping ( AtomValue<AsyncState<Root>>, Bool) -> Void) -> AtomValue<AsyncState<Root>> where Root == A.Element {
| `- note: consider making generic parameter 'Root' conform to the 'Sendable' protocol
152 | let atom = AtomValue<AsyncState<Root>>(.loading, id: id, dontCheckEqual: true)
153 | let store = StoreConfig.store
:
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
| `- warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
166 | guard !Task.isCancelled else {
167 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:73:47: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | if !didSetupGet {
72 | didSetupGet = true
73 | return StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | let value = findObservables(using: id) {
75 | return get()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:95:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | if !didSetupSet {
94 | didSetupSet = true
95 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | findObservables(using: id) {
97 | set(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:52: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:90:35: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | if finishedTask {
92 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:155:9: warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
153 | let store = StoreConfig.store
154 | Task { @MainActor in
155 | atom.getterPublisher.prefix(1).receive(on: DispatchQueue.main).sink { _ in
| |- warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'atom' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 | if store.tasks[id] == nil {
157 | Scope.$id.withValue(id, operation: {
:
188 | }
189 |
190 | return atom
| `- note: access can happen concurrently
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:164:48: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 | for try await value in sequence {
166 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:52:34: warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
50 | self.defaultValue = defaultValue
51 | self.setup = {
52 | let atom = AtomValue(defaultValue, id: id)
| |- warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'defaultValue' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | let store = StoreConfig.store
54 | store.addAtomValue(atom, for: id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:67:68: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
65 | Task { @MainActor in
66 | let store = StoreConfig.store
67 | guard let atom: AtomValue<T> = store.getAtomValue(for: id) else {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:69:13: warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
67 | var didSetupGet = false
68 | let store = StoreConfig.store
69 | cache.value = get()
| |- warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'GetSetAtom<T>.Cache' to main actor-isolated closure due to closure capture risks causing races in between main actor-isolated and nonisolated uses
70 | let getProxy: () -> T = {
71 | if !didSetupGet {
:
116 | }
117 | atomConfigurations[id] = setup
118 | }
| `- note: access can happen concurrently
119 |
120 | /// Resets the value of the `GetSetAtom` to the initial state as defined by the custom getter.
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:123:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
121 | public func reset() {
122 | Task { @MainActor in
123 | cache.value = get()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 |
[72/79] Compiling Atoms DerivedAtom.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:57:54: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | store.tasks[id] = Task { @MainActor in
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | for try await value in asyncSequence {
59 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:29: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:89:32: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
87 | var cancellable: AnyCancellable?
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
91 | if finishedTask {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:101:52: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
99 | return
100 | }
101 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
102 | if value.scope == id {
103 | if let publisher = store.getSetPublisher(for: value.atom), !usedIDs.contains(value.atom) {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:113:86: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
111 | store.tasks[id] = Task { @MainActor in
112 | do {
113 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:115:61: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
113 | try await StoreConfig.$store.withValue(store) {
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
116 | guard !Task.isCancelled else {
117 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:163:58: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | taskStatus(atom, false)
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:165:33: warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
149 | }
150 |
151 | fileprivate func create<Root, A: AsyncSequence>(_ asyncSequence: @escaping () -> A, id: UUID, taskStatus: @MainActor @escaping ( AtomValue<AsyncState<Root>>, Bool) -> Void) -> AtomValue<AsyncState<Root>> where Root == A.Element {
| `- note: consider making generic parameter 'Root' conform to the 'Sendable' protocol
152 | let atom = AtomValue<AsyncState<Root>>(.loading, id: id, dontCheckEqual: true)
153 | let store = StoreConfig.store
:
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
| `- warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
166 | guard !Task.isCancelled else {
167 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:73:47: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | if !didSetupGet {
72 | didSetupGet = true
73 | return StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | let value = findObservables(using: id) {
75 | return get()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:95:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | if !didSetupSet {
94 | didSetupSet = true
95 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | findObservables(using: id) {
97 | set(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:52: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:90:35: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | if finishedTask {
92 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:155:9: warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
153 | let store = StoreConfig.store
154 | Task { @MainActor in
155 | atom.getterPublisher.prefix(1).receive(on: DispatchQueue.main).sink { _ in
| |- warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'atom' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 | if store.tasks[id] == nil {
157 | Scope.$id.withValue(id, operation: {
:
188 | }
189 |
190 | return atom
| `- note: access can happen concurrently
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:164:48: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 | for try await value in sequence {
166 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:52:34: warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
50 | self.defaultValue = defaultValue
51 | self.setup = {
52 | let atom = AtomValue(defaultValue, id: id)
| |- warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'defaultValue' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | let store = StoreConfig.store
54 | store.addAtomValue(atom, for: id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:67:68: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
65 | Task { @MainActor in
66 | let store = StoreConfig.store
67 | guard let atom: AtomValue<T> = store.getAtomValue(for: id) else {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:69:13: warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
67 | var didSetupGet = false
68 | let store = StoreConfig.store
69 | cache.value = get()
| |- warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'GetSetAtom<T>.Cache' to main actor-isolated closure due to closure capture risks causing races in between main actor-isolated and nonisolated uses
70 | let getProxy: () -> T = {
71 | if !didSetupGet {
:
116 | }
117 | atomConfigurations[id] = setup
118 | }
| `- note: access can happen concurrently
119 |
120 | /// Resets the value of the `GetSetAtom` to the initial state as defined by the custom getter.
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:123:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
121 | public func reset() {
122 | Task { @MainActor in
123 | cache.value = get()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 |
[73/79] Compiling Atoms GetSetAtom.swift
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:57:54: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | store.tasks[id] = Task { @MainActor in
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | for try await value in asyncSequence {
59 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:29: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:89:32: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
87 | var cancellable: AnyCancellable?
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
91 | if finishedTask {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:101:52: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
99 | return
100 | }
101 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
102 | if value.scope == id {
103 | if let publisher = store.getSetPublisher(for: value.atom), !usedIDs.contains(value.atom) {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:113:86: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
111 | store.tasks[id] = Task { @MainActor in
112 | do {
113 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:115:61: warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
25 | ///
26 | /// - Note: Conforms to the `ReadableAtom` protocol.
27 | public struct AsyncSequenceAtom<T>: ReadableAtom {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
28 | /// The unique identifier for the atom.
29 | public let id: UUID
:
113 | try await StoreConfig.$store.withValue(store) {
114 | let sequence = asyncSequence()
115 | for try await value in sequence {
| `- warning: non-sendable result type 'T?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
116 | guard !Task.isCancelled else {
117 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:163:58: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | taskStatus(atom, false)
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:165:33: warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
149 | }
150 |
151 | fileprivate func create<Root, A: AsyncSequence>(_ asyncSequence: @escaping () -> A, id: UUID, taskStatus: @MainActor @escaping ( AtomValue<AsyncState<Root>>, Bool) -> Void) -> AtomValue<AsyncState<Root>> where Root == A.Element {
| `- note: consider making generic parameter 'Root' conform to the 'Sendable' protocol
152 | let atom = AtomValue<AsyncState<Root>>(.loading, id: id, dontCheckEqual: true)
153 | let store = StoreConfig.store
:
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
165 | for try await value in sequence {
| `- warning: non-sendable result type 'Root?' cannot be sent from nonisolated context in call to instance method 'next()'; this is an error in the Swift 6 language mode
166 | guard !Task.isCancelled else {
167 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:73:47: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | if !didSetupGet {
72 | didSetupGet = true
73 | return StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | let value = findObservables(using: id) {
75 | return get()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:95:40: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | if !didSetupSet {
94 | didSetupSet = true
95 | StoreConfig.$store.withValue(store) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | findObservables(using: id) {
97 | set(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:58:52: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
56 | do {
57 | try await StoreConfig.$store.withValue(store) {
58 | for try await value in asyncSequence {
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
59 | guard !Task.isCancelled else {
60 | return
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:90:35: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
88 | let store = StoreConfig.store
89 | StoreConfig.$store.withValue(store) {
90 | let atom = create(asyncSequence, id: id) { atom, finishedTask in
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | if finishedTask {
92 | cancellable?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:155:9: warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
153 | let store = StoreConfig.store
154 | Task { @MainActor in
155 | atom.getterPublisher.prefix(1).receive(on: DispatchQueue.main).sink { _ in
| |- warning: sending 'atom' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'atom' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
156 | if store.tasks[id] == nil {
157 | Scope.$id.withValue(id, operation: {
:
188 | }
189 |
190 | return atom
| `- note: access can happen concurrently
191 | }
192 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/AsyncSequenceAtom.swift:164:48: warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
162 | var didStart = false
163 | try await StoreConfig.$store.withValue(store) {
164 | let sequence = asyncSequence()
| |- warning: sending 'asyncSequence' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'asyncSequence' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
165 | for try await value in sequence {
166 | guard !Task.isCancelled else {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:52:34: warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
50 | self.defaultValue = defaultValue
51 | self.setup = {
52 | let atom = AtomValue(defaultValue, id: id)
| |- warning: sending 'defaultValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'defaultValue' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | let store = StoreConfig.store
54 | store.addAtomValue(atom, for: id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/Atom.swift:67:68: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
65 | Task { @MainActor in
66 | let store = StoreConfig.store
67 | guard let atom: AtomValue<T> = store.getAtomValue(for: id) else {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
68 | return
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:69:13: warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
67 | var didSetupGet = false
68 | let store = StoreConfig.store
69 | cache.value = get()
| |- warning: sending value of non-Sendable type 'GetSetAtom<T>.Cache' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'GetSetAtom<T>.Cache' to main actor-isolated closure due to closure capture risks causing races in between main actor-isolated and nonisolated uses
70 | let getProxy: () -> T = {
71 | if !didSetupGet {
:
116 | }
117 | atomConfigurations[id] = setup
118 | }
| `- note: access can happen concurrently
119 |
120 | /// Resets the value of the `GetSetAtom` to the initial state as defined by the custom getter.
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Atoms/GetSetAtom.swift:123:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
121 | public func reset() {
122 | Task { @MainActor in
123 | cache.value = get()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 |
[74/79] Compiling Atoms CaptureAtom.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:39:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | private var refCounter: RefCounter? = nil
41 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:31: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:58: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:34:18: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | setterPublisher.eraseToAnyPublisher()
36 | ).eraseToAnyPublisher()
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:46:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | /// - Parameter readableAtom: A `ReadableAtom` instance whose value will be captured by the `CaptureAtomPublisher`.
45 | public init<R: ReadableAtom>(_ readableAtom: R) where R.T == T {
46 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
47 | let store = StoreConfig.store
48 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:57:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | }
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:58:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
60 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:59:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
60 | atom: readableAtom.id,
61 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:72:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
70 |
71 | init<R: ReadableAtom>(onUpdate readableAtom: R) where R.T == T {
72 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:74:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
72 | readableAtom.runSetupIfNeeded()
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
75 | _atom = .init(wrappedValue: atom)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:75:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
75 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | }
77 | }
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[75/79] Compiling Atoms CaptureAtomPublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:39:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | private var refCounter: RefCounter? = nil
41 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:31: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:58: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:34:18: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | setterPublisher.eraseToAnyPublisher()
36 | ).eraseToAnyPublisher()
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:46:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | /// - Parameter readableAtom: A `ReadableAtom` instance whose value will be captured by the `CaptureAtomPublisher`.
45 | public init<R: ReadableAtom>(_ readableAtom: R) where R.T == T {
46 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
47 | let store = StoreConfig.store
48 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:57:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | }
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:58:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
60 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:59:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
60 | atom: readableAtom.id,
61 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:72:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
70 |
71 | init<R: ReadableAtom>(onUpdate readableAtom: R) where R.T == T {
72 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:74:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
72 | readableAtom.runSetupIfNeeded()
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
75 | _atom = .init(wrappedValue: atom)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:75:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
75 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | }
77 | }
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[76/79] Compiling Atoms CaptureAtomValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:39:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | private var refCounter: RefCounter? = nil
41 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:31: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:32:58: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | /// The wrapped `ReadableAtom` value as an `AnyPublisher`.
31 | public var wrappedValue: AnyPublisher<T, Never> {
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
:
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:34:18: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | let setterPublisher = atom.setterPublisher.map { atom.value }
33 | return Publishers.MergeMany(
34 | Just(atom.value).eraseToAnyPublisher(),
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | setterPublisher.eraseToAnyPublisher()
36 | ).eraseToAnyPublisher()
37 | }
38 |
39 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
40 | private var refCounter: RefCounter? = nil
41 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:46:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | /// - Parameter readableAtom: A `ReadableAtom` instance whose value will be captured by the `CaptureAtomPublisher`.
45 | public init<R: ReadableAtom>(_ readableAtom: R) where R.T == T {
46 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
47 | let store = StoreConfig.store
48 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:57:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | }
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:58:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
60 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:59:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
58 | _atom = .init(wrappedValue: atom)
59 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
60 | atom: readableAtom.id,
61 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:72:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
70 |
71 | init<R: ReadableAtom>(onUpdate readableAtom: R) where R.T == T {
72 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:74:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
72 | readableAtom.runSetupIfNeeded()
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
75 | _atom = .init(wrappedValue: atom)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/CaptureAtomPublisher.swift:75:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | let store = StoreConfig.store
74 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
75 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | }
77 | }
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[77/79] Compiling Atoms UseAtom.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:38:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | private var refCounter: RefCounter? = nil
40 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:27:20: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | public var wrappedValue: T {
26 | get {
27 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | } nonmutating set {
29 | atom.value = newValue
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:29:13: warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 | return atom.value
28 | } nonmutating set {
29 | atom.value = newValue
| `- warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: mutation of this property is only permitted within the actor
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:21: warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
SwiftUICore.ObservedObject.Wrapper.subscript:3:35: note: subscript declared here
1 | generic struct ObservedObject {
2 | struct Wrapper {
3 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get } }
| `- note: subscript declared here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:16: warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:48:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
46 | ///
47 | public init<W: WritableAtom>(_ writableAtom: W, debounce: TimeInterval = 0) where W.T == T {
48 | writableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
49 | let store = StoreConfig.store
50 | if !writableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:59:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
57 | }
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:60:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
62 | atom: writableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:61:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
62 | atom: writableAtom.id,
63 | watching: true, debounced: debounce,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:34:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | private var refCounter: RefCounter? = nil
36 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:31:16: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// The current value of the wrapped `WritableAtom`.
30 | public var wrappedValue: T {
31 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
35 | private var refCounter: RefCounter? = nil
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:43:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
41 | /// - debounce: An optional time interval for debouncing the value updates. Default is `0`.
42 | public init<R: ReadableAtom>(_ readableAtom: R, debounce: TimeInterval = 0) where R.T == T {
43 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | let store = StoreConfig.store
45 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:54:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
52 | }
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:55:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
57 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:56:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | atom: readableAtom.id,
58 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/TestStore.swift:14:38: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | let newStore = Store()
13 | newStore.onUpdates = StoreConfig.store.onUpdates
14 | try await StoreConfig.$store.withValue(newStore) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | try await operation(newStore)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
[78/79] Compiling Atoms UseAtomValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:38:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | private var refCounter: RefCounter? = nil
40 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:27:20: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | public var wrappedValue: T {
26 | get {
27 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | } nonmutating set {
29 | atom.value = newValue
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:29:13: warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 | return atom.value
28 | } nonmutating set {
29 | atom.value = newValue
| `- warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: mutation of this property is only permitted within the actor
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:21: warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
SwiftUICore.ObservedObject.Wrapper.subscript:3:35: note: subscript declared here
1 | generic struct ObservedObject {
2 | struct Wrapper {
3 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get } }
| `- note: subscript declared here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:16: warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:48:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
46 | ///
47 | public init<W: WritableAtom>(_ writableAtom: W, debounce: TimeInterval = 0) where W.T == T {
48 | writableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
49 | let store = StoreConfig.store
50 | if !writableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:59:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
57 | }
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:60:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
62 | atom: writableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:61:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
62 | atom: writableAtom.id,
63 | watching: true, debounced: debounce,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:34:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | private var refCounter: RefCounter? = nil
36 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:31:16: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// The current value of the wrapped `WritableAtom`.
30 | public var wrappedValue: T {
31 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
35 | private var refCounter: RefCounter? = nil
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:43:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
41 | /// - debounce: An optional time interval for debouncing the value updates. Default is `0`.
42 | public init<R: ReadableAtom>(_ readableAtom: R, debounce: TimeInterval = 0) where R.T == T {
43 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | let store = StoreConfig.store
45 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:54:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
52 | }
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:55:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
57 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:56:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | atom: readableAtom.id,
58 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/TestStore.swift:14:38: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | let newStore = Store()
13 | newStore.onUpdates = StoreConfig.store.onUpdates
14 | try await StoreConfig.$store.withValue(newStore) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | try await operation(newStore)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
[79/79] Compiling Atoms TestStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:38:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | private var refCounter: RefCounter? = nil
40 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:27:20: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | public var wrappedValue: T {
26 | get {
27 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | } nonmutating set {
29 | atom.value = newValue
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:29:13: warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
27 | return atom.value
28 | } nonmutating set {
29 | atom.value = newValue
| `- warning: main actor-isolated property 'atom' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
:
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: mutation of this property is only permitted within the actor
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:21: warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated subscript 'subscript(dynamicMember:)' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
SwiftUICore.ObservedObject.Wrapper.subscript:3:35: note: subscript declared here
1 | generic struct ObservedObject {
2 | struct Wrapper {
3 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get } }
| `- note: subscript declared here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:35:16: warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | /// A `Binding` to the value of the wrapped `WritableAtom`.
34 | public var projectedValue: Binding<T> {
35 | return $atom.value
| `- warning: main actor-isolated property '$atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
39 | private var refCounter: RefCounter? = nil
40 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:48:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
46 | ///
47 | public init<W: WritableAtom>(_ writableAtom: W, debounce: TimeInterval = 0) where W.T == T {
48 | writableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
49 | let store = StoreConfig.store
50 | if !writableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:59:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
57 | }
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:60:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
62 | atom: writableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtom.swift:61:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
59 | let atom: AtomValue<T> = store.getAtomValue(for: writableAtom.id)
60 | _atom = .init(wrappedValue: atom)
61 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
62 | atom: writableAtom.id,
63 | watching: true, debounced: debounce,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:34:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | private var refCounter: RefCounter? = nil
36 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:31:16: warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// The current value of the wrapped `WritableAtom`.
30 | public var wrappedValue: T {
31 | return atom.value
| `- warning: main actor-isolated property 'atom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 |
34 | @ObservedObject private var atom: AtomValue<T>
| `- note: property declared here
35 | private var refCounter: RefCounter? = nil
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:43:22: error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
41 | /// - debounce: An optional time interval for debouncing the value updates. Default is `0`.
42 | public init<R: ReadableAtom>(_ readableAtom: R, debounce: TimeInterval = 0) where R.T == T {
43 | readableAtom.runSetupIfNeeded()
| `- error: call to main actor-isolated instance method 'runSetupIfNeeded()' in a synchronous nonisolated context
44 | let store = StoreConfig.store
45 | if !readableAtom.keepAlive {
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/ReadableAtom.swift:17:10: note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
15 | extension ReadableAtom {
16 | @MainActor
17 | func runSetupIfNeeded() {
| `- note: calls to instance method 'runSetupIfNeeded()' from outside of its actor context are implicitly asynchronous
18 | if shouldRunSetup() {
19 | let store = StoreConfig.store
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:54:40: error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
52 | }
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
| `- error: call to main actor-isolated instance method 'getAtomValue(for:)' in a synchronous nonisolated context
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:71:10: note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
69 |
70 | @MainActor
71 | func getAtomValue<T>(for id: UUID) -> AtomValue<T> {
| `- note: calls to instance method 'getAtomValue(for:)' from outside of its actor context are implicitly asynchronous
72 | guard let atom = atomMap[id] as? AtomValue<T> else {
73 | fatalError()
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:55:18: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | }
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
57 | atom: readableAtom.id,
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/PropertyWrappers/UseAtomValue.swift:56:15: error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
54 | let atom: AtomValue<T> = store.getAtomValue(for: readableAtom.id)
55 | _atom = .init(wrappedValue: atom)
56 | store.usedAtoms[Scope.id, default: []].append(.init(scope: Scope.id,
| `- error: main actor-isolated property 'usedAtoms' can not be mutated from a nonisolated context
57 | atom: readableAtom.id,
58 | watching: true,
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:26:9: note: mutation of this property is only permitted within the actor
24 | var resettableCallbacks: [UUID: Any] = [:]
25 | @MainActor
26 | var usedAtoms: [UUID: [UsedAtomInfo]] = [:]
| `- note: mutation of this property is only permitted within the actor
27 | @MainActor
28 | var didSetupUpdates = false
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
macro expansion @TaskLocal:1:22: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/StoreConfig.swift:5:60: note: expanded code originates here
3 | let defaultStoreID = UUID()
4 | enum StoreConfig {
5 | @TaskLocal static var store = Store(id: defaultStoreID)
+--- macro expansion @TaskLocal --------------------------------------
|1 | static let $store = TaskLocal(wrappedValue: Store(id: defaultStoreID))
| | `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
+---------------------------------------------------------------------
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/TestStore.swift:14:38: warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | let newStore = Store()
13 | newStore.onUpdates = StoreConfig.store.onUpdates
14 | try await StoreConfig.$store.withValue(newStore) {
| `- warning: type 'Store' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
15 | try await operation(newStore)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Atoms/Internal/Store.swift:8:20: note: class 'Store' does not conform to the 'Sendable' protocol
6 | /// It stores the state for atoms, tracks dependencies between them, and updates the state when required.
7 | /// The `Store` class is the core of the state management system.
8 | public final class Store {
| `- note: class 'Store' does not conform to the 'Sendable' protocol
9 | @MainActor
10 | var cancellables: [UUID: Set<AnyCancellable>] = [:]
warning: 'spi-builder-workspace': dependency 'xctest-dynamic-overlay' is not used by any target
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/12] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[5/12] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[6/12] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[7/12] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[8/12] Compiling XCTestDynamicOverlay Deprecations.swift
[9/12] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[10/12] Compiling XCTestDynamicOverlay Unimplemented.swift
[11/12] Emitting module XCTestDynamicOverlay
[12/12] Compiling XCTestDynamicOverlay XCTFail.swift
[13/39] Compiling CustomDump CoreImage.swift
[14/39] Compiling CustomDump CoreLocation.swift
[15/39] Compiling CustomDump CoreMotion.swift
[16/41] Compiling CustomDump Mirror.swift
[17/41] Compiling CustomDump String.swift
[18/41] Compiling CustomDump Box.swift
[19/41] Compiling CustomDump CollectionDifference.swift
[20/41] Compiling CustomDump Photos.swift
[21/41] Compiling CustomDump Speech.swift
[22/41] Compiling CustomDump StoreKit.swift
[23/41] Compiling CustomDump Swift.swift
[24/41] Compiling CustomDump SwiftUI.swift
[25/41] Compiling CustomDump UIKit.swift
[26/41] Compiling CustomDump Dump.swift
[27/41] Compiling CustomDump AnyType.swift
[28/41] Compiling CustomDump UserNotifications.swift
[29/41] Compiling CustomDump UserNotificationsUI.swift
[30/41] Compiling CustomDump CustomDumpReflectable.swift
[31/41] Emitting module AsyncExpectations
[32/41] Compiling AsyncExpectations AsyncExpectations.swift
[33/41] Emitting module CustomDump
[34/41] Compiling CustomDump CustomDumpRepresentable.swift
[35/41] Compiling CustomDump CustomDumpStringConvertible.swift
[36/41] Compiling CustomDump Diff.swift
[37/41] Compiling CustomDump Unordered.swift
[38/41] Compiling CustomDump XCTAssertNoDifference.swift
[39/41] Compiling CustomDump Foundation.swift
[40/41] Compiling CustomDump GameKit.swift
[41/41] Compiling CustomDump KeyPath.swift
[42/72] Emitting module Atoms
[43/75] Compiling Atoms AtomValue.swift
[44/75] Compiling Atoms Atomic.swift
[45/75] Compiling Atoms DebugInfo.swift
[46/75] Compiling Atoms RefCounter.swift
[47/75] Compiling Atoms ResettableAtom.swift
[48/75] Compiling Atoms Scope.swift
[49/75] Compiling Atoms Store.swift
[50/75] Compiling Atoms StoreConfig.swift
[51/75] Compiling Atoms UsedAtomInfo.swift
[52/75] Compiling Atoms AsyncState.swift
[53/75] Compiling Atoms AtomProvider.swift
[54/75] Compiling Atoms AtomStore.swift
[55/75] Compiling Atoms AsyncAtom.swift
[56/75] Compiling Atoms Utilities.swift
[57/75] Compiling Atoms WeakRef.swift
[58/75] Compiling Atoms WritableAtom.swift
[59/75] Compiling Atoms CaptureAtom.swift
[60/75] Compiling Atoms CaptureAtomPublisher.swift
[61/75] Compiling Atoms CaptureAtomValue.swift
[62/75] Compiling Atoms ObservableObjectAtom.swift
[63/75] Compiling Atoms PublishedAtom.swift
[64/75] Compiling Atoms PublisherAtom.swift
[65/75] Compiling Atoms WillSetAtom.swift
[66/75] Compiling Atoms ExportAsyncExpectations.swift
[67/75] Compiling Atoms GetSetPublisher.swift
[68/75] Compiling Atoms ReadableAtom.swift
[69/75] Compiling Atoms AsyncSequenceAtom.swift
[70/75] Compiling Atoms Atom.swift
[71/75] Compiling Atoms DerivedAtom.swift
[72/75] Compiling Atoms GetSetAtom.swift
[73/75] Compiling Atoms UseAtom.swift
[74/75] Compiling Atoms UseAtomValue.swift
[75/75] Compiling Atoms TestStore.swift
Build complete! (3.94s)
warning: 'spi-builder-workspace': dependency 'xctest-dynamic-overlay' is not used by any target
Build complete.
{
"dependencies" : [
{
"identity" : "swift-async-expectations",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/bangerang/swift-async-expectations.git"
},
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-custom-dump"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "xctest-dynamic-overlay",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/xctest-dynamic-overlay"
}
],
"manifest_display_name" : "Atoms",
"name" : "Atoms",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "Atoms",
"targets" : [
"Atoms"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AtomsTests",
"module_type" : "SwiftTarget",
"name" : "AtomsTests",
"path" : "Tests/AtomsTests",
"product_dependencies" : [
"AsyncExpectations"
],
"sources" : [
"AtomsTests.swift"
],
"target_dependencies" : [
"Atoms"
],
"type" : "test"
},
{
"c99name" : "Atoms",
"module_type" : "SwiftTarget",
"name" : "Atoms",
"path" : "Sources/Atoms",
"product_dependencies" : [
"CustomDump",
"AsyncExpectations"
],
"product_memberships" : [
"Atoms"
],
"sources" : [
"AsyncState.swift",
"AtomProvider.swift",
"AtomStore.swift",
"Atoms/AsyncAtom.swift",
"Atoms/AsyncSequenceAtom.swift",
"Atoms/Atom.swift",
"Atoms/DerivedAtom.swift",
"Atoms/GetSetAtom.swift",
"Atoms/ObservableObjectAtom.swift",
"Atoms/PublishedAtom.swift",
"Atoms/PublisherAtom.swift",
"Atoms/WillSetAtom.swift",
"Internal/AtomValue.swift",
"Internal/Atomic.swift",
"Internal/DebugInfo.swift",
"Internal/ExportAsyncExpectations.swift",
"Internal/GetSetPublisher.swift",
"Internal/ReadableAtom.swift",
"Internal/RefCounter.swift",
"Internal/ResettableAtom.swift",
"Internal/Scope.swift",
"Internal/Store.swift",
"Internal/StoreConfig.swift",
"Internal/UsedAtomInfo.swift",
"Internal/Utilities.swift",
"Internal/WeakRef.swift",
"Internal/WritableAtom.swift",
"PropertyWrappers/CaptureAtom.swift",
"PropertyWrappers/CaptureAtomPublisher.swift",
"PropertyWrappers/CaptureAtomValue.swift",
"PropertyWrappers/UseAtom.swift",
"PropertyWrappers/UseAtomValue.swift",
"TestStore.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.