Build Information
Successful build of CGLayout, reference master (62d3ab
), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 20:10:44 UTC.
Swift 6 data race errors: 35
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
"dependencies": [
{
"identity": "cglayout",
"name": "CGLayout",
"url": "https://github.com/k-o-d-e-n/CGLayout.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CGLayout",
"dependencies": [
]
}
]
}
Fetching https://github.com/k-o-d-e-n/CGLayout.git
[1/2754] Fetching cglayout
Fetched https://github.com/k-o-d-e-n/CGLayout.git from cache (1.25s)
Creating working copy for https://github.com/k-o-d-e-n/CGLayout.git
Working copy of https://github.com/k-o-d-e-n/CGLayout.git resolved at master (62d3ab1)
warning: '.resolve-product-dependencies': dependency 'cglayout' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/k-o-d-e-n/CGLayout.git
https://github.com/k-o-d-e-n/CGLayout.git
{
"dependencies" : [
],
"manifest_display_name" : "CGLayout",
"name" : "CGLayout",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CGLayout",
"targets" : [
"CGLayout"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CGLayoutTests",
"module_type" : "SwiftTarget",
"name" : "CGLayoutTests",
"path" : "Tests/CGLayoutTests",
"sources" : [
"CGLayoutTests.swift",
"Tests.swift",
"XCTestManifests.swift",
"support_linux.tests.swift"
],
"target_dependencies" : [
"CGLayout"
],
"type" : "test"
},
{
"c99name" : "CGLayout",
"module_type" : "SwiftTarget",
"name" : "CGLayout",
"path" : "Sources/Classes",
"product_memberships" : [
"CGLayout"
],
"sources" : [
"common.cglayout.swift",
"container.cglayout.swift",
"coordinate.cglayout.swift",
"core.cglayout.swift",
"deprecated.cglayout.swift",
"evolution.cglayout/anchors.cglayout.swift",
"evolution.cglayout/backend.anchors.cglayout.swift",
"evolution.cglayout/system.cglayout.swift",
"evolution.cglayout/workspace.cglayout.swift",
"layoutBlock.cglayout.swift",
"layoutConstraint.cglayout.swift",
"layoutGuide.cglayout.swift",
"private.cglayout.swift",
"rtl.cglayout.swift",
"scroll.layoutGuide.cglayout.swift",
"stack.layoutGuide.cglayout.swift",
"support.cglayout.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/19] Compiling CGLayout deprecated.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/anchors.cglayout.swift:247:38: error: type of expression is ambiguous without a type annotation
245 | private var _limitFunc: (Anchor.Metric, Anchor.Metric) -> Anchor.Metric {
246 | if CGLConfiguration.default.isRTLMode {
247 | return anchor.isTrailing ? min : max
| `- error: type of expression is ambiguous without a type annotation
248 | } else {
249 | return anchor.isTrailing ? max : min
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/anchors.cglayout.swift:249:38: error: type of expression is ambiguous without a type annotation
247 | return anchor.isTrailing ? min : max
248 | } else {
249 | return anchor.isTrailing ? max : min
| `- error: type of expression is ambiguous without a type annotation
250 | }
251 | }
[4/19] Compiling CGLayout anchors.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/anchors.cglayout.swift:247:38: error: type of expression is ambiguous without a type annotation
245 | private var _limitFunc: (Anchor.Metric, Anchor.Metric) -> Anchor.Metric {
246 | if CGLConfiguration.default.isRTLMode {
247 | return anchor.isTrailing ? min : max
| `- error: type of expression is ambiguous without a type annotation
248 | } else {
249 | return anchor.isTrailing ? max : min
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/anchors.cglayout.swift:249:38: error: type of expression is ambiguous without a type annotation
247 | return anchor.isTrailing ? min : max
248 | } else {
249 | return anchor.isTrailing ? max : min
| `- error: type of expression is ambiguous without a type annotation
250 | }
251 | }
[5/20] Compiling CGLayout support.cglayout.swift
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:180:19: note: add '@preconcurrency' to the 'LayoutElement' conformance to defer isolation checking to run time
178 | #if os(macOS)
179 | public typealias CGRect = NSRect
180 | extension NSView: LayoutElement {
| `- note: add '@preconcurrency' to the 'LayoutElement' conformance to defer isolation checking to run time
181 | public /// Removes layout element from hierarchy
182 | func removeFromSuperElement() { removeFromSuperview() }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:167:9: note: requirement 'frame' declared here
165 | public protocol LayoutElement: class, RectBasedElement, LayoutCoordinateSpace {
166 | /// External representation of layout entity in coordinate space
167 | var frame: CGRect { get set }
| `- note: requirement 'frame' declared here
168 | /// Internal coordinate space of layout entity
169 | var bounds: CGRect { get set }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:169:9: note: requirement 'bounds' declared here
167 | var frame: CGRect { get set }
168 | /// Internal coordinate space of layout entity
169 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
170 | /// Internal space for layout subelements
171 | var layoutBounds: CGRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:188:9: warning: main actor-isolated property 'layoutBounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
186 | weak var superElement: LayoutElement? { return superview }
187 | @objc public /// Internal space for layout subelements
188 | var layoutBounds: CGRect { return bounds }
| `- warning: main actor-isolated property 'layoutBounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
189 | }
190 | extension NSScrollView {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:171:9: note: requirement 'layoutBounds' declared here
169 | var bounds: CGRect { get set }
170 | /// Internal space for layout subelements
171 | var layoutBounds: CGRect { get }
| `- note: requirement 'layoutBounds' declared here
172 | /// Layout element that maintains this layout entity
173 | var superElement: LayoutElement? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:186:14: warning: main actor-isolated property 'superElement' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
185 | public /// Layout element that maintains this layout entity
186 | weak var superElement: LayoutElement? { return superview }
| `- warning: main actor-isolated property 'superElement' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
187 | @objc public /// Internal space for layout subelements
188 | var layoutBounds: CGRect { return bounds }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:173:9: note: requirement 'superElement' declared here
171 | var layoutBounds: CGRect { get }
172 | /// Layout element that maintains this layout entity
173 | var superElement: LayoutElement? { get }
| `- note: requirement 'superElement' declared here
174 | /// Entity that represents element in layout time
175 | var inLayoutTime: ElementInLayoutTime { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:184:9: warning: main actor-isolated property 'inLayoutTime' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
182 | func removeFromSuperElement() { removeFromSuperview() }
183 | public /// Entity that represents element in layout time
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
| `- warning: main actor-isolated property 'inLayoutTime' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
185 | public /// Layout element that maintains this layout entity
186 | weak var superElement: LayoutElement? { return superview }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:175:9: note: requirement 'inLayoutTime' declared here
173 | var superElement: LayoutElement? { get }
174 | /// Entity that represents element in layout time
175 | var inLayoutTime: ElementInLayoutTime { get }
| `- note: requirement 'inLayoutTime' declared here
176 | /// Removes layout element from hierarchy
177 | func removeFromSuperElement()
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:182:10: warning: main actor-isolated instance method 'removeFromSuperElement()' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
180 | extension NSView: LayoutElement {
181 | public /// Removes layout element from hierarchy
182 | func removeFromSuperElement() { removeFromSuperview() }
| |- warning: main actor-isolated instance method 'removeFromSuperElement()' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'removeFromSuperElement()' to make this instance method not isolated to the actor
183 | public /// Entity that represents element in layout time
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:177:10: note: mark the protocol requirement 'removeFromSuperElement()' 'async' to allow actor-isolated conformances
175 | var inLayoutTime: ElementInLayoutTime { get }
176 | /// Removes layout element from hierarchy
177 | func removeFromSuperElement()
| `- note: mark the protocol requirement 'removeFromSuperElement()' 'async' to allow actor-isolated conformances
178 | }
179 | extension Equatable where Self: LayoutElement {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:159:9: note: requirement 'frame' declared here
157 | public protocol RectBasedElement {
158 | /// External representation of layout entity in coordinate space
159 | var frame: CGRect { get set }
| `- note: requirement 'frame' declared here
160 | /// Internal coordinate space of layout entity
161 | var bounds: CGRect { get set }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:161:9: note: requirement 'bounds' declared here
159 | var frame: CGRect { get set }
160 | /// Internal coordinate space of layout entity
161 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
162 | }
163 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutCoordinateSpace'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutCoordinateSpace'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:9: note: requirement 'bounds' declared here
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- note: requirement 'bounds' declared here
30 | }
31 | #if os(iOS) || os(tvOS)
AppKit.NSControl.sizeThatFits:3:24: warning: main actor-isolated instance method 'sizeThatFits' cannot be used to satisfy nonisolated requirement from protocol 'AdaptiveLayoutElement'; this is an error in the Swift 6 language mode
1 | class NSControl {
2 | @available(macOS 10.10, *)
3 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize}
| |- warning: main actor-isolated instance method 'sizeThatFits' cannot be used to satisfy nonisolated requirement from protocol 'AdaptiveLayoutElement'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeThatFits' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:194:22: note: add '@preconcurrency' to the 'AdaptiveLayoutElement' conformance to defer isolation checking to run time
192 | override var layoutBounds: CGRect { return documentView?.bounds ?? contentView.bounds }
193 | }
194 | extension NSControl: AdaptiveLayoutElement, AdjustableLayoutElement {
| `- note: add '@preconcurrency' to the 'AdaptiveLayoutElement' conformance to defer isolation checking to run time
195 | /// Constraint, that defines content size for item
196 | public var contentConstraint: RectBasedConstraint { return _MainThreadSizeThatFitsConstraint(item: self) }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:261:10: note: mark the protocol requirement 'sizeThatFits' 'async' to allow actor-isolated conformances
259 | /// - Parameter size: The size for which the view should calculate its best-fitting size
260 | /// - Returns: A new size that fits the receiver’s content
261 | func sizeThatFits(_ size: CGSize) -> CGSize
| `- note: mark the protocol requirement 'sizeThatFits' 'async' to allow actor-isolated conformances
262 | }
263 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:196:16: warning: main actor-isolated property 'contentConstraint' cannot be used to satisfy nonisolated requirement from protocol 'AdjustableLayoutElement'; this is an error in the Swift 6 language mode
192 | override var layoutBounds: CGRect { return documentView?.bounds ?? contentView.bounds }
193 | }
194 | extension NSControl: AdaptiveLayoutElement, AdjustableLayoutElement {
| `- note: add '@preconcurrency' to the 'AdjustableLayoutElement' conformance to defer isolation checking to run time
195 | /// Constraint, that defines content size for item
196 | public var contentConstraint: RectBasedConstraint { return _MainThreadSizeThatFitsConstraint(item: self) }
| `- warning: main actor-isolated property 'contentConstraint' cannot be used to satisfy nonisolated requirement from protocol 'AdjustableLayoutElement'; this is an error in the Swift 6 language mode
197 | }
198 | extension NSView: AnchoredLayoutElement {}
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:267:9: note: requirement 'contentConstraint' declared here
265 | public protocol AdjustableLayoutElement: LayoutElement {
266 | /// Constraint, that defines content size of element
267 | var contentConstraint: RectBasedConstraint { get }
| `- note: requirement 'contentConstraint' declared here
268 | }
269 | extension AdjustableLayoutElement where Self: AdaptiveLayoutElement {
[6/20] Compiling CGLayout stack.layoutGuide.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:439:23: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
436 | let layer: CALayer
437 | var child: LayoutElement { layer }
438 | func add(to container: V) {
| `- note: add '@MainActor' to make instance method 'add(to:)' part of global actor 'MainActor'
439 | container.layer?.addSublayer(layer)
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
440 | }
441 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:449:23: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
446 | let view: NSView
447 | var child: LayoutElement { view }
448 | func add(to container: V) {
| `- note: add '@MainActor' to make instance method 'add(to:)' part of global actor 'MainActor'
449 | container.addSubview(view)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
450 | }
451 | }
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' 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/Classes/stack.layoutGuide.cglayout.swift:459:23: warning: call to main actor-isolated instance method 'add(layoutGuide:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
456 | let lg: LayoutGuide<Owner>
457 | var child: LayoutElement { lg }
458 | func add(to container: V) {
| `- note: add '@MainActor' to make instance method 'add(to:)' part of global actor 'MainActor'
459 | container.add(layoutGuide: lg)
| `- warning: call to main actor-isolated instance method 'add(layoutGuide:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
460 | }
461 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:183:14: note: calls to instance method 'add(layoutGuide:)' from outside of its actor context are implicitly asynchronous
181 | ///
182 | /// - Parameter layoutGuide: Layout guide for binding
183 | func add<T: NSView>(layoutGuide: LayoutGuide<T>) {
| |- note: calls to instance method 'add(layoutGuide:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
184 | unsafeBitCast(layoutGuide, to: LayoutGuide<NSView>.self).ownerElement = self
185 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:469:23: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
466 | let lg: LayoutGuide<Owner>
467 | var child: LayoutElement { lg }
468 | func add(to container: V) {
| `- note: add '@MainActor' to make instance method 'add(to:)' part of global actor 'MainActor'
469 | container.layer?.add(layoutGuide: lg)
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
470 | }
471 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/stack.layoutGuide.cglayout.swift:459:23: warning: sending 'self.lg' risks causing data races; this is an error in the Swift 6 language mode
457 | var child: LayoutElement { lg }
458 | func add(to container: V) {
459 | container.add(layoutGuide: lg)
| |- warning: sending 'self.lg' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.lg' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
460 | }
461 | }
[7/20] Compiling CGLayout private.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/rtl.cglayout.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var isRTLMode: Bool = false
12 |
13 | public static var `default` = CGLConfiguration()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
[8/20] Compiling CGLayout rtl.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/rtl.cglayout.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var isRTLMode: Bool = false
12 |
13 | public static var `default` = CGLConfiguration()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
[9/20] Compiling CGLayout layoutConstraint.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:164:9: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
162 | /// - Parameter layoutGuide: Layout guide for binding
163 | func add<T: CALayer>(layoutGuide: LayoutGuide<T>) {
164 | unsafeBitCast(layoutGuide, to: LayoutGuide<CALayer>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
165 | }
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:184:13: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
182 | /// - Parameter layoutGuide: Layout guide for binding
183 | func add<T: NSView>(layoutGuide: LayoutGuide<T>) {
184 | unsafeBitCast(layoutGuide, to: LayoutGuide<NSView>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
185 | }
186 | }
[10/20] Compiling CGLayout layoutGuide.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:164:9: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
162 | /// - Parameter layoutGuide: Layout guide for binding
163 | func add<T: CALayer>(layoutGuide: LayoutGuide<T>) {
164 | unsafeBitCast(layoutGuide, to: LayoutGuide<CALayer>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
165 | }
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:184:13: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
182 | /// - Parameter layoutGuide: Layout guide for binding
183 | func add<T: NSView>(layoutGuide: LayoutGuide<T>) {
184 | unsafeBitCast(layoutGuide, to: LayoutGuide<NSView>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
185 | }
186 | }
[11/20] Compiling CGLayout backend.anchors.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:267:23: warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
265 | public func offset(rect: CGRect, by value: CGFloat) -> CGRect { return base.offset(rect: rect, by: value) }
266 |
267 | public static var xy: CGRectAxis.XY = .init()
| |- warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 | /// not completed
269 | public struct XY: RectAxis { // TODO:
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:286:23: warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | }
285 |
286 | public static var horizontal: CGRectAxis.Horizontal = Horizontal()
| |- warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'horizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'horizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | public struct Horizontal: RectAxis {
288 | public var isHorizontal: Bool { return true }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:300:23: warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
298 | }
299 |
300 | public static var vertical: CGRectAxis.Vertical = Vertical()
| |- warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 | public struct Vertical: RectAxis {
302 | public var isHorizontal: Bool { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:325:16: warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
323 |
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
| |- warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:326:16: warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
| |- warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:327:16: warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
| |- warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:328:16: warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
| |- warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:329:16: warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
| |- warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:330:16: warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
| |- warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:331:16: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:332:16: warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
| |- warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:333:16: warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
| |- warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:334:16: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 | }
336 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/system.cglayout.swift:35:13: warning: capture of 'self' with non-sendable type 'LayoutManager<Item>' in a '@Sendable' closure
11 |
12 | @available(macOS 10.12, iOS 10.0, *)
13 | public class LayoutManager<Item: LayoutElement>: NSObject {
| `- note: generic class 'LayoutManager' does not conform to the 'Sendable' protocol
14 | var deinitialization: ((LayoutManager<Item>) -> Void)?
15 | weak var item: LayoutElement!
:
33 | private func scheduleLayout() {
34 | RunLoop.current.perform {
35 | self.scheme.layout(in: self.item.layoutBounds)
| `- warning: capture of 'self' with non-sendable type 'LayoutManager<Item>' in a '@Sendable' closure
36 | self.isNeedLayout = false
37 | }
[12/20] Compiling CGLayout system.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:267:23: warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
265 | public func offset(rect: CGRect, by value: CGFloat) -> CGRect { return base.offset(rect: rect, by: value) }
266 |
267 | public static var xy: CGRectAxis.XY = .init()
| |- warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 | /// not completed
269 | public struct XY: RectAxis { // TODO:
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:286:23: warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | }
285 |
286 | public static var horizontal: CGRectAxis.Horizontal = Horizontal()
| |- warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'horizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'horizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | public struct Horizontal: RectAxis {
288 | public var isHorizontal: Bool { return true }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:300:23: warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
298 | }
299 |
300 | public static var vertical: CGRectAxis.Vertical = Vertical()
| |- warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 | public struct Vertical: RectAxis {
302 | public var isHorizontal: Bool { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:325:16: warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
323 |
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
| |- warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:326:16: warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
| |- warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:327:16: warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
| |- warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:328:16: warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
| |- warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:329:16: warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
| |- warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:330:16: warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
| |- warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:331:16: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:332:16: warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
| |- warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:333:16: warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
| |- warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:334:16: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 | }
336 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/system.cglayout.swift:35:13: warning: capture of 'self' with non-sendable type 'LayoutManager<Item>' in a '@Sendable' closure
11 |
12 | @available(macOS 10.12, iOS 10.0, *)
13 | public class LayoutManager<Item: LayoutElement>: NSObject {
| `- note: generic class 'LayoutManager' does not conform to the 'Sendable' protocol
14 | var deinitialization: ((LayoutManager<Item>) -> Void)?
15 | weak var item: LayoutElement!
:
33 | private func scheduleLayout() {
34 | RunLoop.current.perform {
35 | self.scheme.layout(in: self.item.layoutBounds)
| `- warning: capture of 'self' with non-sendable type 'LayoutManager<Item>' in a '@Sendable' closure
36 | self.isNeedLayout = false
37 | }
[13/20] Compiling CGLayout workspace.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:15:23: warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 | struct CGRectAxisAnchor {
15 | public static var leading: RectAxisAnchor = Leading()
| |- warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leading' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leading' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | struct Leading: RectAxisAnchor {
17 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:21:23: warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 | }
21 | public static var trailing: RectAxisAnchor = Trailing()
| |- warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailing' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | struct Trailing: RectAxisAnchor {
23 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:27:23: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | }
26 | }
27 | public static var center: RectAxisAnchor = Center()
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | struct Center: RectAxisAnchor {
29 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:33:23: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | public static var size: RectAxisAnchor = Size()
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | struct Size: RectAxisAnchor {
35 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
[14/20] Compiling CGLayout layoutBlock.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:15:23: warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 | struct CGRectAxisAnchor {
15 | public static var leading: RectAxisAnchor = Leading()
| |- warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leading' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leading' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | struct Leading: RectAxisAnchor {
17 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:21:23: warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 | }
21 | public static var trailing: RectAxisAnchor = Trailing()
| |- warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailing' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | struct Trailing: RectAxisAnchor {
23 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:27:23: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | }
26 | }
27 | public static var center: RectAxisAnchor = Center()
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | struct Center: RectAxisAnchor {
29 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:33:23: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | public static var size: RectAxisAnchor = Size()
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | struct Size: RectAxisAnchor {
35 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
[15/20] Compiling CGLayout scroll.layoutGuide.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:125:23: warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | }
124 |
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
| |- warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'horizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'horizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:126:23: warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 |
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
| |- warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:127:23: warning: static property 'both' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
| |- warning: static property 'both' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'both' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'both' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:188:17: warning: initialization of immutable value 'oldPosition' was never used; consider replacing with assignment to '_' or removing it
186 | self.velocity += F * CGFloat(physicsTimeStep)
187 | // print("v:", velocity, oldVelocity)
188 | let oldPosition = self.position
| `- warning: initialization of immutable value 'oldPosition' was never used; consider replacing with assignment to '_' or removing it
189 | self.position += -velocity * CGFloat(physicsTimeStep)
190 | // print("p:", oldPosition, self.position)
[16/20] Compiling CGLayout common.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
[17/20] Compiling CGLayout container.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
[18/20] Emitting module CGLayout
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:267:23: warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
265 | public func offset(rect: CGRect, by value: CGFloat) -> CGRect { return base.offset(rect: rect, by: value) }
266 |
267 | public static var xy: CGRectAxis.XY = .init()
| |- warning: static property 'xy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'xy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'xy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
268 | /// not completed
269 | public struct XY: RectAxis { // TODO:
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:286:23: warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
284 | }
285 |
286 | public static var horizontal: CGRectAxis.Horizontal = Horizontal()
| |- warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'horizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'horizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | public struct Horizontal: RectAxis {
288 | public var isHorizontal: Bool { return true }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:300:23: warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
298 | }
299 |
300 | public static var vertical: CGRectAxis.Vertical = Vertical()
| |- warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
301 | public struct Vertical: RectAxis {
302 | public var isHorizontal: Bool { return false }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:325:16: warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
323 |
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
| |- warning: static property 'leadingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:326:16: warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
324 | struct _RectAnchor {
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
| |- warning: static property 'trailingHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:327:16: warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
325 | static var leadingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(minOf:))
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
| |- warning: static property 'leadingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leadingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leadingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:328:16: warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
326 | static var trailingHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(maxOf:))
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
| |- warning: static property 'trailingVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailingVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailingVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:329:16: warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
327 | static var leadingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(minOf:))
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
| |- warning: static property 'centerHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:330:16: warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
328 | static var trailingVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(maxOf:))
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
| |- warning: static property 'centerVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'centerVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'centerVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:331:16: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
329 | static var centerHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(midOf:))
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:332:16: warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
330 | static var centerVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(midOf:))
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
| |- warning: static property 'sizeHorizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeHorizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeHorizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:333:16: warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
331 | static var center = AnyAnchor<CGPoint>(getter: { CGPoint(x: CGRectAxis.horizontal.get(midOf: $0), y: CGRectAxis.vertical.get(midOf: $0)) })
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
| |- warning: static property 'sizeVertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sizeVertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'sizeVertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:334:16: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
332 | static var sizeHorizontal = AnyAnchor<CGFloat>(getter: CGRectAxis.horizontal.get(sizeAt:))
333 | static var sizeVertical = AnyAnchor<CGFloat>(getter: CGRectAxis.vertical.get(sizeAt:))
334 | static var size = AnyAnchor<CGSize>(getter: { $0.size })//CGSize(width: CGRectAxis.horizontal.get(sizeAt: $0), height: CGRectAxis.vertical.get(sizeAt: $0)) })
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
335 | }
336 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:15:23: warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | }
14 | struct CGRectAxisAnchor {
15 | public static var leading: RectAxisAnchor = Leading()
| |- warning: static property 'leading' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'leading' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'leading' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | struct Leading: RectAxisAnchor {
17 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:21:23: warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 | }
21 | public static var trailing: RectAxisAnchor = Trailing()
| |- warning: static property 'trailing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'trailing' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'trailing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | struct Trailing: RectAxisAnchor {
23 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:27:23: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 | }
26 | }
27 | public static var center: RectAxisAnchor = Center()
| |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'center' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | struct Center: RectAxisAnchor {
29 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/workspace.cglayout.swift:33:23: warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 | }
32 | }
33 | public static var size: RectAxisAnchor = Size()
| |- warning: static property 'size' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'size' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'size' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | struct Size: RectAxisAnchor {
35 | func get(for rect: CGRect, in axis: RectAxis) -> CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/rtl.cglayout.swift:13:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public var isRTLMode: Bool = false
12 |
13 | public static var `default` = CGLConfiguration()
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:125:23: warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
123 | }
124 |
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
| |- warning: static property 'horizontal' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'horizontal' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'horizontal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:126:23: warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
124 |
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
| |- warning: static property 'vertical' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'vertical' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:127:23: warning: static property 'both' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
125 | public static var horizontal: ScrollDirection = ScrollDirection(constraints: [.width()], rawValue: 1)
126 | public static var vertical: ScrollDirection = ScrollDirection(constraints: [.height()], rawValue: 2)
127 | public static var both: ScrollDirection = ScrollDirection(constraints: [.height(), .width()], rawValue: 0)
| |- warning: static property 'both' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'both' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'both' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 | }
129 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:180:19: note: add '@preconcurrency' to the 'LayoutElement' conformance to defer isolation checking to run time
178 | #if os(macOS)
179 | public typealias CGRect = NSRect
180 | extension NSView: LayoutElement {
| `- note: add '@preconcurrency' to the 'LayoutElement' conformance to defer isolation checking to run time
181 | public /// Removes layout element from hierarchy
182 | func removeFromSuperElement() { removeFromSuperview() }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:167:9: note: requirement 'frame' declared here
165 | public protocol LayoutElement: class, RectBasedElement, LayoutCoordinateSpace {
166 | /// External representation of layout entity in coordinate space
167 | var frame: CGRect { get set }
| `- note: requirement 'frame' declared here
168 | /// Internal coordinate space of layout entity
169 | var bounds: CGRect { get set }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:169:9: note: requirement 'bounds' declared here
167 | var frame: CGRect { get set }
168 | /// Internal coordinate space of layout entity
169 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
170 | /// Internal space for layout subelements
171 | var layoutBounds: CGRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:188:9: warning: main actor-isolated property 'layoutBounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
186 | weak var superElement: LayoutElement? { return superview }
187 | @objc public /// Internal space for layout subelements
188 | var layoutBounds: CGRect { return bounds }
| `- warning: main actor-isolated property 'layoutBounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
189 | }
190 | extension NSScrollView {
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:171:9: note: requirement 'layoutBounds' declared here
169 | var bounds: CGRect { get set }
170 | /// Internal space for layout subelements
171 | var layoutBounds: CGRect { get }
| `- note: requirement 'layoutBounds' declared here
172 | /// Layout element that maintains this layout entity
173 | var superElement: LayoutElement? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:186:14: warning: main actor-isolated property 'superElement' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
185 | public /// Layout element that maintains this layout entity
186 | weak var superElement: LayoutElement? { return superview }
| `- warning: main actor-isolated property 'superElement' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
187 | @objc public /// Internal space for layout subelements
188 | var layoutBounds: CGRect { return bounds }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:173:9: note: requirement 'superElement' declared here
171 | var layoutBounds: CGRect { get }
172 | /// Layout element that maintains this layout entity
173 | var superElement: LayoutElement? { get }
| `- note: requirement 'superElement' declared here
174 | /// Entity that represents element in layout time
175 | var inLayoutTime: ElementInLayoutTime { get }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:184:9: warning: main actor-isolated property 'inLayoutTime' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
182 | func removeFromSuperElement() { removeFromSuperview() }
183 | public /// Entity that represents element in layout time
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
| `- warning: main actor-isolated property 'inLayoutTime' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
185 | public /// Layout element that maintains this layout entity
186 | weak var superElement: LayoutElement? { return superview }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:175:9: note: requirement 'inLayoutTime' declared here
173 | var superElement: LayoutElement? { get }
174 | /// Entity that represents element in layout time
175 | var inLayoutTime: ElementInLayoutTime { get }
| `- note: requirement 'inLayoutTime' declared here
176 | /// Removes layout element from hierarchy
177 | func removeFromSuperElement()
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:182:10: warning: main actor-isolated instance method 'removeFromSuperElement()' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
180 | extension NSView: LayoutElement {
181 | public /// Removes layout element from hierarchy
182 | func removeFromSuperElement() { removeFromSuperview() }
| |- warning: main actor-isolated instance method 'removeFromSuperElement()' cannot be used to satisfy nonisolated requirement from protocol 'LayoutElement'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'removeFromSuperElement()' to make this instance method not isolated to the actor
183 | public /// Entity that represents element in layout time
184 | var inLayoutTime: ElementInLayoutTime { return _MainThreadItemInLayoutTime(item: self) }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:177:10: note: mark the protocol requirement 'removeFromSuperElement()' 'async' to allow actor-isolated conformances
175 | var inLayoutTime: ElementInLayoutTime { get }
176 | /// Removes layout element from hierarchy
177 | func removeFromSuperElement()
| `- note: mark the protocol requirement 'removeFromSuperElement()' 'async' to allow actor-isolated conformances
178 | }
179 | extension Equatable where Self: LayoutElement {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:159:9: note: requirement 'frame' declared here
157 | public protocol RectBasedElement {
158 | /// External representation of layout entity in coordinate space
159 | var frame: CGRect { get set }
| `- note: requirement 'frame' declared here
160 | /// Internal coordinate space of layout entity
161 | var bounds: CGRect { get set }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'RectBasedElement'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:161:9: note: requirement 'bounds' declared here
159 | var frame: CGRect { get set }
160 | /// Internal coordinate space of layout entity
161 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
162 | }
163 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutCoordinateSpace'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'LayoutCoordinateSpace'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:29:9: note: requirement 'bounds' declared here
27 | func convert(rect: CGRect, from item: LayoutElement) -> CGRect
28 |
29 | var bounds: CGRect { get }
| `- note: requirement 'bounds' declared here
30 | }
31 | #if os(iOS) || os(tvOS)
AppKit.NSControl.sizeThatFits:3:24: warning: main actor-isolated instance method 'sizeThatFits' cannot be used to satisfy nonisolated requirement from protocol 'AdaptiveLayoutElement'; this is an error in the Swift 6 language mode
1 | class NSControl {
2 | @available(macOS 10.10, *)
3 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize}
| |- warning: main actor-isolated instance method 'sizeThatFits' cannot be used to satisfy nonisolated requirement from protocol 'AdaptiveLayoutElement'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sizeThatFits' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:194:22: note: add '@preconcurrency' to the 'AdaptiveLayoutElement' conformance to defer isolation checking to run time
192 | override var layoutBounds: CGRect { return documentView?.bounds ?? contentView.bounds }
193 | }
194 | extension NSControl: AdaptiveLayoutElement, AdjustableLayoutElement {
| `- note: add '@preconcurrency' to the 'AdaptiveLayoutElement' conformance to defer isolation checking to run time
195 | /// Constraint, that defines content size for item
196 | public var contentConstraint: RectBasedConstraint { return _MainThreadSizeThatFitsConstraint(item: self) }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:261:10: note: mark the protocol requirement 'sizeThatFits' 'async' to allow actor-isolated conformances
259 | /// - Parameter size: The size for which the view should calculate its best-fitting size
260 | /// - Returns: A new size that fits the receiver’s content
261 | func sizeThatFits(_ size: CGSize) -> CGSize
| `- note: mark the protocol requirement 'sizeThatFits' 'async' to allow actor-isolated conformances
262 | }
263 |
/Users/admin/builder/spi-builder-workspace/Sources/Classes/support.cglayout.swift:196:16: warning: main actor-isolated property 'contentConstraint' cannot be used to satisfy nonisolated requirement from protocol 'AdjustableLayoutElement'; this is an error in the Swift 6 language mode
192 | override var layoutBounds: CGRect { return documentView?.bounds ?? contentView.bounds }
193 | }
194 | extension NSControl: AdaptiveLayoutElement, AdjustableLayoutElement {
| `- note: add '@preconcurrency' to the 'AdjustableLayoutElement' conformance to defer isolation checking to run time
195 | /// Constraint, that defines content size for item
196 | public var contentConstraint: RectBasedConstraint { return _MainThreadSizeThatFitsConstraint(item: self) }
| `- warning: main actor-isolated property 'contentConstraint' cannot be used to satisfy nonisolated requirement from protocol 'AdjustableLayoutElement'; this is an error in the Swift 6 language mode
197 | }
198 | extension NSView: AnchoredLayoutElement {}
/Users/admin/builder/spi-builder-workspace/Sources/Classes/core.cglayout.swift:267:9: note: requirement 'contentConstraint' declared here
265 | public protocol AdjustableLayoutElement: LayoutElement {
266 | /// Constraint, that defines content size of element
267 | var contentConstraint: RectBasedConstraint { get }
| `- note: requirement 'contentConstraint' declared here
268 | }
269 | extension AdjustableLayoutElement where Self: AdaptiveLayoutElement {
[19/20] Compiling CGLayout coordinate.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:169:76: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | extension LayoutCoordinateSpace where Self: NSView {
168 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
169 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, to: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, to: item) }) }
171 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:170:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
166 | #if os(macOS)
167 | extension LayoutCoordinateSpace where Self: NSView {
168 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:to:)' part of global actor 'MainActor'
169 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, to: item) }) }
170 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, to: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 |
172 | return Self.convert(point: point, from: self, to: item)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:175:76: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
175 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, from: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, from: item) }) }
177 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:176:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
172 | return Self.convert(point: point, from: self, to: item)
173 | }
174 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:from:)' part of global actor 'MainActor'
175 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, from: item) }) }
176 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, from: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
177 |
178 | return Self.convert(point: point, from: item, to: self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:181:76: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 | }
180 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
181 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, to: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, to: item) }) }
183 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:182:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
178 | return Self.convert(point: point, from: item, to: self)
179 | }
180 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:to:)' part of global actor 'MainActor'
181 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, to: item) }) }
182 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, to: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 |
184 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:189:76: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | }
188 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
189 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, from: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, from: item) }) }
191 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, from view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:190:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
186 | return rect
187 | }
188 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:from:)' part of global actor 'MainActor'
189 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, from: item) }) }
190 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, from: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
191 |
192 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:321:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
317 | #if os(macOS)
318 | extension LayoutGuide where Super: NSView {
319 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:to:)' part of global actor 'MainActor'
320 | if let item = item as? NSView { return convert(point, to: item) }
321 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(point, to: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
322 |
323 | return LayoutGuide.convert(point: point, from: self, to: item)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:327:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
323 | return LayoutGuide.convert(point: point, from: self, to: item)
324 | }
325 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:from:)' part of global actor 'MainActor'
326 | if let item = item as? NSView { return convert(point, from: item) }
327 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(point, from: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
328 |
329 | return LayoutGuide.convert(point: point, from: item, to: self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:333:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
329 | return LayoutGuide.convert(point: point, from: item, to: self)
330 | }
331 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:to:)' part of global actor 'MainActor'
332 | if let item = item as? NSView { return convert(rect, to: item) }
333 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(rect, to: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
334 |
335 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:341:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
337 | return rect
338 | }
339 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:from:)' part of global actor 'MainActor'
340 | if let item = item as? NSView { return convert(rect, from: item) }
341 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(rect, from: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
342 |
343 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:450:56: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
448 | public func convert(_ point: CGPoint, to view: NSView) -> CGPoint {
449 | let pointInSuper = CGPoint(x: frame.origin.x + point.x - bounds.origin.x, y: frame.origin.y + point.y - bounds.origin.y)
450 | return syncGuard(mainThread: ownerElement!.convert(pointInSuper, to: view))
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
451 | }
452 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:454:68: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
452 |
453 | public func convert(_ point: CGPoint, from view: NSView) -> CGPoint {
454 | let pointInSuper = syncGuard(mainThread: ownerElement!.convert(point, from: view))
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
455 | return CGPoint(x: pointInSuper.x - frame.origin.x + bounds.origin.x, y: pointInSuper.y - frame.origin.y + bounds.origin.y)
456 | }
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:460:56: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
458 | public func convert(_ rect: CGRect, to view: NSView) -> CGRect {
459 | let rectInSuper = CGRect(x: frame.origin.x + rect.origin.x - bounds.origin.x, y: frame.origin.y + rect.origin.y - bounds.origin.y, width: rect.width, height: rect.height)
460 | return syncGuard(mainThread: ownerElement!.convert(rectInSuper, to: view))
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | }
462 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:464:67: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
462 |
463 | public func convert(_ rect: CGRect, from view: NSView) -> CGRect {
464 | let rectInSuper = syncGuard(mainThread: ownerElement!.convert(rect, from: view))
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
465 | return CGRect(x: rectInSuper.origin.x - frame.origin.x + bounds.origin.x, y: rectInSuper.origin.y - frame.origin.y + bounds.origin.y, width: rectInSuper.width, height: rectInSuper.height)
466 | }
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, from view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
[20/20] Compiling CGLayout core.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:169:76: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | extension LayoutCoordinateSpace where Self: NSView {
168 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
169 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, to: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, to: item) }) }
171 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:170:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
166 | #if os(macOS)
167 | extension LayoutCoordinateSpace where Self: NSView {
168 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:to:)' part of global actor 'MainActor'
169 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, to: item) }) }
170 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, to: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 |
172 | return Self.convert(point: point, from: self, to: item)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:175:76: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
175 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, from: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, from: item) }) }
177 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:176:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
172 | return Self.convert(point: point, from: self, to: item)
173 | }
174 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:from:)' part of global actor 'MainActor'
175 | if let item = item as? NSView { return syncGuard(mainThread: { convert(point, from: item) }) }
176 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(point, from: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
177 |
178 | return Self.convert(point: point, from: item, to: self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:181:76: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 | }
180 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
181 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, to: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, to: item) }) }
183 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:182:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
178 | return Self.convert(point: point, from: item, to: self)
179 | }
180 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:to:)' part of global actor 'MainActor'
181 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, to: item) }) }
182 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, to: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
183 |
184 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:189:76: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | }
188 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
189 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, from: item) }) }
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, from: item) }) }
191 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, from view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:190:57: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
186 | return rect
187 | }
188 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:from:)' part of global actor 'MainActor'
189 | if let item = item as? NSView { return syncGuard(mainThread: { convert(rect, from: item) }) }
190 | if let item = item as? CALayer, let layer = layer { return syncGuard(mainThread: { layer.convert(rect, from: item) }) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
191 |
192 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:321:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
317 | #if os(macOS)
318 | extension LayoutGuide where Super: NSView {
319 | public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:to:)' part of global actor 'MainActor'
320 | if let item = item as? NSView { return convert(point, to: item) }
321 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(point, to: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
322 |
323 | return LayoutGuide.convert(point: point, from: self, to: item)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:327:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
323 | return LayoutGuide.convert(point: point, from: self, to: item)
324 | }
325 | public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint {
| `- note: add '@MainActor' to make instance method 'convert(point:from:)' part of global actor 'MainActor'
326 | if let item = item as? NSView { return convert(point, from: item) }
327 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(point, from: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
328 |
329 | return LayoutGuide.convert(point: point, from: item, to: self)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:333:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
329 | return LayoutGuide.convert(point: point, from: item, to: self)
330 | }
331 | public func convert(rect: CGRect, to item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:to:)' part of global actor 'MainActor'
332 | if let item = item as? NSView { return convert(rect, to: item) }
333 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(rect, to: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
334 |
335 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:341:71: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
337 | return rect
338 | }
339 | public func convert(rect: CGRect, from item: LayoutElement) -> CGRect {
| `- note: add '@MainActor' to make instance method 'convert(rect:from:)' part of global actor 'MainActor'
340 | if let item = item as? NSView { return convert(rect, from: item) }
341 | if let item = item as? CALayer, let layer = ownerElement?.layer { return convert(rect, from: item, superLayer: layer) }
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
342 |
343 | var rect = rect
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/Classes/coordinate.cglayout.swift:450:56: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
448 | public func convert(_ point: CGPoint, to view: NSView) -> CGPoint {
449 | let pointInSuper = CGPoint(x: frame.origin.x + point.x - bounds.origin.x, y: frame.origin.y + point.y - bounds.origin.y)
450 | return syncGuard(mainThread: ownerElement!.convert(pointInSuper, to: view))
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
451 | }
452 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:454:68: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
452 |
453 | public func convert(_ point: CGPoint, from view: NSView) -> CGPoint {
454 | let pointInSuper = syncGuard(mainThread: ownerElement!.convert(point, from: view))
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
455 | return CGPoint(x: pointInSuper.x - frame.origin.x + bounds.origin.x, y: pointInSuper.y - frame.origin.y + bounds.origin.y)
456 | }
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint}
| |- note: calls to instance method 'convert(_:from:)' 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/Classes/coordinate.cglayout.swift:460:56: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
458 | public func convert(_ rect: CGRect, to view: NSView) -> CGRect {
459 | let rectInSuper = CGRect(x: frame.origin.x + rect.origin.x - bounds.origin.x, y: frame.origin.y + rect.origin.y - bounds.origin.y, width: rect.width, height: rect.height)
460 | return syncGuard(mainThread: ownerElement!.convert(rectInSuper, to: view))
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
461 | }
462 |
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:to:)' 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/Classes/coordinate.cglayout.swift:464:67: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
462 |
463 | public func convert(_ rect: CGRect, from view: NSView) -> CGRect {
464 | let rectInSuper = syncGuard(mainThread: ownerElement!.convert(rect, from: view))
| `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
465 | return CGRect(x: rectInSuper.origin.x - frame.origin.x + bounds.origin.x, y: rectInSuper.origin.y - frame.origin.y + bounds.origin.y, width: rectInSuper.width, height: rectInSuper.height)
466 | }
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ rect: NSRect, from view: NSView?) -> NSRect}
| |- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/18] Compiling CGLayout scroll.layoutGuide.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/scroll.layoutGuide.cglayout.swift:188:17: warning: initialization of immutable value 'oldPosition' was never used; consider replacing with assignment to '_' or removing it
186 | self.velocity += F * CGFloat(physicsTimeStep)
187 | // print("v:", velocity, oldVelocity)
188 | let oldPosition = self.position
| `- warning: initialization of immutable value 'oldPosition' was never used; consider replacing with assignment to '_' or removing it
189 | self.position += -velocity * CGFloat(physicsTimeStep)
190 | // print("p:", oldPosition, self.position)
[3/18] Compiling CGLayout workspace.cglayout.swift
[4/18] Compiling CGLayout layoutBlock.cglayout.swift
[5/18] Compiling CGLayout layoutConstraint.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:164:9: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
162 | /// - Parameter layoutGuide: Layout guide for binding
163 | func add<T: CALayer>(layoutGuide: LayoutGuide<T>) {
164 | unsafeBitCast(layoutGuide, to: LayoutGuide<CALayer>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
165 | }
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:184:13: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
182 | /// - Parameter layoutGuide: Layout guide for binding
183 | func add<T: NSView>(layoutGuide: LayoutGuide<T>) {
184 | unsafeBitCast(layoutGuide, to: LayoutGuide<NSView>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
185 | }
186 | }
[6/18] Compiling CGLayout layoutGuide.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:164:9: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
162 | /// - Parameter layoutGuide: Layout guide for binding
163 | func add<T: CALayer>(layoutGuide: LayoutGuide<T>) {
164 | unsafeBitCast(layoutGuide, to: LayoutGuide<CALayer>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<CALayer>' can be replaced with 'unsafeDowncast'
165 | }
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/layoutGuide.cglayout.swift:184:13: warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
182 | /// - Parameter layoutGuide: Layout guide for binding
183 | func add<T: NSView>(layoutGuide: LayoutGuide<T>) {
184 | unsafeBitCast(layoutGuide, to: LayoutGuide<NSView>.self).ownerElement = self
| `- warning: 'unsafeBitCast' from 'LayoutGuide<T>' to 'LayoutGuide<NSView>' can be replaced with 'unsafeDowncast'
185 | }
186 | }
[7/18] Compiling CGLayout private.cglayout.swift
[8/18] Compiling CGLayout rtl.cglayout.swift
[9/18] Compiling CGLayout stack.layoutGuide.cglayout.swift
[10/18] Compiling CGLayout backend.anchors.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
[11/18] Compiling CGLayout system.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
[12/19] Compiling CGLayout deprecated.cglayout.swift
[13/19] Compiling CGLayout anchors.cglayout.swift
[14/19] Compiling CGLayout coordinate.cglayout.swift
[15/19] Compiling CGLayout core.cglayout.swift
[16/19] Compiling CGLayout common.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
[17/19] Compiling CGLayout container.cglayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
[18/19] Emitting module CGLayout
/Users/admin/builder/spi-builder-workspace/Sources/Classes/common.cglayout.swift:123:1: warning: extension declares a conformance of imported type 'NSEdgeInsets' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
121 |
122 | #if os(macOS) || os(Linux)
123 | extension EdgeInsets: Equatable {
| |- warning: extension declares a conformance of imported type 'NSEdgeInsets' 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
124 | public static func ==(lhs: EdgeInsets, rhs: EdgeInsets) -> Bool {
125 | return lhs.left == rhs.left && lhs.right == rhs.right
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:179:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
177 | public func get(for rect: CGRect) -> CGFloat { return get(rect) }
178 | }
179 | public struct CenterAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
180 | public let axis = CGRectAxis.xy
181 | public var horizontal: AxisCenterAnchor<CGRectAxis.Horizontal> { return .horizontal }
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:195:15: warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
193 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontal.get(for: rect), y: vertical.get(for: rect)) }
194 | }
195 | public struct OriginAnchor: RectAnchorPoint {
| |- warning: cannot use conformance of 'CGPoint' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGPoint')
196 | public let axis = CGRectAxis.xy
197 | let horizontalAnchor: HorizontalAnchor
/Users/admin/builder/spi-builder-workspace/Sources/Classes/evolution.cglayout/backend.anchors.cglayout.swift:211:15: warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
209 | public func get(for rect: CGRect) -> CGPoint { return CGPoint(x: horizontalAnchor.get(for: rect), y: verticalAnchor.get(for: rect)) }
210 | }
211 | public struct SizeAnchor: SizeRectAnchor {
| |- warning: cannot use conformance of 'CGSize' to 'Equatable' here; 'CoreGraphics' was not imported by this file; this is an error in the Swift 6 language mode
| |- note: The missing import of module 'CoreGraphics' will be added implicitly
| `- note: in associated type 'Self.Metric' (inferred as 'CGSize')
212 | public typealias Metric = CGSize
213 | }
[19/19] Compiling CGLayout support.cglayout.swift
Build complete! (2.43s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CGLayout",
"name" : "CGLayout",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CGLayout",
"targets" : [
"CGLayout"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CGLayoutTests",
"module_type" : "SwiftTarget",
"name" : "CGLayoutTests",
"path" : "Tests/CGLayoutTests",
"sources" : [
"CGLayoutTests.swift",
"Tests.swift",
"XCTestManifests.swift",
"support_linux.tests.swift"
],
"target_dependencies" : [
"CGLayout"
],
"type" : "test"
},
{
"c99name" : "CGLayout",
"module_type" : "SwiftTarget",
"name" : "CGLayout",
"path" : "Sources/Classes",
"product_memberships" : [
"CGLayout"
],
"sources" : [
"common.cglayout.swift",
"container.cglayout.swift",
"coordinate.cglayout.swift",
"core.cglayout.swift",
"deprecated.cglayout.swift",
"evolution.cglayout/anchors.cglayout.swift",
"evolution.cglayout/backend.anchors.cglayout.swift",
"evolution.cglayout/system.cglayout.swift",
"evolution.cglayout/workspace.cglayout.swift",
"layoutBlock.cglayout.swift",
"layoutConstraint.cglayout.swift",
"layoutGuide.cglayout.swift",
"private.cglayout.swift",
"rtl.cglayout.swift",
"scroll.layoutGuide.cglayout.swift",
"stack.layoutGuide.cglayout.swift",
"support.cglayout.swift"
],
"type" : "library"
}
],
"tools_version" : "4.2"
}
Done.