Build Information
Failed to build Macaw with Swift 6.0 for macOS (SPM).
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
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[137/148] Compiling Macaw CAAnimationClosure.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[138/148] Compiling Macaw CGFloat+Double.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[139/148] Compiling Macaw NSTimer+Closure.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[140/148] Compiling Macaw BoundsUtils.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[141/148] Compiling Macaw CGMappings.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[142/148] Compiling Macaw CommonError.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[143/148] Compiling Macaw DescriptionExtensions.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[144/148] Compiling Macaw UIImage2Image.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[145/148] Compiling Macaw MacawView.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[146/148] Compiling Macaw MacawZoom.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[147/148] Compiling Macaw ShapeLayer.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
[148/148] Compiling Macaw Touchable.swift
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:4:23: warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
| |- warning: static property 'mid' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let max: Align = MaxAlign()
6 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:5:23: warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
| |- warning: static property 'max' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'max' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | open func align(outer: Double, inner: Double) -> Double {
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:342:23: warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
340 | }
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
| |- warning: static property 'defaultStrokeLineCap' is not concurrency-safe because non-'Sendable' type 'LineCap' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineCap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | public static let defaultStrokeLineJoin = LineJoin.miter
344 |
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineCap.swift:1:13: note: consider making enum 'LineCap' conform to the 'Sendable' protocol
1 | public enum LineCap {
| `- note: consider making enum 'LineCap' conform to the 'Sendable' protocol
2 | case butt
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/svg/SVGConstants.swift:343:23: warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
341 |
342 | public static let defaultStrokeLineCap = LineCap.butt
343 | public static let defaultStrokeLineJoin = LineJoin.miter
| |- warning: static property 'defaultStrokeLineJoin' is not concurrency-safe because non-'Sendable' type 'LineJoin' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultStrokeLineJoin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
344 |
345 | }
/Users/admin/builder/spi-builder-workspace/Source/model/draw/LineJoin.swift:1:13: note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
1 | public enum LineJoin {
| `- note: consider making enum 'LineJoin' conform to the 'Sendable' protocol
2 | case miter
3 | case round
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Transform.swift:12:23: warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public final class Transform {
| `- note: class 'Transform' does not conform to the 'Sendable' protocol
4 |
5 | public let m11: Double
:
10 | public let dy: Double
11 |
12 | public static let identity = Transform()
| |- warning: static property 'identity' is not concurrency-safe because non-'Sendable' type 'Transform' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'identity' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(_ m11: Double, _ m12: Double, _ m21: Double, _ m22: Double, _ dx: Double, _ dy: Double) {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:4:23: warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
4 | public static let meet: AspectRatio = MeetAspectRatio()
| |- warning: static property 'meet' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'meet' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static let slice: AspectRatio = SliceAspectRatio()
6 | internal static let doNothing: AspectRatio = DoNothingAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Point.swift:8:23: warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Point: Locus {
| `- note: class 'Point' does not conform to the 'Sendable' protocol
4 |
5 | public let x: Double
6 | public let y: Double
7 |
8 | public static let origin = Point(0, 0)
| |- warning: static property 'origin' is not concurrency-safe because non-'Sendable' type 'Point' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'origin' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ x: Double, _ y: Double) {
/Users/admin/builder/spi-builder-workspace/Source/utils/UIImage2Image.swift:15:5: warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | var imagesMap = [String: MImage]()
| |- warning: var 'imagesMap' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'imagesMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'imagesMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | public extension MImage {
/Users/admin/builder/spi-builder-workspace/Source/model/draw/Align.swift:3:23: warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class Align {
| `- note: class 'Align' does not conform to the 'Sendable' protocol
2 |
3 | public static let min: Align = Align()
| |- warning: static property 'min' is not concurrency-safe because non-'Sendable' type 'Align' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'min' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let mid: Align = MidAlign()
5 | public static let max: Align = MaxAlign()
/Users/admin/builder/spi-builder-workspace/Source/model/draw/AspectRatio.swift:3:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
1 | open class AspectRatio {
| `- note: class 'AspectRatio' does not conform to the 'Sendable' protocol
2 |
3 | public static let none: AspectRatio = AspectRatio()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'AspectRatio' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 | public static let meet: AspectRatio = MeetAspectRatio()
5 | public static let slice: AspectRatio = SliceAspectRatio()
/Users/admin/builder/spi-builder-workspace/Source/animation/AnimationProducer.swift:9:5: warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
7 | #endif
8 |
9 | let animationProducer = AnimationProducer()
| |- warning: let 'animationProducer' is not concurrency-safe because non-'Sendable' type 'AnimationProducer' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'animationProducer' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | class AnimationProducer {
| `- note: class 'AnimationProducer' does not conform to the 'Sendable' protocol
12 |
13 | var storedAnimations = [Node: BasicAnimation]() // is used to make sure node is in view hierarchy before actually creating the animation
/Users/admin/builder/spi-builder-workspace/Source/layout/ContentLayout.swift:17:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
13 | #endif
14 |
15 | open class ContentLayout {
| `- note: class 'ContentLayout' does not conform to the 'Sendable' protocol
16 |
17 | public static let none: ContentLayout = NoneLayout()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ContentLayout' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | public static func of(scaling: AspectRatio = .meet, xAlign: Align = .mid, yAlign: Align = .mid) -> ContentLayout {
/Users/admin/builder/spi-builder-workspace/Source/render/RenderContext.swift:9:20: error: cannot find type 'CGContext' in scope
7 | class RenderContext {
8 | weak var view: DrawingView?
9 | var cgContext: CGContext?
| `- error: cannot find type 'CGContext' in scope
10 |
11 | init(view: DrawingView?) {
/Users/admin/builder/spi-builder-workspace/Source/views/MacawView.swift:688:49: warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
680 | private var prevTransform: Transform?
681 |
682 | public func getTransform(_ nodeRenderer: NodeRenderer, _ layout: ContentLayout, _ size: Size) -> Transform {
| `- note: add '@MainActor' to make instance method 'getTransform' part of global actor 'MainActor'
683 | setSize(size: size)
684 | let node = nodeRenderer.node
:
686 | if let canvas = node as? SVGCanvas {
687 | if let view = nodeRenderer.view {
688 | rect = canvas.layout(size: view.bounds.size.toMacaw()).rect()
| `- warning: main actor-isolated property 'bounds' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
689 | } else {
690 | rect = BoundsUtils.getNodesBounds(canvas.contents)
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Source/model/geom2d/Size.swift:8:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class Size {
| `- note: class 'Size' does not conform to the 'Sendable' protocol
4 |
5 | public let w: Double
6 | public let h: Double
7 |
8 | public static let zero = Size(0, 0)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'Size' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | public init(_ w: Double, _ h: Double) {
Fetching https://github.com/drmohundro/SWXMLHash
[1/2770] Fetching swxmlhash
Fetched https://github.com/drmohundro/SWXMLHash from cache (1.08s)
Computing version for https://github.com/drmohundro/SWXMLHash
Computed https://github.com/drmohundro/SWXMLHash at 6.0.0 (0.73s)
Creating working copy for https://github.com/drmohundro/SWXMLHash
Working copy of https://github.com/drmohundro/SWXMLHash resolved at 6.0.0
BUILD FAILURE 6.0 macosSpm