Build Information
Successful build of ConstraintBuilder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PimCoumans/ConstraintBuilder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/PimCoumans/ConstraintBuilder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 37126ae Merge pull request #3 from PimCoumans/feature/improved-generics
Cloned https://github.com/PimCoumans/ConstraintBuilder.git
Revision (git rev-parse @):
37126aeb4e2d769f99fd3f694ae67917e36098c9
SUCCESS checkout https://github.com/PimCoumans/ConstraintBuilder.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/PimCoumans/ConstraintBuilder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/8] Compiling ConstraintBuilder NSLayoutConstraint.swift
[4/8] Compiling ConstraintBuilder UIView+ConstraintBuildable.swift
[5/8] Compiling ConstraintBuilder ConstraintBuilder.swift
AppKit.NSView:7:25: warning: main actor-isolated property 'safeAreaLayoutGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | open var additionalSafeAreaInsets: NSEdgeInsets { get set }
6 | @available(macOS 11.0, *)
7 | @MainActor open var safeAreaLayoutGuide: NSLayoutGuide { get }
| `- warning: main actor-isolated property 'safeAreaLayoutGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | @available(macOS 11.0, *)
9 | open var safeAreaRect: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:12:19: note: add '@preconcurrency' to the 'LayoutContainerView' conformance to defer isolation checking to run time
10 | public typealias LayoutGuide = NSLayoutGuide
11 | extension NSLayoutGuide: LayoutContainer { }
12 | extension NSView: LayoutContainerView { }
| `- note: add '@preconcurrency' to the 'LayoutContainerView' conformance to defer isolation checking to run time
13 | #endif
14 |
:
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- note: 'safeAreaLayoutGuide' declared here
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
AppKit.NSView:11:14: warning: main actor-isolated property 'layoutMarginsGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 | open var safeAreaRect: NSRect { get }
10 | @available(macOS 11.0, *)
11 | open var layoutMarginsGuide: NSLayoutGuide { get }
| `- warning: main actor-isolated property 'layoutMarginsGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:6: note: 'layoutMarginsGuide' declared here
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- note: 'layoutMarginsGuide' declared here
35 | }
36 |
AppKit.NSView:3:25: warning: main actor-isolated property 'leadingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'leadingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:6: note: 'leadingAnchor' declared here
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'leadingAnchor' declared here
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:5:14: warning: main actor-isolated property 'trailingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'trailingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:6: note: 'trailingAnchor' declared here
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'trailingAnchor' declared here
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:7:14: warning: main actor-isolated property 'leftAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'leftAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | @available(macOS 10.11, *)
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:6: note: 'leftAnchor' declared here
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'leftAnchor' declared here
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:9:14: warning: main actor-isolated property 'rightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
8 | @available(macOS 10.11, *)
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'rightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:6: note: 'rightAnchor' declared here
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'rightAnchor' declared here
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:11:14: warning: main actor-isolated property 'topAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'topAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:6: note: 'topAnchor' declared here
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'topAnchor' declared here
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
AppKit.NSView:13:14: warning: main actor-isolated property 'bottomAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'bottomAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:6: note: 'bottomAnchor' declared here
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'bottomAnchor' declared here
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
AppKit.NSView:15:14: warning: main actor-isolated property 'widthAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
| `- warning: main actor-isolated property 'widthAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
16 | @available(macOS 10.11, *)
17 | open var heightAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:6: note: 'widthAnchor' declared here
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- note: 'widthAnchor' declared here
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:17:14: warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | open var widthAnchor: NSLayoutDimension { get }
16 | @available(macOS 10.11, *)
17 | open var heightAnchor: NSLayoutDimension { get }
| `- warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
18 | @available(macOS 10.11, *)
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:6: note: 'heightAnchor' declared here
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- note: 'heightAnchor' declared here
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:19:14: warning: main actor-isolated property 'centerXAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'centerXAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:6: note: 'centerXAnchor' declared here
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'centerXAnchor' declared here
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
AppKit.NSView:21:14: warning: main actor-isolated property 'centerYAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'centerYAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:6: note: 'centerYAnchor' declared here
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'centerYAnchor' declared here
27 | }
28 |
[6/8] Compiling ConstraintBuilder Collection+ConstraintBuildable.swift
[7/8] Emitting module ConstraintBuilder
AppKit.NSView:7:25: warning: main actor-isolated property 'safeAreaLayoutGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | open var additionalSafeAreaInsets: NSEdgeInsets { get set }
6 | @available(macOS 11.0, *)
7 | @MainActor open var safeAreaLayoutGuide: NSLayoutGuide { get }
| `- warning: main actor-isolated property 'safeAreaLayoutGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | @available(macOS 11.0, *)
9 | open var safeAreaRect: NSRect { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:12:19: note: add '@preconcurrency' to the 'LayoutContainerView' conformance to defer isolation checking to run time
10 | public typealias LayoutGuide = NSLayoutGuide
11 | extension NSLayoutGuide: LayoutContainer { }
12 | extension NSView: LayoutContainerView { }
| `- note: add '@preconcurrency' to the 'LayoutContainerView' conformance to defer isolation checking to run time
13 | #endif
14 |
:
30 | public protocol LayoutContainerView: LayoutContainer {
31 | @available(macOS 11.0, iOS 11.0, tvOS 11.0, *)
32 | var safeAreaLayoutGuide: LayoutGuide { get }
| `- note: 'safeAreaLayoutGuide' declared here
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
AppKit.NSView:11:14: warning: main actor-isolated property 'layoutMarginsGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 | open var safeAreaRect: NSRect { get }
10 | @available(macOS 11.0, *)
11 | open var layoutMarginsGuide: NSLayoutGuide { get }
| `- warning: main actor-isolated property 'layoutMarginsGuide' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:34:6: note: 'layoutMarginsGuide' declared here
32 | var safeAreaLayoutGuide: LayoutGuide { get }
33 | @available(macOS 11.0, iOS 9.0, tvOS 9.0, *)
34 | var layoutMarginsGuide: LayoutGuide { get }
| `- note: 'layoutMarginsGuide' declared here
35 | }
36 |
AppKit.NSView:3:25: warning: main actor-isolated property 'leadingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
1 | extension NSView {
2 | @available(macOS 10.11, *)
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'leadingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:17:6: note: 'leadingAnchor' declared here
15 | // Anchors shared by views and layout guides
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'leadingAnchor' declared here
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:5:14: warning: main actor-isolated property 'trailingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
3 | @MainActor open var leadingAnchor: NSLayoutXAxisAnchor { get }
4 | @available(macOS 10.11, *)
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'trailingAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:18:6: note: 'trailingAnchor' declared here
16 | public protocol LayoutContainer {
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'trailingAnchor' declared here
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:7:14: warning: main actor-isolated property 'leftAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
5 | open var trailingAnchor: NSLayoutXAxisAnchor { get }
6 | @available(macOS 10.11, *)
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'leftAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 | @available(macOS 10.11, *)
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:19:6: note: 'leftAnchor' declared here
17 | var leadingAnchor: NSLayoutXAxisAnchor { get }
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'leftAnchor' declared here
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:9:14: warning: main actor-isolated property 'rightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
7 | open var leftAnchor: NSLayoutXAxisAnchor { get }
8 | @available(macOS 10.11, *)
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'rightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:20:6: note: 'rightAnchor' declared here
18 | var trailingAnchor: NSLayoutXAxisAnchor { get }
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'rightAnchor' declared here
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:11:14: warning: main actor-isolated property 'topAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
9 | open var rightAnchor: NSLayoutXAxisAnchor { get }
10 | @available(macOS 10.11, *)
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'topAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:21:6: note: 'topAnchor' declared here
19 | var leftAnchor: NSLayoutXAxisAnchor { get }
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'topAnchor' declared here
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
AppKit.NSView:13:14: warning: main actor-isolated property 'bottomAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
11 | open var topAnchor: NSLayoutYAxisAnchor { get }
12 | @available(macOS 10.11, *)
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'bottomAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:22:6: note: 'bottomAnchor' declared here
20 | var rightAnchor: NSLayoutXAxisAnchor { get }
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'bottomAnchor' declared here
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
AppKit.NSView:15:14: warning: main actor-isolated property 'widthAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
13 | open var bottomAnchor: NSLayoutYAxisAnchor { get }
14 | @available(macOS 10.11, *)
15 | open var widthAnchor: NSLayoutDimension { get }
| `- warning: main actor-isolated property 'widthAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
16 | @available(macOS 10.11, *)
17 | open var heightAnchor: NSLayoutDimension { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:23:6: note: 'widthAnchor' declared here
21 | var topAnchor: NSLayoutYAxisAnchor { get }
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
| `- note: 'widthAnchor' declared here
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
AppKit.NSView:17:14: warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | open var widthAnchor: NSLayoutDimension { get }
16 | @available(macOS 10.11, *)
17 | open var heightAnchor: NSLayoutDimension { get }
| `- warning: main actor-isolated property 'heightAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
18 | @available(macOS 10.11, *)
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:24:6: note: 'heightAnchor' declared here
22 | var bottomAnchor: NSLayoutYAxisAnchor { get }
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
| `- note: 'heightAnchor' declared here
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
AppKit.NSView:19:14: warning: main actor-isolated property 'centerXAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
17 | open var heightAnchor: NSLayoutDimension { get }
18 | @available(macOS 10.11, *)
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- warning: main actor-isolated property 'centerXAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:25:6: note: 'centerXAnchor' declared here
23 | var widthAnchor: NSLayoutDimension { get }
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
| `- note: 'centerXAnchor' declared here
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
27 | }
AppKit.NSView:21:14: warning: main actor-isolated property 'centerYAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
19 | open var centerXAnchor: NSLayoutXAxisAnchor { get }
20 | @available(macOS 10.11, *)
21 | open var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- warning: main actor-isolated property 'centerYAnchor' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
22 | @available(macOS 10.11, *)
23 | open var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/ConstraintBuilder.swift:26:6: note: 'centerYAnchor' declared here
24 | var heightAnchor: NSLayoutDimension { get }
25 | var centerXAnchor: NSLayoutXAxisAnchor { get }
26 | var centerYAnchor: NSLayoutYAxisAnchor { get }
| `- note: 'centerYAnchor' declared here
27 | }
28 |
[8/8] Compiling ConstraintBuilder NSView+ConstraintBuildable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/NSView+ConstraintBuildable.swift:6:13: warning: main actor-isolated property 'superview' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
3 |
4 | extension ViewConstraintBuildable where Self: NSView {
5 | public func withSuperview(_ method: (LayoutContainerView) -> Void) {
| `- note: add '@MainActor' to make instance method 'withSuperview' part of global actor 'MainActor'
6 | guard let superview else {
| `- warning: main actor-isolated property 'superview' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
7 | return assertionFailure()
8 | }
AppKit.NSView:5:41: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | @MainActor unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ConstraintBuilder/NSView+ConstraintBuildable.swift:13:3: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
10 | }
11 |
12 | public func applyConstraints(@ConstraintBuilder _ builder: (Self) -> [NSLayoutConstraint]) {
| `- note: add '@MainActor' to make instance method 'applyConstraints' part of global actor 'MainActor'
13 | translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
14 | NSLayoutConstraint.activate(builder(self))
15 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
Build complete! (23.99s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ConstraintBuilder",
"name" : "ConstraintBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "ConstraintBuilder",
"targets" : [
"ConstraintBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ConstraintBuilderTests",
"module_type" : "SwiftTarget",
"name" : "ConstraintBuilderTests",
"path" : "Tests/ConstraintBuilderTests",
"sources" : [
"ConstraintBuilderTests.swift"
],
"target_dependencies" : [
"ConstraintBuilder"
],
"type" : "test"
},
{
"c99name" : "ConstraintBuilder",
"module_type" : "SwiftTarget",
"name" : "ConstraintBuilder",
"path" : "Sources/ConstraintBuilder",
"product_memberships" : [
"ConstraintBuilder"
],
"sources" : [
"Collection+ConstraintBuildable.swift",
"ConstraintBuilder.swift",
"Extensions/NSLayoutConstraint.swift",
"NSView+ConstraintBuildable.swift",
"UIView+ConstraintBuildable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.