Build Information
Successful build of NativeMarkKit, reference master (c58eb7
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 15:49:21 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[117/153] Compiling NativeMarkKit PaddingValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[118/153] Compiling NativeMarkKit RenderParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[119/153] Compiling NativeMarkKit Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[120/153] Compiling NativeMarkKit SpacerAttachment.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[121/153] Compiling NativeMarkKit TaskItemTextAttachment+AppKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[122/153] Compiling NativeMarkKit TaskItemTextAttachment+UIKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[123/153] Compiling NativeMarkKit TextContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/StyleSheet.swift:49:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
8 | #endif
9 |
10 | public final class StyleSheet {
| `- note: class 'StyleSheet' does not conform to the 'Sendable' protocol
11 | private var blockStyles: [BlockStyleSelector: [BlockStyle]]
12 | private var inlineStyles: [InlineStyleSelector: [InlineStyle]]
:
47 |
48 | public extension StyleSheet {
49 | static let `default` = StyleSheet(
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'StyleSheet' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
50 | [
51 | .document: [
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/Environment.swift:18:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public static var `default` = Environment(imageLoader: DefaultImageLoader(),
| |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'default' 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
19 | imageSizer: DefaultImageSizer())
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:118:10: warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
115 | }
116 |
117 | extension NativeMarkLabel: AbstractViewDelegate {
| `- note: add '@preconcurrency' to the 'AbstractViewDelegate' conformance to defer isolation checking to run time
118 | func abstractViewDidInvalidateRect(_ rect: CGRect) {
| |- warning: main actor-isolated instance method 'abstractViewDidInvalidateRect' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'abstractViewDidInvalidateRect' to make this instance method not isolated to the actor
119 | invalidateIntrinsicContentSize()
120 | setNeedsDisplay(rect)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/AbstractView.swift:9:10: note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
7 |
8 | protocol AbstractViewDelegate: AnyObject {
9 | func abstractViewDidInvalidateRect(_ rect: CGRect)
| `- note: mark the protocol requirement 'abstractViewDidInvalidateRect' 'async' to allow actor-isolated conformances
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:42: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSWindow:196:26: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
194 | open var preventsApplicationTerminationWhenModal: Bool { get set }
195 | @available(macOS 10.7, *)
196 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
197 | @available(macOS 10.7, *)
198 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:34: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:4:41: note: property declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:101:65: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | setAccessibilityLabel(url.label)
100 | setAccessibilityURL(url.url)
101 | let screenFrame = parent.window?.convertToScreen(parent.convert(url.frame, to: nil)) ?? url.frame
| `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | setAccessibilityFrame(screenFrame)
103 | setAccessibilityParent(parent)
AppKit.NSView:104:26: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
102 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
103 | open func convertRect(_ rect: NSRect, fromView view: NSView?) -> NSRect
104 | @MainActor open func convert(_ rect: NSRect, to view: NSView?) -> NSRect
| `- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
105 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
106 | open func convertRect(_ rect: NSRect, toView view: NSView?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeMarkLabel+AppKit.swift:112:17: warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | public override var isFlipped: Bool { true }
9 |
10 | public var onOpenLink: ((URL) -> Void)? {
| `- note: property declared here
11 | get { abstractView.onOpenLink }
12 | set { abstractView.onOpenLink = newValue }
:
110 |
111 | override func accessibilityPerformPress() -> Bool {
112 | parent?.onOpenLink?(url.url)
| `- warning: main actor-isolated property 'onOpenLink' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | return true
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:13:9: warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: mutation of this property is only permitted within the actor
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
11 |
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:14:16: warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
| `- note: property declared here
7 |
8 | override func draw(withFrame cellFrame: NSRect, in controlView: NSView?) {
:
12 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
13 | nativeTextAttachment?.characterIndex = charIndex
14 | return nativeTextAttachment?.lineFragment(for: textContainer, proposedLineFragment: lineFrag) ?? .zero
| `- warning: main actor-isolated property 'nativeTextAttachment' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/NativeTextAttachment.swift:30:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
3 | import AppKit
4 |
5 | final class NativeTextAttachmentCell: NSTextAttachmentCell {
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
6 | private var nativeTextAttachment: NativeTextAttachment? { attachment as? NativeTextAttachment }
7 |
:
28 | super.init(data: nil, ofType: nil)
29 | #if canImport(AppKit)
30 | self.attachmentCell = NativeTextAttachmentCell()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | #endif
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:37: warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: call to main actor-isolated instance method 'sizeThatFits' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
AppKit.NSControl:31:26: note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
29 | open var doubleValue: Double { get set }
30 | @available(macOS 10.10, *)
31 | @MainActor open func sizeThatFits(_ size: NSSize) -> NSSize
| `- note: calls to instance method 'sizeThatFits' from outside of its actor context are implicitly asynchronous
32 | @MainActor open func sizeToFit()
33 | open func sendAction(on mask: NSEvent.EventTypeMask) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:36:28: warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
4 |
5 | final class TaskItemTextAttachmentCell: NSTextAttachmentCell {
6 | private lazy var checkbox: NSButton = {
| `- note: property declared here
7 | let button = NSButton(frame: .zero)
8 | button.setButtonType(.switch)
:
34 |
35 | override func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRect {
36 | let checkboxSize = checkbox.sizeThatFits(lineFrag.size)
| `- warning: main actor-isolated property 'checkbox' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | return CGRect(x: 0, y: 0, width: checkboxSize.width, height: checkboxSize.height)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/render/TaskItemTextAttachment+AppKit.swift:44:31: warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | }()
14 |
15 | init(isChecked: Bool) {
| `- note: calls to initializer 'init(isChecked:)' from outside of its actor context are implicitly asynchronous
16 | super.init()
17 | checkbox.state = isChecked ? .on : .off
:
42 | init(isChecked: Bool) {
43 | super.init(data: nil, ofType: nil)
44 | self.attachmentCell = TaskItemTextAttachmentCell(isChecked: isChecked)
| `- warning: call to main actor-isolated initializer 'init(isChecked:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
[124/153] Compiling NativeMarkKit DelimiterParser.swift
[125/153] Compiling NativeMarkKit DelimiterStack.swift
[126/153] Compiling NativeMarkKit EntityParser.swift
[127/153] Compiling NativeMarkKit InlineBlockParser.swift
[128/153] Compiling NativeMarkKit InlineLinkParser.swift
[129/153] Compiling NativeMarkKit InlineParser.swift
[130/153] Compiling NativeMarkKit LinkDefinitionParser.swift
[131/153] Compiling NativeMarkKit LinkDestinationParser.swift
[132/153] Compiling NativeMarkKit LinkLabel.swift
[133/153] Compiling NativeMarkKit LinkLabelParser.swift
[134/153] Compiling NativeMarkKit LinkTitleParser.swift
[135/153] Compiling NativeMarkKit NewlineParser.swift
[136/153] Compiling NativeMarkKit OpenBracketParser.swift
[137/153] Compiling NativeMarkKit SpacesAndNewlineParser.swift
[138/153] Compiling NativeMarkKit StringParser.swift
[139/153] Compiling NativeMarkKit StyleStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[140/153] Compiling NativeMarkKit TextStyle+AppKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[141/153] Compiling NativeMarkKit TextStyle+UIKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[142/153] Compiling NativeMarkKit TextStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[143/153] Compiling NativeMarkKit Underline.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[144/153] Compiling NativeMarkKit UnorderedListMarkerFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[145/153] Compiling NativeMarkKit Array+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[146/153] Compiling NativeMarkKit CGFloat+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[147/153] Compiling NativeMarkKit CGPoint+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[148/153] Compiling NativeMarkKit CGRect+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[149/153] Compiling NativeMarkKit Character+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[150/153] Compiling NativeMarkKit HtmlEntities.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[151/153] Compiling NativeMarkKit Identifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[152/153] Compiling NativeMarkKit ParserError.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
[153/153] Compiling NativeMarkKit String+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:26:23: warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
| |- warning: static property 'monospace' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospace' 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
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:24:23: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
22 |
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'italic' 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
25 | public static let bold = FontTraits(rawValue: 1 << 1)
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:25:23: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
23 | public static let unspecified: FontTraits = []
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bold' 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
26 | public static let monospace = FontTraits(rawValue: 1 << 2)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/NativeMarkKit/style/TextStyle.swift:23:23: warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
14 | }
15 |
16 | public struct FontTraits: OptionSet {
| `- note: consider making struct 'FontTraits' conform to the 'Sendable' protocol
17 | public let rawValue: Int
18 |
:
21 | }
22 |
23 | public static let unspecified: FontTraits = []
| |- warning: static property 'unspecified' is not concurrency-safe because non-'Sendable' type 'FontTraits' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unspecified' 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
24 | public static let italic = FontTraits(rawValue: 1 << 0)
25 | public static let bold = FontTraits(rawValue: 1 << 1)
Build complete! (21.83s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NativeMarkKit",
"name" : "NativeMarkKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "NativeMarkKit",
"targets" : [
"NativeMarkKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NativeMarkKitTests",
"module_type" : "SwiftTarget",
"name" : "NativeMarkKitTests",
"path" : "Tests/NativeMarkKitTests",
"sources" : [
"AbstractView+Testing.swift",
"AtxheadingsTest.swift",
"AutolinksTest.swift",
"BackslashescapesTest.swift",
"BaseRenderTestCase.swift",
"BasicRenderTest.swift",
"BlanklinesTest.swift",
"BlockquotesTest.swift",
"CGContext+Testing.swift",
"CodespansTest.swift",
"EmphasisandstrongemphasisTest.swift",
"EntityandnumericcharacterreferencesTest.swift",
"Fakes/FakeImageLoader.swift",
"FencedcodeblocksTest.swift",
"Fixtures/NativeImage+Fixtures.swift",
"HardlinebreaksTest.swift",
"HtmlblocksTest.swift",
"ImagesTest.swift",
"IndentedcodeblocksTest.swift",
"InlinesTest.swift",
"LinkreferencedefinitionsTest.swift",
"LinksTest.swift",
"ListitemsTest.swift",
"ListsTest.swift",
"NativeImage+Testing.swift",
"ParagraphsTest.swift",
"PrecedenceTest.swift",
"RawhtmlTest.swift",
"RenderTestCase.swift",
"SetextheadingsTest.swift",
"SoftlinebreaksTest.swift",
"StrikethroughTest.swift",
"TabsTest.swift",
"TaskListItemTest.swift",
"TestHelpers.swift",
"TextStyleTest.swift",
"TextualcontentTest.swift",
"ThematicbreaksTest.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NativeMarkKit"
],
"type" : "test"
},
{
"c99name" : "NativeMarkKit",
"module_type" : "SwiftTarget",
"name" : "NativeMarkKit",
"path" : "Sources/NativeMarkKit",
"product_memberships" : [
"NativeMarkKit"
],
"sources" : [
"ast/Document.swift",
"ast/Element.swift",
"ast/InlineText.swift",
"ast/Link.swift",
"ast/LinkDefinition.swift",
"ast/ListInfo.swift",
"ast/ListInfoKind.swift",
"ast/ListItem.swift",
"ast/TaskListItemMark.swift",
"block/ATXHeadingBlockStarter.swift",
"block/Block.swift",
"block/BlockCloser.swift",
"block/BlockContinuationParser.swift",
"block/BlockKind.swift",
"block/BlockParser.swift",
"block/BlockQuoteBlockParser.swift",
"block/BlockQuoteStarter.swift",
"block/BlockStartParser.swift",
"block/DocumentBlockParser.swift",
"block/FencedCodeBlockParser.swift",
"block/FencedCodeBlockStarter.swift",
"block/HeadingBlockParser.swift",
"block/IndentedCodeBlockParser.swift",
"block/IndentedCodeBlockStarter.swift",
"block/ItemBlockParser.swift",
"block/ItemBlockStarter.swift",
"block/LineInserter.swift",
"block/LineParser.swift",
"block/LineResult.swift",
"block/LinkDefinitionsLineParser.swift",
"block/ListBlockParser.swift",
"block/ListKind.swift",
"block/ListStyle.swift",
"block/ParagraphBlockParser.swift",
"block/SetextHeadingBlockStarter.swift",
"block/ThematicBreakBlockParser.swift",
"block/ThematicBreakBlockStarter.swift",
"inline/AutolinkParser.swift",
"inline/BackslashParser.swift",
"inline/BackticksParser.swift",
"inline/BangParser.swift",
"inline/BlockLinkDefinition.swift",
"inline/CloseBracketParser.swift",
"inline/Delimiter.swift",
"inline/DelimiterOrInlineText.swift",
"inline/DelimiterParser.swift",
"inline/DelimiterStack.swift",
"inline/EntityParser.swift",
"inline/InlineBlockParser.swift",
"inline/InlineLinkParser.swift",
"inline/InlineParser.swift",
"inline/LinkDefinitionParser.swift",
"inline/LinkDestinationParser.swift",
"inline/LinkLabel.swift",
"inline/LinkLabelParser.swift",
"inline/LinkTitleParser.swift",
"inline/NewlineParser.swift",
"inline/OpenBracketParser.swift",
"inline/SpacesAndNewlineParser.swift",
"inline/StringParser.swift",
"inline/TextCursor.swift",
"inline/TextPosition.swift",
"inline/TextRange.swift",
"inline/TextResult.swift",
"lexer/Lexer.swift",
"lexer/Line.swift",
"lexer/LineColumn.swift",
"lexer/LineColumnCount.swift",
"render/AbstractView.swift",
"render/AccessibleURL.swift",
"render/BlockQuoteTextContainerLayout.swift",
"render/BorderValue.swift",
"render/CGRect+Render.swift",
"render/CompositeTextContainerLayout .swift",
"render/ContainerBreakValue.swift",
"render/Environment.swift",
"render/GraphicsContext.swift",
"render/ImageTextAttachment.swift",
"render/InlineContainerStyleValue.swift",
"render/Int+Render.swift",
"render/LayoutManager.swift",
"render/LeafTextContainerLayout.swift",
"render/ListItemContentTextContainerLayout.swift",
"render/ListItemMarkerContainerLayout.swift",
"render/ListItemTextContainerLayout.swift",
"render/ListTextContainerLayout.swift",
"render/ListValue.swift",
"render/MarginValue.swift",
"render/NSAttributedStringKey+NativeMark.swift",
"render/NSTextStorage+NativeMark.swift",
"render/NativeImage.swift",
"render/NativeMarkLabel+AppKit.swift",
"render/NativeMarkLabel+UIKit.swift",
"render/NativeMarkText+AppKit.swift",
"render/NativeMarkText+UIKit.swift",
"render/NativeTextAttachment.swift",
"render/OrderedListMarkerFormat+Render.swift",
"render/OrderedListMarkerFormatValue.swift",
"render/PaddingValue.swift",
"render/RenderParser.swift",
"render/Renderer.swift",
"render/SpacerAttachment.swift",
"render/TaskItemTextAttachment+AppKit.swift",
"render/TaskItemTextAttachment+UIKit.swift",
"render/TextContainer.swift",
"render/TextContainerLayout.swift",
"render/TextContainerLayoutBuilder.swift",
"render/TextContainerStyle.swift",
"render/ThematicBreakAttachment.swift",
"render/URLOpener.swift",
"render/UnorderedListMarkerFormat+Render.swift",
"render/UnorderedListMarkerFormatValue.swift",
"style/AspectScaleDownByHeight.swift",
"style/AspectScaleDownByWidth.swift",
"style/BlockStyle.swift",
"style/BlockStyleSelector.swift",
"style/Border.swift",
"style/BorderSides.swift",
"style/DefaultImageLoader.swift",
"style/DefaultImageSizer.swift",
"style/Em.swift",
"style/FourSidedValue.swift",
"style/ImageLoader.swift",
"style/ImageSizer.swift",
"style/InlineStyle.swift",
"style/InlineStyleSelector.swift",
"style/Length.swift",
"style/Margin.swift",
"style/NativeColor+Adaptable.swift",
"style/NativeTypes.swift",
"style/OrderedListMarkerFormat.swift",
"style/Padding.swift",
"style/Points.swift",
"style/Strikethrough.swift",
"style/StyleSheet.swift",
"style/StyleStack.swift",
"style/TextStyle+AppKit.swift",
"style/TextStyle+UIKit.swift",
"style/TextStyle.swift",
"style/Underline.swift",
"style/UnorderedListMarkerFormat.swift",
"utils/Array+Utils.swift",
"utils/CGFloat+Utils.swift",
"utils/CGPoint+Utils.swift",
"utils/CGRect+Utils.swift",
"utils/Character+Utils.swift",
"utils/HtmlEntities.swift",
"utils/Identifier.swift",
"utils/ParserError.swift",
"utils/String+Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.