Build Information
Successful build of CoreDataToSwiftUI, reference develop (d1adce
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 16:21:26 UTC.
Swift 6 data race errors: 49
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:306:35: note: mutation of this property is only permitted within the actor
304 |
305 | /// See the enum values for how this property works.
306 | @property NSWindowTitleVisibility titleVisibility API_AVAILABLE(macos(10.10)); // Default value is NSWindowTitleVisible
| `- note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:309:16: note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is set.
309 | @property BOOL titlebarAppearsTransparent API_AVAILABLE(macos(10.10));
| `- note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/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
| `- note: main actor isolation inferred from conformance to protocol 'View'
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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/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)
[132/135] Compiling DirectToSwiftUI D2SInspectWindow.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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h:84:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
82 |
83 | API_AVAILABLE(macosx(10.4),ios(3.0))
84 | @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking> {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
85 | }
86 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h:28:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
26 | // Entities describe the "types" of objects available.
27 | API_AVAILABLE(macosx(10.4),ios(3.0))
28 | @interface NSEntityDescription : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
29 | }
30 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h:51:12: note: class 'Formatter' does not conform to the 'Sendable' protocol
49 | // This allows subclasses to declare sendable conformances without requiring that all subclasses must be sendable
50 | NS_HEADER_AUDIT_END(sendability)
51 | @interface NSFormatter : NSObject <NSCopying, NSCoding>
| `- note: class 'Formatter' does not conform to the 'Sendable' protocol
52 |
53 | - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import class Foundation.Formatter
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
:
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'kvcToEnvKey' part of global actor 'MainActor'
| `- 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: [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:293:1: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
291 | - (NSRect)contentRectForFrameRect:(NSRect)frameRect;
292 |
293 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
294 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag screen:(nullable NSScreen *)screen;
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
/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.center:2:22: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func center()}
| |- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.setFrameAutosaveName:2:22: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:306:35: note: mutation of this property is only permitted within the actor
304 |
305 | /// See the enum values for how this property works.
306 | @property NSWindowTitleVisibility titleVisibility API_AVAILABLE(macos(10.10)); // Default value is NSWindowTitleVisible
| `- note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:309:16: note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is set.
309 | @property BOOL titlebarAppearsTransparent API_AVAILABLE(macos(10.10));
| `- note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/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
| `- note: main actor isolation inferred from conformance to protocol 'View'
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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/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 D2SMainWindow.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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h:84:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
82 |
83 | API_AVAILABLE(macosx(10.4),ios(3.0))
84 | @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking> {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
85 | }
86 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h:28:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
26 | // Entities describe the "types" of objects available.
27 | API_AVAILABLE(macosx(10.4),ios(3.0))
28 | @interface NSEntityDescription : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
29 | }
30 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h:51:12: note: class 'Formatter' does not conform to the 'Sendable' protocol
49 | // This allows subclasses to declare sendable conformances without requiring that all subclasses must be sendable
50 | NS_HEADER_AUDIT_END(sendability)
51 | @interface NSFormatter : NSObject <NSCopying, NSCoding>
| `- note: class 'Formatter' does not conform to the 'Sendable' protocol
52 |
53 | - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import class Foundation.Formatter
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
:
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'kvcToEnvKey' part of global actor 'MainActor'
| `- 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: [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:293:1: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
291 | - (NSRect)contentRectForFrameRect:(NSRect)frameRect;
292 |
293 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
294 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag screen:(nullable NSScreen *)screen;
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
/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.center:2:22: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func center()}
| |- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.setFrameAutosaveName:2:22: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:306:35: note: mutation of this property is only permitted within the actor
304 |
305 | /// See the enum values for how this property works.
306 | @property NSWindowTitleVisibility titleVisibility API_AVAILABLE(macos(10.10)); // Default value is NSWindowTitleVisible
| `- note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:309:16: note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is set.
309 | @property BOOL titlebarAppearsTransparent API_AVAILABLE(macos(10.10));
| `- note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/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
| `- note: main actor isolation inferred from conformance to protocol 'View'
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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/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 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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h:84:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
82 |
83 | API_AVAILABLE(macosx(10.4),ios(3.0))
84 | @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking> {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
85 | }
86 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h:28:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
26 | // Entities describe the "types" of objects available.
27 | API_AVAILABLE(macosx(10.4),ios(3.0))
28 | @interface NSEntityDescription : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
29 | }
30 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h:51:12: note: class 'Formatter' does not conform to the 'Sendable' protocol
49 | // This allows subclasses to declare sendable conformances without requiring that all subclasses must be sendable
50 | NS_HEADER_AUDIT_END(sendability)
51 | @interface NSFormatter : NSObject <NSCopying, NSCoding>
| `- note: class 'Formatter' does not conform to the 'Sendable' protocol
52 |
53 | - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import class Foundation.Formatter
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
:
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'kvcToEnvKey' part of global actor 'MainActor'
| `- 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: [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:293:1: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
291 | - (NSRect)contentRectForFrameRect:(NSRect)frameRect;
292 |
293 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
294 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag screen:(nullable NSScreen *)screen;
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
/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.center:2:22: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func center()}
| |- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.setFrameAutosaveName:2:22: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:306:35: note: mutation of this property is only permitted within the actor
304 |
305 | /// See the enum values for how this property works.
306 | @property NSWindowTitleVisibility titleVisibility API_AVAILABLE(macos(10.10)); // Default value is NSWindowTitleVisible
| `- note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:309:16: note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is set.
309 | @property BOOL titlebarAppearsTransparent API_AVAILABLE(macos(10.10));
| `- note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/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
| `- note: main actor isolation inferred from conformance to protocol 'View'
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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/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] 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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h:84:12: note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
82 |
83 | API_AVAILABLE(macosx(10.4),ios(3.0))
84 | @interface NSManagedObjectContext : NSObject <NSCoding, NSLocking> {
| `- note: class 'NSManagedObjectContext' does not conform to the 'Sendable' protocol
85 | }
86 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | }
57 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | = D2SDefaultModel.shared
71 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h:23:12: note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
21 | // Models describe object graphs to be managed. Models (and their entities/properties/fetch request templates) are editable until they are used by a persistent store coordinator, allowing developers to create/modify them dynamically. However, once a model is being used, it MUST NOT be changed. When the persistent store coordinator first fetches data using a model, it will become uneditable. Any attempt to mutate a model or any of its subobjects after that point will cause an exception to be thrown. If you need to modify a model that is in use, create a copy, modify the copy, and then discard the objects with the old model.
22 | API_AVAILABLE(macosx(10.4),ios(3.0))
23 | @interface NSManagedObjectModel : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSManagedObjectModel' does not conform to the 'Sendable' protocol
24 | }
25 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | = D2SDefaultEntity.shared
76 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSEntityDescription.h:28:12: note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
26 | // Entities describe the "types" of objects available.
27 | API_AVAILABLE(macosx(10.4),ios(3.0))
28 | @interface NSEntityDescription : NSObject <NSCoding, NSCopying, NSFastEnumeration> {
| `- note: class 'NSEntityDescription' does not conform to the 'Sendable' protocol
29 | }
30 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h:51:12: note: class 'Formatter' does not conform to the 'Sendable' protocol
49 | // This allows subclasses to declare sendable conformances without requiring that all subclasses must be sendable
50 | NS_HEADER_AUDIT_END(sendability)
51 | @interface NSFormatter : NSObject <NSCopying, NSCoding>
| `- note: class 'Formatter' does not conform to the 'Sendable' protocol
52 |
53 | - (nullable NSString *)stringForObjectValue:(nullable id)obj;
/Users/admin/builder/spi-builder-workspace/Sources/DirectToSwiftUI/Environment/EnvironmentKeys.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | //
7 |
8 | import class Foundation.Formatter
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 | import protocol SwiftUIRules.DynamicEnvironmentKey
10 | import protocol SwiftUIRules.DynamicEnvironmentValues
:
140 | }
141 | struct formatter: DynamicEnvironmentKey {
142 | public static let defaultValue : Formatter? = nil
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 | struct displayStringForNil: DynamicEnvironmentKey {
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
193 | }
194 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h:33:12: note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
31 |
32 | API_AVAILABLE(macosx(10.4),ios(3.0)) NS_REQUIRES_PROPERTY_DEFINITIONS
33 | @interface NSManagedObject : NSObject {
| `- note: class 'NSManagedObject' does not conform to the 'Sendable' protocol
34 | }
35 |
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'kvcToEnvKey' part of global actor 'MainActor'
| `- 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: [
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:293:1: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
291 | - (NSRect)contentRectForFrameRect:(NSRect)frameRect;
292 |
293 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
294 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag screen:(nullable NSScreen *)screen;
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
/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.center:2:22: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func center()}
| |- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.setFrameAutosaveName:2:22: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:306:35: note: mutation of this property is only permitted within the actor
304 |
305 | /// See the enum values for how this property works.
306 | @property NSWindowTitleVisibility titleVisibility API_AVAILABLE(macos(10.10)); // Default value is NSWindowTitleVisible
| `- note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:309:16: note: mutation of this property is only permitted within the actor
307 |
308 | /// When \c YES, the titlebar doesn't draw its background, allowing all buttons to show through, and "click through" to happen. In general, this is only useful when \c NSFullSizeContentViewWindowMask is set.
309 | @property BOOL titlebarAppearsTransparent API_AVAILABLE(macos(10.10));
| `- note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/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
| `- note: main actor isolation inferred from conformance to protocol 'View'
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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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/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)
Build complete! (11.67s)
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.