Build Information
Successful build of CoreDataToSwiftUI, reference develop (d1adce
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 19:45:54 UTC.
Swift 6 data race errors: 49
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
72 |
73 | struct entity: DynamicEnvironmentKey {
74 | public static let defaultValue : NSEntityDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
CoreData.NSEntityDescription:2:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
3 | open class func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?
4 | @available(swift, obsoleted: 3, renamed: "entity(forEntityName:in:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | internal final class D2SDefaultEntity: NSEntityDescription {
| `- note: class 'D2SDefaultEntity' does not conform to the 'Sendable' protocol
47 | static let shared = D2SDefaultEntity()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | override init() {
49 | super.init()
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:86:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | */
85 | struct attribute: DynamicEnvironmentKey {
86 | public static var defaultValue : NSAttributeDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | = D2SDefaultAttribute()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:98:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | struct relationship: DynamicEnvironmentKey {
98 | public static var defaultValue : NSRelationshipDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | = D2SDefaultRelationship()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:105:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | struct page: DynamicEnvironmentKey {
105 | public static let defaultValue : AnyView = AnyView(Text("No Page?"))
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | }
107 | struct component: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:122:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
120 | }
121 | struct rowComponent: DynamicEnvironmentKey {
122 | public static let defaultValue : AnyView = AnyView(EmptyView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 | }
124 |
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:142:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:149:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
147 |
148 | struct initialPropertyValues: DynamicEnvironmentKey {
149 | public static let defaultValue : [ String : Any? ] = [:]
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | }
151 | struct creationTimestampPropertyKey: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:182:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
180 |
181 | struct platform: DynamicEnvironmentKey {
182 | public static let defaultValue = Platform.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 | }
184 | struct look: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Platform.swift:8:13: note: consider making enum 'Platform' conform to the 'Sendable' protocol
6 | //
7 |
8 | public enum Platform: Hashable {
| `- note: consider making enum 'Platform' conform to the 'Sendable' protocol
9 |
10 | case desktop, watch, phone, pad, tv
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:192:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | struct user: DynamicEnvironmentKey {
192 | public static let defaultValue: NSManagedObject? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:206:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
204 |
205 | struct auxiliaryPredicate : DynamicEnvironmentKey {
206 | public static let defaultValue: NSPredicate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | }
208 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentPathes.swift:469:14: warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
467 | extension D2SContextKVC {
468 |
469 | static var kvcToEnvKey : [ String: AnyKVCMapEntry ] = [
| |- warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kvcToEnvKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kvcToEnvKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | "ruleObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
471 | "managedObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:20:16: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
19 | {
20 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | contentRect: NSRect(x: 0, y: 0, width: 480, height: 300),
22 | styleMask: [
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
17 | open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
18 | @MainActor public init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
| `- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
19 | public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
20 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:29:10: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
27 | backing: .buffered, defer: false
28 | )
29 | window.center()
| `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | window.setFrameAutosaveName("D2SWindow")
31 |
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | @MainActor open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:30:10: warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
28 | )
29 | window.center()
30 | window.setFrameAutosaveName("D2SWindow")
| `- warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | window.titleVisibility = .hidden // just hides the title string
AppKit.NSWindow:288:26: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
286 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName, force: Bool) -> Bool
287 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName) -> Bool
288 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool
| `- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
289 | open var frameAutosaveName: NSWindow.FrameAutosaveName { get }
290 | open class func removeFrame(usingName name: NSWindow.FrameAutosaveName)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:32:10: warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
30 | window.setFrameAutosaveName("D2SWindow")
31 |
32 | window.titleVisibility = .hidden // just hides the title string
| `- warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
AppKit.NSWindow:26:14: note: mutation of this property is only permitted within the actor
24 | open var subtitle: String { get set }
25 | @available(macOS 10.10, *)
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
| `- note: mutation of this property is only permitted within the actor
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:33:10: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
31 |
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
| `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @available(macOS 11.0, *)
30 | open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:34:10: warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
| `- warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
AppKit.NSWindow:138:14: note: mutation of this property is only permitted within the actor
136 | @available(swift, obsoleted: 3, renamed: "isMovable")
137 | open var movable: Bool { get set }
138 | open var isMovableByWindowBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
139 | @available(swift, obsoleted: 3, renamed: "isMovableByWindowBackground")
140 | open var movableByWindowBackground: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| `- warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/D2SMainView.swift:16:10: note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
14 | @ObservedObject private var viewModel : D2SRuleEnvironment
15 |
16 | public init(managedObjectContext : NSManagedObjectContext,
| `- note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
17 | ruleModel : RuleModel)
18 | {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:10: warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 | @available(visionOS, unavailable)
24 | @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 | @MainActor @preconcurrency required public init(rootView: Content)
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 | @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/ComparisonOperation.swift:11:1: warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
9 | import Foundation
10 |
11 | extension NSComparisonPredicate.Operator: Equatable {
| |- warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 |
13 | public static func ==(lhs: NSComparisonPredicate.Operator,
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Logger.swift:60:12: warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | * Log-level can be set using the `ZEEQL_LOGLEVEL` global.
59 | */
60 | public var globalD2SLogger : D2SLogger = {
| |- warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalD2SLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalD2SLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | #if DEBUG
62 | let defaultLevel = D2SLoggerLogLevel.Log
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'managedObjectContext' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ruleModel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
[133/135] Compiling DirectToSwiftUI AttributeValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:37:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
38 | = D2SDummyObjectContext.shared
39 | }
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
11 | import struct SwiftUI.AnyView
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
12 | import struct SwiftUI.Text
13 | import struct SwiftUI.EmptyView
:
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | = D2SDummyObjectContext.shared
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:55:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
53 | // TBD: This one should really be an EnvironmentObject, but how
54 | // would we do this? More in the keypath \.object.
55 | public static let defaultValue : NSManagedObject = D2SDefaultObject()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:69:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | struct model: DynamicEnvironmentKey {
69 | public static let defaultValue : NSManagedObjectModel
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:14:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| `- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
6 | //
7 |
8 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 |
10 | // Those are here to workaround the issue that we don't want any
:
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | struct propertyValue: DynamicEnvironmentKey {
63 | public static let defaultValue : Any? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:27:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | internal final class D2SDefaultModel: NSManagedObjectModel {
27 | static let shared : NSManagedObjectModel = D2SDefaultModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | override init() {
29 | super.init()
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:74:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | struct entity: DynamicEnvironmentKey {
74 | public static let defaultValue : NSEntityDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
CoreData.NSEntityDescription:2:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
3 | open class func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?
4 | @available(swift, obsoleted: 3, renamed: "entity(forEntityName:in:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | internal final class D2SDefaultEntity: NSEntityDescription {
| `- note: class 'D2SDefaultEntity' does not conform to the 'Sendable' protocol
47 | static let shared = D2SDefaultEntity()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | override init() {
49 | super.init()
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:86:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | */
85 | struct attribute: DynamicEnvironmentKey {
86 | public static var defaultValue : NSAttributeDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | = D2SDefaultAttribute()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:98:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | struct relationship: DynamicEnvironmentKey {
98 | public static var defaultValue : NSRelationshipDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | = D2SDefaultRelationship()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:105:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | struct page: DynamicEnvironmentKey {
105 | public static let defaultValue : AnyView = AnyView(Text("No Page?"))
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | }
107 | struct component: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:122:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
120 | }
121 | struct rowComponent: DynamicEnvironmentKey {
122 | public static let defaultValue : AnyView = AnyView(EmptyView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 | }
124 |
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:142:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:149:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
147 |
148 | struct initialPropertyValues: DynamicEnvironmentKey {
149 | public static let defaultValue : [ String : Any? ] = [:]
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | }
151 | struct creationTimestampPropertyKey: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:182:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
180 |
181 | struct platform: DynamicEnvironmentKey {
182 | public static let defaultValue = Platform.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 | }
184 | struct look: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Platform.swift:8:13: note: consider making enum 'Platform' conform to the 'Sendable' protocol
6 | //
7 |
8 | public enum Platform: Hashable {
| `- note: consider making enum 'Platform' conform to the 'Sendable' protocol
9 |
10 | case desktop, watch, phone, pad, tv
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:192:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | struct user: DynamicEnvironmentKey {
192 | public static let defaultValue: NSManagedObject? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:206:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
204 |
205 | struct auxiliaryPredicate : DynamicEnvironmentKey {
206 | public static let defaultValue: NSPredicate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | }
208 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentPathes.swift:469:14: warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
467 | extension D2SContextKVC {
468 |
469 | static var kvcToEnvKey : [ String: AnyKVCMapEntry ] = [
| |- warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kvcToEnvKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kvcToEnvKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | "ruleObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
471 | "managedObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:20:16: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
19 | {
20 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | contentRect: NSRect(x: 0, y: 0, width: 480, height: 300),
22 | styleMask: [
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
17 | open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
18 | @MainActor public init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
| `- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
19 | public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
20 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:29:10: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
27 | backing: .buffered, defer: false
28 | )
29 | window.center()
| `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | window.setFrameAutosaveName("D2SWindow")
31 |
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | @MainActor open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:30:10: warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
28 | )
29 | window.center()
30 | window.setFrameAutosaveName("D2SWindow")
| `- warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | window.titleVisibility = .hidden // just hides the title string
AppKit.NSWindow:288:26: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
286 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName, force: Bool) -> Bool
287 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName) -> Bool
288 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool
| `- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
289 | open var frameAutosaveName: NSWindow.FrameAutosaveName { get }
290 | open class func removeFrame(usingName name: NSWindow.FrameAutosaveName)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:32:10: warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
30 | window.setFrameAutosaveName("D2SWindow")
31 |
32 | window.titleVisibility = .hidden // just hides the title string
| `- warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
AppKit.NSWindow:26:14: note: mutation of this property is only permitted within the actor
24 | open var subtitle: String { get set }
25 | @available(macOS 10.10, *)
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
| `- note: mutation of this property is only permitted within the actor
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:33:10: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
31 |
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
| `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @available(macOS 11.0, *)
30 | open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:34:10: warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
| `- warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
AppKit.NSWindow:138:14: note: mutation of this property is only permitted within the actor
136 | @available(swift, obsoleted: 3, renamed: "isMovable")
137 | open var movable: Bool { get set }
138 | open var isMovableByWindowBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
139 | @available(swift, obsoleted: 3, renamed: "isMovableByWindowBackground")
140 | open var movableByWindowBackground: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| `- warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/D2SMainView.swift:16:10: note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
14 | @ObservedObject private var viewModel : D2SRuleEnvironment
15 |
16 | public init(managedObjectContext : NSManagedObjectContext,
| `- note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
17 | ruleModel : RuleModel)
18 | {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:10: warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 | @available(visionOS, unavailable)
24 | @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 | @MainActor @preconcurrency required public init(rootView: Content)
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 | @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/ComparisonOperation.swift:11:1: warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
9 | import Foundation
10 |
11 | extension NSComparisonPredicate.Operator: Equatable {
| |- warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 |
13 | public static func ==(lhs: NSComparisonPredicate.Operator,
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Logger.swift:60:12: warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | * Log-level can be set using the `ZEEQL_LOGLEVEL` global.
59 | */
60 | public var globalD2SLogger : D2SLogger = {
| |- warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalD2SLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalD2SLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | #if DEBUG
62 | let defaultLevel = D2SLoggerLogLevel.Log
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'managedObjectContext' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ruleModel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
[134/135] Compiling DirectToSwiftUI ComparisonOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:37:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
38 | = D2SDummyObjectContext.shared
39 | }
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
11 | import struct SwiftUI.AnyView
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
12 | import struct SwiftUI.Text
13 | import struct SwiftUI.EmptyView
:
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | = D2SDummyObjectContext.shared
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:55:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
53 | // TBD: This one should really be an EnvironmentObject, but how
54 | // would we do this? More in the keypath \.object.
55 | public static let defaultValue : NSManagedObject = D2SDefaultObject()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:69:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | struct model: DynamicEnvironmentKey {
69 | public static let defaultValue : NSManagedObjectModel
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:14:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| `- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
6 | //
7 |
8 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 |
10 | // Those are here to workaround the issue that we don't want any
:
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | struct propertyValue: DynamicEnvironmentKey {
63 | public static let defaultValue : Any? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:27:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | internal final class D2SDefaultModel: NSManagedObjectModel {
27 | static let shared : NSManagedObjectModel = D2SDefaultModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | override init() {
29 | super.init()
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:74:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | struct entity: DynamicEnvironmentKey {
74 | public static let defaultValue : NSEntityDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
CoreData.NSEntityDescription:2:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
3 | open class func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?
4 | @available(swift, obsoleted: 3, renamed: "entity(forEntityName:in:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | internal final class D2SDefaultEntity: NSEntityDescription {
| `- note: class 'D2SDefaultEntity' does not conform to the 'Sendable' protocol
47 | static let shared = D2SDefaultEntity()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | override init() {
49 | super.init()
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:86:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | */
85 | struct attribute: DynamicEnvironmentKey {
86 | public static var defaultValue : NSAttributeDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | = D2SDefaultAttribute()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:98:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | struct relationship: DynamicEnvironmentKey {
98 | public static var defaultValue : NSRelationshipDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | = D2SDefaultRelationship()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:105:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | struct page: DynamicEnvironmentKey {
105 | public static let defaultValue : AnyView = AnyView(Text("No Page?"))
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | }
107 | struct component: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:122:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
120 | }
121 | struct rowComponent: DynamicEnvironmentKey {
122 | public static let defaultValue : AnyView = AnyView(EmptyView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 | }
124 |
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:142:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:149:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
147 |
148 | struct initialPropertyValues: DynamicEnvironmentKey {
149 | public static let defaultValue : [ String : Any? ] = [:]
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | }
151 | struct creationTimestampPropertyKey: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:182:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
180 |
181 | struct platform: DynamicEnvironmentKey {
182 | public static let defaultValue = Platform.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 | }
184 | struct look: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Platform.swift:8:13: note: consider making enum 'Platform' conform to the 'Sendable' protocol
6 | //
7 |
8 | public enum Platform: Hashable {
| `- note: consider making enum 'Platform' conform to the 'Sendable' protocol
9 |
10 | case desktop, watch, phone, pad, tv
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:192:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | struct user: DynamicEnvironmentKey {
192 | public static let defaultValue: NSManagedObject? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:206:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
204 |
205 | struct auxiliaryPredicate : DynamicEnvironmentKey {
206 | public static let defaultValue: NSPredicate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | }
208 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentPathes.swift:469:14: warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
467 | extension D2SContextKVC {
468 |
469 | static var kvcToEnvKey : [ String: AnyKVCMapEntry ] = [
| |- warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kvcToEnvKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kvcToEnvKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | "ruleObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
471 | "managedObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:20:16: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
19 | {
20 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | contentRect: NSRect(x: 0, y: 0, width: 480, height: 300),
22 | styleMask: [
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
17 | open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
18 | @MainActor public init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
| `- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
19 | public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
20 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:29:10: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
27 | backing: .buffered, defer: false
28 | )
29 | window.center()
| `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | window.setFrameAutosaveName("D2SWindow")
31 |
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
141 | open var hidesOnDeactivate: Bool { get set }
142 | open var canHide: Bool { get set }
143 | @MainActor open func center()
| `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
144 | open func makeKeyAndOrderFront(_ sender: Any?)
145 | open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:30:10: warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
28 | )
29 | window.center()
30 | window.setFrameAutosaveName("D2SWindow")
| `- warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | window.titleVisibility = .hidden // just hides the title string
AppKit.NSWindow:288:26: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
286 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName, force: Bool) -> Bool
287 | open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName) -> Bool
288 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool
| `- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
289 | open var frameAutosaveName: NSWindow.FrameAutosaveName { get }
290 | open class func removeFrame(usingName name: NSWindow.FrameAutosaveName)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:32:10: warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
30 | window.setFrameAutosaveName("D2SWindow")
31 |
32 | window.titleVisibility = .hidden // just hides the title string
| `- warning: main actor-isolated property 'titleVisibility' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
AppKit.NSWindow:26:14: note: mutation of this property is only permitted within the actor
24 | open var subtitle: String { get set }
25 | @available(macOS 10.10, *)
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
| `- note: mutation of this property is only permitted within the actor
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:33:10: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
31 |
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
| `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
26 | open var titleVisibility: NSWindow.TitleVisibility { get set }
27 | @available(macOS 10.10, *)
28 | open var titlebarAppearsTransparent: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @available(macOS 11.0, *)
30 | open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:34:10: warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
32 | window.titleVisibility = .hidden // just hides the title string
33 | window.titlebarAppearsTransparent = true
34 | window.isMovableByWindowBackground = true
| `- warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
AppKit.NSWindow:138:14: note: mutation of this property is only permitted within the actor
136 | @available(swift, obsoleted: 3, renamed: "isMovable")
137 | open var movable: Bool { get set }
138 | open var isMovableByWindowBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
139 | @available(swift, obsoleted: 3, renamed: "isMovableByWindowBackground")
140 | open var movableByWindowBackground: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| `- warning: call to main actor-isolated initializer 'init(managedObjectContext:ruleModel:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/D2SMainView.swift:16:10: note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
14 | @ObservedObject private var viewModel : D2SRuleEnvironment
15 |
16 | public init(managedObjectContext : NSManagedObjectContext,
| `- note: calls to initializer 'init(managedObjectContext:ruleModel:)' from outside of its actor context are implicitly asynchronous
17 | ruleModel : RuleModel)
18 | {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:10: warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:39:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 | * Function to create a main window.
15 | */
16 | public func D2SMakeWindow(managedObjectContext : NSManagedObjectContext,
| `- note: add '@MainActor' to make global function 'D2SMakeWindow(managedObjectContext:ruleModel:)' part of global actor 'MainActor'
17 | ruleModel : RuleModel)
18 | -> NSWindow
:
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
39 | window.contentView = NSHostingView(rootView: view)
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | return window
41 | }
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 | @available(visionOS, unavailable)
24 | @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 | @MainActor @preconcurrency required public init(rootView: Content)
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 | @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 | @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/ComparisonOperation.swift:11:1: warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
9 | import Foundation
10 |
11 | extension NSComparisonPredicate.Operator: Equatable {
| |- warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 |
13 | public static func ==(lhs: NSComparisonPredicate.Operator,
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Logger.swift:60:12: warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | * Log-level can be set using the `ZEEQL_LOGLEVEL` global.
59 | */
60 | public var globalD2SLogger : D2SLogger = {
| |- warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalD2SLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalD2SLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | #if DEBUG
62 | let defaultLevel = D2SLoggerLogLevel.Log
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'managedObjectContext' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'managedObjectContext' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/AppKit/D2SMainWindow.swift:36:14: warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
34 | window.isMovableByWindowBackground = true
35 |
36 | let view = D2SMainView(managedObjectContext : managedObjectContext,
| |- warning: sending 'ruleModel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'ruleModel' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
37 | ruleModel : ruleModel)
38 | .frame(maxWidth: .infinity, maxHeight: .infinity)
[135/135] Emitting module DirectToSwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/KVCRulePredicate.swift:12:1: warning: extension declares a conformance of imported type 'NSPredicate' to imported protocol 'RulePredicate'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
10 | import struct SwiftUIRules.RuleContext
11 |
12 | extension NSPredicate : RulePredicate {
| |- warning: extension declares a conformance of imported type 'NSPredicate' to imported protocol 'RulePredicate'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 |
14 | public func evaluate(in ruleContext: RuleContext) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/KVCRuleSelfAssignment.swift:39:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | * operation.
24 | */
25 | open class KVCRuleSelfAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
26 | : NSObject, RuleCandidate, RuleAction
27 | {
:
37 | return ObjectIdentifier(key)
38 | }
39 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
40 | -> Bool
41 | {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/RuleKeyPathAssignment.swift:50:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 | * @see RuleAssignment
31 | */
32 | public struct RuleKeyPathAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
33 | : RuleCandidate, RuleAction
34 | {
:
48 | return ObjectIdentifier(key)
49 | }
50 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
51 | -> Bool
52 | {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/RuleKeyPathPredicateExtras.swift:11:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
9 | // Any Predicates to support NSManagedObject dynamic properties.
10 |
11 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Any?>, value: Value) {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
12 | self.init { ruleContext in
13 | eq(ruleContext[keyPath: keyPath], value)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/RuleKeyPathPredicateExtras.swift:16:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
14 | }
15 | }
16 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Any?>, value: Value?) {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | self.init { ruleContext in
18 | eq(ruleContext[keyPath: keyPath], value)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/RuleKeyPathPredicateExtras.swift:22:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
20 | }
21 |
22 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Any?>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | operation: SwiftUIRules.RuleComparisonOperation,
24 | value: Value)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/CoreDataRules/RuleKeyPathPredicateExtras.swift:31:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | }
30 | }
31 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Any?>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
32 | operation: SwiftUIRules.RuleComparisonOperation,
33 | value: Value?)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/DefaultRules.swift:22:12: warning: let 'D2SDefaultRules' is not concurrency-safe because non-'Sendable' type 'RuleModel' may have shared mutable state; this is an error in the Swift 6 language mode
20 | *
21 | */
22 | public let D2SDefaultRules : RuleModel = [
| |- warning: let 'D2SDefaultRules' is not concurrency-safe because non-'Sendable' type 'RuleModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'D2SDefaultRules' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // set to true in your model if you want the red debug views
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftUIRules/Sources/SwiftUIRules/RuleModel.swift:35:20: note: class 'RuleModel' does not conform to the 'Sendable' protocol
33 | * Though rules can also be constructed manually and then added using `addRule`.
34 | */
35 | public final class RuleModel {
| `- note: class 'RuleModel' does not conform to the 'Sendable' protocol
36 |
37 | let fallbackModel: RuleModel? // kinda the model group?
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/DefaultRules.swift:22:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | *
21 | */
22 | public let D2SDefaultRules : RuleModel = [
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
23 |
24 | // set to true in your model if you want the red debug views
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:37:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| `- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
38 | = D2SDummyObjectContext.shared
39 | }
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
11 | import struct SwiftUI.AnyView
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
12 | import struct SwiftUI.Text
13 | import struct SwiftUI.EmptyView
:
35 | // TODO: rename for CoreData
36 | struct ruleObjectContext: DynamicEnvironmentKey {
37 | public static let defaultValue : NSManagedObjectContext
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | = D2SDummyObjectContext.shared
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:14:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| `- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectContext' may have shared mutable state; this is an error in the Swift 6 language mode
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
CoreData.NSManagedObjectContext:2:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectContext : NSObject, NSCoding, NSLocking {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
3 | @available(macOS, introduced: 10.4, deprecated: 10.11, message: "Use -initWithConcurrencyType: instead")
4 | open class func new() -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
6 | //
7 |
8 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
9 |
10 | // Those are here to workaround the issue that we don't want any
:
12 |
13 | internal final class D2SDummyObjectContext: NSManagedObjectContext {
14 | static let shared : NSManagedObjectContext = D2SDummyObjectContext()
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | init() {
16 | super.init(concurrencyType: .mainQueueConcurrencyType)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:55:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
53 | // TBD: This one should really be an EnvironmentObject, but how
54 | // would we do this? More in the keypath \.object.
55 | public static let defaultValue : NSManagedObject = D2SDefaultObject()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:63:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | struct propertyValue: DynamicEnvironmentKey {
63 | public static let defaultValue : Any? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:69:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
67 |
68 | struct model: DynamicEnvironmentKey {
69 | public static let defaultValue : NSManagedObjectModel
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:27:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | internal final class D2SDefaultModel: NSManagedObjectModel {
27 | static let shared : NSManagedObjectModel = D2SDefaultModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NSManagedObjectModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | override init() {
29 | super.init()
CoreData.NSManagedObjectModel:2:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObjectModel : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
3 | open class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
4 | @available(swift, obsoleted: 3, renamed: "mergedModel(from:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:74:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
72 |
73 | struct entity: DynamicEnvironmentKey {
74 | public static let defaultValue : NSEntityDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSEntityDescription' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
CoreData.NSEntityDescription:2:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSEntityDescription : NSObject, NSCoding, NSCopying, NSFastEnumeration {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
3 | open class func entity(forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription?
4 | @available(swift, obsoleted: 3, renamed: "entity(forEntityName:in:)")
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/DummyImplementations.swift:47:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
44 | }
45 |
46 | internal final class D2SDefaultEntity: NSEntityDescription {
| `- note: class 'D2SDefaultEntity' does not conform to the 'Sendable' protocol
47 | static let shared = D2SDefaultEntity()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'D2SDefaultEntity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | override init() {
49 | super.init()
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:86:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | */
85 | struct attribute: DynamicEnvironmentKey {
86 | public static var defaultValue : NSAttributeDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | = D2SDefaultAttribute()
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:98:24: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
96 | */
97 | struct relationship: DynamicEnvironmentKey {
98 | public static var defaultValue : NSRelationshipDescription
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | = D2SDefaultRelationship()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:105:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | struct page: DynamicEnvironmentKey {
105 | public static let defaultValue : AnyView = AnyView(Text("No Page?"))
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | }
107 | struct component: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:108:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 | struct component: DynamicEnvironmentKey {
108 | public static let defaultValue : AnyView
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
109 | = AnyView(BasicLook.Property.Display.String())
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:112:23: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 | struct pageWrapper: DynamicEnvironmentKey {
112 | public static let defaultValue : AnyView = AnyView(D2SPageView())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 | struct debugComponent: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:116:25: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
114 | struct debugComponent: DynamicEnvironmentKey {
115 | #if DEBUG
116 | public static let defaultValue : AnyView = AnyView(D2SDebugMOCInfo())
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
117 | #else
118 | public static let defaultValue : AnyView = AnyView(EmptyView())
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:122:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
120 | }
121 | struct rowComponent: DynamicEnvironmentKey {
122 | public static let defaultValue : AnyView = AnyView(EmptyView())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'AnyView' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 | }
124 |
SwiftUICore.AnyView:2:23: note: struct 'AnyView' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct AnyView : View {
| `- note: struct 'AnyView' does not conform to the 'Sendable' protocol
3 | public init<V>(_ view: V) where V : View
4 | public init<V>(erasing view: V) where V : View
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:142:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Formatter?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:149:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
147 |
148 | struct initialPropertyValues: DynamicEnvironmentKey {
149 | public static let defaultValue : [ String : Any? ] = [:]
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[String : Any?]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | }
151 | struct creationTimestampPropertyKey: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:182:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
180 |
181 | struct platform: DynamicEnvironmentKey {
182 | public static let defaultValue = Platform.default
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'Platform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 | }
184 | struct look: DynamicEnvironmentKey {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Platform.swift:8:13: note: consider making enum 'Platform' conform to the 'Sendable' protocol
6 | //
7 |
8 | public enum Platform: Hashable {
| `- note: consider making enum 'Platform' conform to the 'Sendable' protocol
9 |
10 | case desktop, watch, phone, pad, tv
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:192:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | struct user: DynamicEnvironmentKey {
192 | public static let defaultValue: NSManagedObject? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSManagedObject?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
CoreData.NSManagedObject:2:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
3 | @available(macOS 10.6, *)
4 | open class var contextShouldIgnoreUnmodeledPropertyChanges: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:206:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
204 |
205 | struct auxiliaryPredicate : DynamicEnvironmentKey {
206 | public static let defaultValue: NSPredicate? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'NSPredicate?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
207 | }
208 | }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentPathes.swift:469:14: warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
467 | extension D2SContextKVC {
468 |
469 | static var kvcToEnvKey : [ String: AnyKVCMapEntry ] = [
| |- warning: static property 'kvcToEnvKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'kvcToEnvKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'kvcToEnvKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
470 | "ruleObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
471 | "managedObjectContext" : KVCMapEntry(D2SKeys.ruleObjectContext .self),
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/ComparisonOperation.swift:11:1: warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
9 | import Foundation
10 |
11 | extension NSComparisonPredicate.Operator: Equatable {
| |- warning: extension declares a conformance of imported type 'Operator' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 |
13 | public static func ==(lhs: NSComparisonPredicate.Operator,
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/AttributeExtras.swift:86:8: warning: associated value 'failedToCoerceFromString' of 'Sendable'-conforming enum 'D2SAttributeCoercionError' has non-sendable type 'NSAttributeDescription'; this is an error in the Swift 6 language mode
84 |
85 | enum D2SAttributeCoercionError: Swift.Error {
86 | case failedToCoerceFromString(String?, NSAttributeDescription)
| `- warning: associated value 'failedToCoerceFromString' of 'Sendable'-conforming enum 'D2SAttributeCoercionError' has non-sendable type 'NSAttributeDescription'; this is an error in the Swift 6 language mode
87 | }
88 |
CoreData.NSAttributeDescription:2:12: note: class 'NSAttributeDescription' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.4, *)
2 | open class NSAttributeDescription : NSPropertyDescription {
| `- note: class 'NSAttributeDescription' does not conform to the 'Sendable' protocol
3 | open var attributeType: NSAttributeType { get set }
4 | open var attributeValueClassName: String? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/AttributeExtras.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
7 |
8 | import Foundation
9 | import CoreData
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreData'
10 |
11 | public extension NSAttributeDescription {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/ManagedObjectBindings.swift:16:1: warning: extension declares a conformance of imported type 'NSManagedObject' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'CoreData' introduce this conformance in the future
14 | }
15 |
16 | extension NSManagedObject: Identifiable {
| |- warning: extension declares a conformance of imported type 'NSManagedObject' to imported protocol 'Identifiable'; this will not behave correctly if the owners of 'CoreData' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 |
18 | // TODO: use the pkey/GID instead. This uses the ObjectIdentifier.
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Logger.swift:60:12: warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | * Log-level can be set using the `ZEEQL_LOGLEVEL` global.
59 | */
60 | public var globalD2SLogger : D2SLogger = {
| |- warning: var 'globalD2SLogger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalD2SLogger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'globalD2SLogger' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | #if DEBUG
62 | let defaultLevel = D2SLoggerLogLevel.Log
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/Logger.swift:90:17: warning: let 'stderrLogLevel' is not concurrency-safe because non-'Sendable' type 'D2SLoggerLogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
40 | }
41 |
42 | public enum D2SLoggerLogLevel : Int8 { // cannot nest types in generics
| `- note: consider making enum 'D2SLoggerLogLevel' conform to the 'Sendable' protocol
43 | case Error
44 | case Warn
:
88 | #endif
89 |
90 | fileprivate let stderrLogLevel : D2SLoggerLogLevel = .Error
| |- warning: let 'stderrLogLevel' is not concurrency-safe because non-'Sendable' type 'D2SLoggerLogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stderrLogLevel' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | public struct D2SPrintLogger : D2SLogger {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/ViewModel/D2SFault.swift:23:25: warning: generic parameter 'Object' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
13 | }
14 |
15 | public enum D2SFault<Object /*: AnyObject*/, Resolver>
| `- note: 'Object' previously declared here
16 | where Resolver: D2SFaultResolver
17 | {
:
21 |
22 | /// Keep an object reference as unowned, to break cycles
23 | public struct Unowned<Object: AnyObject> {
| `- warning: generic parameter 'Object' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
24 | unowned let object: Object
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/ViewModel/SparseFaultArray.swift:132:22: warning: class 'IndexGlobalID' must restate inherited '@unchecked Sendable' conformance
130 | }
131 |
132 | internal final class IndexGlobalID : NSManagedObjectID {
| `- warning: class 'IndexGlobalID' must restate inherited '@unchecked Sendable' conformance
133 |
134 | private static let sharedIndexGIDs : [ IndexGlobalID ] = { // prealloc some
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditBool.swift:23:47: warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | public extension BasicLook.Property.Edit {
11 |
12 | struct Bool: View, D2SAttributeValidator {
| `- note: add '@preconcurrency' to the 'D2SAttributeValidator' conformance to defer isolation checking to run time
13 |
14 | typealias String = Swift.String
:
21 | @Environment(\.propertyKey) private var propertyKey
22 | @Environment(\.propertyValue) private var propertyValue
23 | @Environment(\.attribute) public var attribute
| `- warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
24 |
25 | private var boolValue : Bool {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:14:7: note: 'attribute' declared here
12 | associatedtype Object : NSManagedObject
13 |
14 | var attribute : NSAttributeDescription { get }
| `- note: 'attribute' declared here
15 | var object : Object { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditBool.swift:19:35: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | public init() {}
18 |
19 | @EnvironmentObject public var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 |
21 | @Environment(\.propertyKey) private var propertyKey
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:15:7: note: 'object' declared here
13 |
14 | var attribute : NSAttributeDescription { get }
15 | var object : Object { get }
| `- note: 'object' declared here
16 |
17 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditDate.swift:28:56: warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | public extension BasicLook.Property.Edit {
11 |
12 | struct Date: View, D2SAttributeValidator {
| `- note: add '@preconcurrency' to the 'D2SAttributeValidator' conformance to defer isolation checking to run time
13 | // Note: When used inside a Form, the DatePicker (and presumably other
14 | // pickers on iOS) uses multiple List rows.
:
26 | @Environment(\.propertyKey) private var propertyKey
27 | @Environment(\.propertyValue) private var propertyValue
28 | @Environment(\.attribute) public var attribute
| `- warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
29 | @Environment(\.displayNameForProperty) private var label
30 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:14:7: note: 'attribute' declared here
12 | associatedtype Object : NSManagedObject
13 |
14 | var attribute : NSAttributeDescription { get }
| `- note: 'attribute' declared here
15 | var object : Object { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditDate.swift:24:35: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
22 | public init() {}
23 |
24 | @EnvironmentObject public var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 |
26 | @Environment(\.propertyKey) private var propertyKey
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:15:7: note: 'object' declared here
13 |
14 | var attribute : NSAttributeDescription { get }
15 | var object : Object { get }
| `- note: 'object' declared here
16 |
17 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditLargeString.swift:26:56: warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
13 | * Edit long strings ...
14 | */
15 | struct LargeString: View, D2SAttributeValidator {
| `- note: add '@preconcurrency' to the 'D2SAttributeValidator' conformance to defer isolation checking to run time
16 |
17 | typealias String = Swift.String
:
24 | @Environment(\.propertyKey) private var propertyKey
25 | @Environment(\.displayNameForProperty) private var label
26 | @Environment(\.attribute) public var attribute
| `- warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
27 |
28 | #if os(iOS) // use UIView, NSView is prepared, needs testing.
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:14:7: note: 'attribute' declared here
12 | associatedtype Object : NSManagedObject
13 |
14 | var attribute : NSAttributeDescription { get }
| `- note: 'attribute' declared here
15 | var object : Object { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditLargeString.swift:22:35: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | public init() {}
21 |
22 | @EnvironmentObject public var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
23 |
24 | @Environment(\.propertyKey) private var propertyKey
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:15:7: note: 'object' declared here
13 |
14 | var attribute : NSAttributeDescription { get }
15 | var object : Object { get }
| `- note: 'object' declared here
16 |
17 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditNumber.swift:21:45: warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | public extension BasicLook.Property.Edit {
12 |
13 | struct Number: View, D2SAttributeValidator {
| `- note: add '@preconcurrency' to the 'D2SAttributeValidator' conformance to defer isolation checking to run time
14 |
15 | public init() {}
:
19 | @Environment(\.propertyKey) private var propertyKey
20 | @Environment(\.formatter) private var formatter
21 | @Environment(\.attribute) public var attribute
| `- warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
22 |
23 | // E.g. configure for Double etc
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:14:7: note: 'attribute' declared here
12 | associatedtype Object : NSManagedObject
13 |
14 | var attribute : NSAttributeDescription { get }
| `- note: 'attribute' declared here
15 | var object : Object { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditNumber.swift:17:35: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | public init() {}
16 |
17 | @EnvironmentObject public var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
18 |
19 | @Environment(\.propertyKey) private var propertyKey
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:15:7: note: 'object' declared here
13 |
14 | var attribute : NSAttributeDescription { get }
15 | var object : Object { get }
| `- note: 'object' declared here
16 |
17 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditString.swift:31:50: warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
24 | @Environment(\.displayNameForProperty) private var label
25 |
26 | private struct Labeled<V: View>: View, D2SAttributeValidator {
| `- note: add '@preconcurrency' to the 'D2SAttributeValidator' conformance to defer isolation checking to run time
27 |
28 | @ObservedObject var object : NSManagedObject
29 |
30 | @Environment(\.displayNameForProperty) private var label
31 | @Environment(\.attribute) var attribute
| `- warning: main actor-isolated property 'attribute' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
32 |
33 | let content : V
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:14:7: note: 'attribute' declared here
12 | associatedtype Object : NSManagedObject
13 |
14 | var attribute : NSAttributeDescription { get }
| `- note: 'attribute' declared here
15 | var object : Object { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Edit/EditString.swift:28:27: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 | private struct Labeled<V: View>: View, D2SAttributeValidator {
27 |
28 | @ObservedObject var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
29 |
30 | @Environment(\.displayNameForProperty) private var label
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:15:7: note: 'object' declared here
13 |
14 | var attribute : NSAttributeDescription { get }
15 | var object : Object { get }
| `- note: 'object' declared here
16 |
17 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Relationships/EditToOne.swift:20:45: warning: main actor-isolated property 'relationship' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | public extension BasicLook.Property.Edit {
11 |
12 | struct ToOne: View, D2SRelationshipValidator {
| `- note: add '@preconcurrency' to the 'D2SRelationshipValidator' conformance to defer isolation checking to run time
13 | // Note: Wanted to do this using a "sheet". But FB7270069.
14 | // So going w/ a navigation link for now.
:
18 | @EnvironmentObject public var object : NSManagedObject
19 |
20 | @Environment(\.relationship) public var relationship
| `- warning: main actor-isolated property 'relationship' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
21 |
22 | public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:34:7: note: 'relationship' declared here
32 | associatedtype Object : NSManagedObject
33 |
34 | var relationship : NSRelationshipDescription { get }
| `- note: 'relationship' declared here
35 | var object : Object { get }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/BasicLook/Properties/Relationships/EditToOne.swift:18:35: warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
16 | public init() {}
17 |
18 | @EnvironmentObject public var object : NSManagedObject
| `- warning: main actor-isolated property 'object' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
19 |
20 | @Environment(\.relationship) public var relationship
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Support/CoreData/D2SEditValidation.swift:35:7: note: 'object' declared here
33 |
34 | var relationship : NSRelationshipDescription { get }
35 | var object : Object { get }
| `- note: 'object' declared here
36 |
37 | var isValid : Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Views/Debug/D2SDebugFormatter.swift:10:17: warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | fileprivate var counter = 0
| |- warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'counter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public class D2SDebugFormatter: Formatter {
Build complete! (26.37s)
Build complete.
{
"dependencies" : [
{
"identity" : "swiftuirules",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/DirectToSwift/SwiftUIRules.git"
}
],
"manifest_display_name" : "CoreDataToSwiftUI",
"name" : "CoreDataToSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "DirectToSwiftUI",
"targets" : [
"DirectToSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DirectToSwiftUI",
"module_type" : "SwiftTarget",
"name" : "DirectToSwiftUI",
"path" : "Sources/DirectToSwiftUI",
"product_dependencies" : [
"SwiftUIRules"
],
"product_memberships" : [
"DirectToSwiftUI"
],
"sources" : [
"CoreDataRules/KVCRulePredicate.swift",
"CoreDataRules/KVCRuleSelfAssignment.swift",
"CoreDataRules/RuleKeyPathAssignment.swift",
"CoreDataRules/RuleKeyPathPredicateExtras.swift",
"CoreDataRules/RuleModelExtras.swift",
"CoreDataRules/RuleOperatorExtras.swift",
"CoreDataRules/ZeeQLRuleParser.swift",
"D2SMainView.swift",
"DefaultRules.swift",
"Environment/ContextKVC.swift",
"Environment/DefaultAssignment/DefaultAssignment.swift",
"Environment/DefaultAssignment/EntityDefaults.swift",
"Environment/DefaultAssignment/ManagedContextDefaults.swift",
"Environment/DefaultAssignment/ManagedObjectDefaults.swift",
"Environment/DefaultAssignment/ModelDefaults.swift",
"Environment/EnvironmentKeys.swift",
"Environment/EnvironmentPathes.swift",
"Environment/ViewModifiers.swift",
"Support/AppKit/D2SInspectWindow.swift",
"Support/AppKit/D2SMainWindow.swift",
"Support/AttributeValue.swift",
"Support/ComparisonOperation.swift",
"Support/CoreData/AttributeExtras.swift",
"Support/CoreData/D2SEditValidation.swift",
"Support/CoreData/DataSource.swift",
"Support/CoreData/DetailDataSource.swift",
"Support/CoreData/DummyImplementations.swift",
"Support/CoreData/EntityExtras.swift",
"Support/CoreData/FetchRequestExtras.swift",
"Support/CoreData/KVCBindings.swift",
"Support/CoreData/ManagedObjectBindings.swift",
"Support/CoreData/ModelExtras.swift",
"Support/CoreData/PredicateExtras.swift",
"Support/EquatableType.swift",
"Support/FoundationExtras.swift",
"Support/Hashes.swift",
"Support/KeyValueCodingType.swift",
"Support/Logger.swift",
"Support/Platform.swift",
"Support/ReExport.swift",
"Support/SwiftUI/D2STransformingFormatter.swift",
"Support/SwiftUI/FormatterBinding.swift",
"ViewModel/D2SDisplayGroup.swift",
"ViewModel/D2SFault.swift",
"ViewModel/D2SObjectAction.swift",
"ViewModel/D2SRuleEnvironment.swift",
"ViewModel/D2SToOneFetch.swift",
"ViewModel/SparseFaultArray.swift",
"Views/BasicLook/BasicLook.swift",
"Views/BasicLook/PageWrapper/EntityMasterDetailPage.swift",
"Views/BasicLook/PageWrapper/EntitySidebar.swift",
"Views/BasicLook/PageWrapper/MasterDetail.swift",
"Views/BasicLook/PageWrapper/NavigationPage.swift",
"Views/BasicLook/Pages/AppKit/WindowQueryList.swift",
"Views/BasicLook/Pages/Edit.swift",
"Views/BasicLook/Pages/EntityList.swift",
"Views/BasicLook/Pages/Inspect.swift",
"Views/BasicLook/Pages/Login.swift",
"Views/BasicLook/Pages/QueryList.swift",
"Views/BasicLook/Pages/Select.swift",
"Views/BasicLook/Pages/SmallQueryList.swift",
"Views/BasicLook/Pages/UIKit/MobileQueryList.swift",
"Views/BasicLook/Pages/UIKit/MobileSelect.swift",
"Views/BasicLook/Properties/Display/DisplayBool.swift",
"Views/BasicLook/Properties/Display/DisplayDate.swift",
"Views/BasicLook/Properties/Display/DisplayEmail.swift",
"Views/BasicLook/Properties/Display/DisplayPassword.swift",
"Views/BasicLook/Properties/Display/DisplayString.swift",
"Views/BasicLook/Properties/Edit/EditBool.swift",
"Views/BasicLook/Properties/Edit/EditDate.swift",
"Views/BasicLook/Properties/Edit/EditLargeString.swift",
"Views/BasicLook/Properties/Edit/EditNumber.swift",
"Views/BasicLook/Properties/Edit/EditString.swift",
"Views/BasicLook/Properties/Relationships/DisplayToOneSummary.swift",
"Views/BasicLook/Properties/Relationships/DisplayToOneTitle.swift",
"Views/BasicLook/Properties/Relationships/EditToOne.swift",
"Views/BasicLook/Reusable/D2SComponentView.swift",
"Views/BasicLook/Reusable/D2SDisplayProperties.swift",
"Views/BasicLook/Reusable/D2SDisplayPropertiesList.swift",
"Views/BasicLook/Reusable/D2SFaultContainer.swift",
"Views/BasicLook/Reusable/D2SFaultObjectLink.swift",
"Views/BasicLook/Reusable/D2SNavigationLink.swift",
"Views/BasicLook/Reusable/D2SNilText.swift",
"Views/BasicLook/Reusable/D2SPropertyName.swift",
"Views/BasicLook/Reusable/D2SRowFault.swift",
"Views/BasicLook/Reusable/D2SSummaryView.swift",
"Views/BasicLook/Reusable/D2STitleText.swift",
"Views/BasicLook/Reusable/D2STitledSummaryView.swift",
"Views/BasicLook/Reusable/D2SToOneContainer.swift",
"Views/BasicLook/Reusable/D2SToOneLink.swift",
"Views/BasicLook/Rows/NamedToManyLink.swift",
"Views/BasicLook/Rows/PropertyNameAsTitle.swift",
"Views/BasicLook/Rows/PropertyNameValue.swift",
"Views/BasicLook/Rows/PropertyValue.swift",
"Views/Debug/D2SDebugBox.swift",
"Views/Debug/D2SDebugEntityDetails.swift",
"Views/Debug/D2SDebugEntityInfo.swift",
"Views/Debug/D2SDebugFormatter.swift",
"Views/Debug/D2SDebugLabel.swift",
"Views/Debug/D2SDebugMOCInfo.swift",
"Views/Debug/D2SDebugObjectEditInfo.swift",
"Views/DefaultLook.swift",
"Views/Generic/D2SEntityPageView.swift",
"Views/Generic/D2SPageView.swift",
"Views/Misc/ListEnabledDatePicker.swift",
"Views/Misc/MultilineEditor.swift",
"Views/Misc/SearchField.swift",
"Views/Misc/Spinner.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.