Build Information
Successful build of ErrorReporter with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/ErrorHandling.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/ErrorHandling
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0571a31 bump Swift version
Cloned https://github.com/CleanCocoa/ErrorHandling.git
Revision (git rev-parse @):
0571a3147f8f0e2c8f65d829f15d6cd9e60b7b49
SUCCESS checkout https://github.com/CleanCocoa/ErrorHandling.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/CleanCocoa/ErrorHandling.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/9] Compiling ErrorReporter Report.swift
[5/9] Compiling ErrorReporter resource_bundle_accessor.swift
[6/9] Compiling ErrorReporter Optional.swift
[7/9] Compiling ErrorReporter TextEmailer.swift
[8/9] Emitting module ErrorReporter
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:52:23: warning: static property 'emailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
50 | public class ErrorAlert {
51 |
52 | public static var emailer: ReportEmailer?
| |- warning: static property 'emailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emailer' 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
53 |
54 | let reportable: Reportable
[9/9] Compiling ErrorReporter ErrorAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:52:23: warning: static property 'emailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
50 | public class ErrorAlert {
51 |
52 | public static var emailer: ReportEmailer?
| |- warning: static property 'emailer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'emailer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'emailer' 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
53 |
54 | let reportable: Reportable
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:77:32: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | /// - parameter instructions: Optional text prepended to the email message used to ask for details. Defaults to `nil`.
71 | public func displayModal(instructions: String? = nil) {
| `- note: add '@MainActor' to make instance method 'displayModal(instructions:)' part of global actor 'MainActor'
72 |
73 | guard !IsRunningTests else {
:
75 | }
76 |
77 | let response = alert().runModal()
| `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 |
79 | guard response == .alertFirstButtonReturn else { return }
AppKit.NSAlert:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:87:21: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 | alert.messageText = NSLocalizedString(
89 | "de.christiantietze.ErrorHandling alert title",
AppKit.NSAlert:33:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:88:15: warning: main actor-isolated property 'messageText' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
88 | alert.messageText = NSLocalizedString(
| `- warning: main actor-isolated property 'messageText' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
89 | "de.christiantietze.ErrorHandling alert title",
90 | value: "An unexpected error occured and the operation couldn't be completed.",
AppKit.NSAlert:5:14: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:92:15: warning: main actor-isolated property 'informativeText' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
90 | value: "An unexpected error occured and the operation couldn't be completed.",
91 | comment: "Alert title text")
92 | alert.informativeText = NSLocalizedString(
| `- warning: main actor-isolated property 'informativeText' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
93 | "de.christiantietze.ErrorHandling alert text",
94 | value: "The report will not be sent directly. Reporting the error will compose an email draft that you can edit. You can also edit in the text field below.",
AppKit.NSAlert:6:14: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | open var messageText: String { get set }
6 | open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | open func addButton(withTitle title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:97:34: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
95 | comment: "Description of the reporting procedure")
96 |
97 | let reportButton = alert.addButton(withTitle: NSLocalizedString(
| `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
98 | "de.christiantietze.ErrorHandling report button title",
99 | value: "Report Problem",
AppKit.NSAlert:8:15: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:101:34: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
99 | value: "Report Problem",
100 | comment: "Default button to report the error"))
101 | let cancelButton = alert.addButton(withTitle: NSLocalizedString(
| `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | "de.christiantietze.ErrorHandling cancel button title",
103 | value: "Ignore and Continue",
AppKit.NSAlert:8:15: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:105:22: warning: main actor-isolated property 'keyEquivalent' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
103 | value: "Ignore and Continue",
104 | comment: "Cancel button, indicating that the app can continue"))
105 | cancelButton.keyEquivalent = "."
| `- warning: main actor-isolated property 'keyEquivalent' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
106 | cancelButton.keyEquivalentModifierMask = [.command]
107 |
AppKit.NSButton:69:25: note: mutation of this property is only permitted within the actor
67 | open func setNextState()
68 | open func highlight(_ flag: Bool)
69 | @MainActor open var keyEquivalent: String { get set }
| `- note: mutation of this property is only permitted within the actor
70 | open var keyEquivalentModifierMask: NSEvent.ModifierFlags { get set }
71 | open func performKeyEquivalent(with key: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:106:22: warning: main actor-isolated property 'keyEquivalentModifierMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
104 | comment: "Cancel button, indicating that the app can continue"))
105 | cancelButton.keyEquivalent = "."
106 | cancelButton.keyEquivalentModifierMask = [.command]
| `- warning: main actor-isolated property 'keyEquivalentModifierMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
107 |
108 | alert.accessoryView = scrollableErrorView()
AppKit.NSButton:70:14: note: mutation of this property is only permitted within the actor
68 | open func highlight(_ flag: Bool)
69 | @MainActor open var keyEquivalent: String { get set }
70 | open var keyEquivalentModifierMask: NSEvent.ModifierFlags { get set }
| `- note: mutation of this property is only permitted within the actor
71 | open func performKeyEquivalent(with key: NSEvent) -> Bool
72 | @available(swift, obsoleted: 3, renamed: "performKeyEquivalent(with:)")
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:108:15: warning: main actor-isolated property 'accessoryView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
106 | cancelButton.keyEquivalentModifierMask = [.command]
107 |
108 | alert.accessoryView = scrollableErrorView()
| `- warning: main actor-isolated property 'accessoryView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
109 | alert.window.initialFirstResponder = reportButton
110 |
AppKit.NSAlert:17:14: note: mutation of this property is only permitted within the actor
15 | weak open var delegate: (any NSAlertDelegate)? { get set }
16 | @available(macOS 10.5, *)
17 | open var accessoryView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.5, *)
19 | open func layout()
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:109:22: warning: main actor-isolated property 'initialFirstResponder' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
107 |
108 | alert.accessoryView = scrollableErrorView()
109 | alert.window.initialFirstResponder = reportButton
| `- warning: main actor-isolated property 'initialFirstResponder' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
110 |
111 | return alert
AppKit.NSWindow:370:30: note: mutation of this property is only permitted within the actor
368 | @available(swift, obsoleted: 3, renamed: "performDrag(with:)")
369 | open func performWindowDragWithEvent(_ event: NSEvent)
370 | @MainActor weak open var initialFirstResponder: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
371 | open func selectNextKeyView(_ sender: Any?)
372 | open func selectPreviousKeyView(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:109:15: warning: main actor-isolated property 'window' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
83 | }
84 |
85 | private func alert() -> NSAlert {
| `- note: add '@MainActor' to make instance method 'alert()' part of global actor 'MainActor'
86 |
87 | let alert = NSAlert()
:
107 |
108 | alert.accessoryView = scrollableErrorView()
109 | alert.window.initialFirstResponder = reportButton
| `- warning: main actor-isolated property 'window' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
110 |
111 | return alert
AppKit.NSAlert:32:14: note: mutation of this property is only permitted within the actor
30 | @available(swift, obsoleted: 3, renamed: "beginSheetModal(for:completionHandler:)")
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
| `- note: mutation of this property is only permitted within the actor
33 | public init()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:116:26: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | scrollView.hasVerticalScroller = true
118 | scrollView.autohidesScrollers = true
AppKit.NSScrollView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSScrollView : NSView, NSTextFinderBarContainer {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | @available(macOS 10.7, *)
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:117:20: warning: main actor-isolated property 'hasVerticalScroller' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
117 | scrollView.hasVerticalScroller = true
| `- warning: main actor-isolated property 'hasVerticalScroller' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
118 | scrollView.autohidesScrollers = true
119 | scrollView.borderType = NSBorderType.bezelBorder
AppKit.NSScrollView:32:14: note: mutation of this property is only permitted within the actor
30 | @NSCopying open var backgroundColor: NSColor { get set }
31 | open var drawsBackground: Bool { get set }
32 | open var hasVerticalScroller: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
33 | open var hasHorizontalScroller: Bool { get set }
34 | open var verticalScroller: NSScroller? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:118:20: warning: main actor-isolated property 'autohidesScrollers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
117 | scrollView.hasVerticalScroller = true
118 | scrollView.autohidesScrollers = true
| `- warning: main actor-isolated property 'autohidesScrollers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
119 | scrollView.borderType = NSBorderType.bezelBorder
120 | scrollView.autoresizingMask = [ .width, .height ]
AppKit.NSScrollView:36:14: note: mutation of this property is only permitted within the actor
34 | open var verticalScroller: NSScroller? { get set }
35 | open var horizontalScroller: NSScroller? { get set }
36 | open var autohidesScrollers: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
37 | open var horizontalLineScroll: CGFloat { get set }
38 | open var verticalLineScroll: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:119:20: warning: main actor-isolated property 'borderType' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
117 | scrollView.hasVerticalScroller = true
118 | scrollView.autohidesScrollers = true
119 | scrollView.borderType = NSBorderType.bezelBorder
| `- warning: main actor-isolated property 'borderType' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
120 | scrollView.autoresizingMask = [ .width, .height ]
121 |
AppKit.NSScrollView:29:14: note: mutation of this property is only permitted within the actor
27 | open var contentView: NSClipView { get set }
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
| `- note: mutation of this property is only permitted within the actor
30 | @NSCopying open var backgroundColor: NSColor { get set }
31 | open var drawsBackground: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:120:20: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
:
118 | scrollView.autohidesScrollers = true
119 | scrollView.borderType = NSBorderType.bezelBorder
120 | scrollView.autoresizingMask = [ .width, .height ]
| `- warning: main actor-isolated property 'autoresizingMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
121 |
122 | let contentSize = scrollView.contentSize
AppKit.NSView:57:25: note: mutation of this property is only permitted within the actor
55 | open func resizeWithOldSuperviewSize(_ oldSize: NSSize)
56 | open var autoresizesSubviews: Bool { get set }
57 | @MainActor open var autoresizingMask: NSView.AutoresizingMask { get set }
| `- note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:122:38: warning: main actor-isolated property 'contentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
:
120 | scrollView.autoresizingMask = [ .width, .height ]
121 |
122 | let contentSize = scrollView.contentSize
| `- warning: main actor-isolated property 'contentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
123 | scrollView.documentView = errorTextView(contentSize: contentSize)
124 |
AppKit.NSScrollView:25:14: note: property declared here
23 | open class func contentSizeForFrameSize(_ fSize: NSSize, hasHorizontalScroller hFlag: Bool, hasVerticalScroller vFlag: Bool, borderType type: NSBorderType) -> NSSize
24 | open var documentVisibleRect: NSRect { get }
25 | open var contentSize: NSSize { get }
| `- note: property declared here
26 | open var documentView: NSView? { get set }
27 | open var contentView: NSClipView { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:123:20: warning: main actor-isolated property 'documentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private func scrollableErrorView() -> NSScrollView {
| `- note: add '@MainActor' to make instance method 'scrollableErrorView()' part of global actor 'MainActor'
115 |
116 | let scrollView = NSScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 150))
:
121 |
122 | let contentSize = scrollView.contentSize
123 | scrollView.documentView = errorTextView(contentSize: contentSize)
| `- warning: main actor-isolated property 'documentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
124 |
125 | return scrollView
AppKit.NSScrollView:26:14: note: mutation of this property is only permitted within the actor
24 | open var documentVisibleRect: NSRect { get }
25 | open var contentSize: NSSize { get }
26 | open var documentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
27 | open var contentView: NSClipView { get set }
28 | open var documentCursor: NSCursor? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:130:24: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | textView.isVerticallyResizable = true
132 | textView.isEditable = true
AppKit.NSTextView:4:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
2 | public init(frame frameRect: NSRect, textContainer container: NSTextContainer?)
3 | public init?(coder: NSCoder)
4 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
5 | public convenience init(usingTextLayoutManager: Bool)
6 | @available(*, unavailable, renamed: "init(usingTextLayoutManager:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:131:18: warning: main actor-isolated property 'isVerticallyResizable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
131 | textView.isVerticallyResizable = true
| `- warning: main actor-isolated property 'isVerticallyResizable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
132 | textView.isEditable = true
133 | textView.textContainer?.containerSize = NSSize(width: contentSize.width, height: CGFloat.greatestFiniteMagnitude)
AppKit.NSText:59:25: note: mutation of this property is only permitted within the actor
57 | @available(swift, obsoleted: 3, renamed: "isHorizontallyResizable")
58 | open var horizontallyResizable: Bool { get set }
59 | @MainActor open var isVerticallyResizable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
60 | @available(swift, obsoleted: 3, renamed: "isVerticallyResizable")
61 | open var verticallyResizable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:132:18: warning: main actor-isolated property 'isEditable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
131 | textView.isVerticallyResizable = true
132 | textView.isEditable = true
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
133 | textView.textContainer?.containerSize = NSSize(width: contentSize.width, height: CGFloat.greatestFiniteMagnitude)
134 | textView.textContainer?.widthTracksTextView = true
AppKit.NSTextView:65:25: note: mutation of this property is only permitted within the actor
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
65 | @MainActor open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
67 | open var editable: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:133:18: warning: main actor-isolated property 'textContainer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
131 | textView.isVerticallyResizable = true
132 | textView.isEditable = true
133 | textView.textContainer?.containerSize = NSSize(width: contentSize.width, height: CGFloat.greatestFiniteMagnitude)
| `- warning: main actor-isolated property 'textContainer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
134 | textView.textContainer?.widthTracksTextView = true
135 |
AppKit.NSTextView:8:30: note: property declared here
6 | @available(*, unavailable, renamed: "init(usingTextLayoutManager:)", message: "Not available in Swift")
7 | open class func textViewUsingTextLayoutManager(_ usingTextLayoutManager: Bool) -> Self
8 | unowned(unsafe) open var textContainer: NSTextContainer? { get set }
| `- note: property declared here
9 | open func replaceTextContainer(_ newContainer: NSTextContainer)
10 | open var textContainerInset: NSSize { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:134:18: warning: main actor-isolated property 'textContainer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
:
132 | textView.isEditable = true
133 | textView.textContainer?.containerSize = NSSize(width: contentSize.width, height: CGFloat.greatestFiniteMagnitude)
134 | textView.textContainer?.widthTracksTextView = true
| `- warning: main actor-isolated property 'textContainer' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
135 |
136 | textView.string = "Reported error: \(reportable.localizedDescription)\n\n\(reportable.debugDescription)"
AppKit.NSTextView:8:30: note: property declared here
6 | @available(*, unavailable, renamed: "init(usingTextLayoutManager:)", message: "Not available in Swift")
7 | open class func textViewUsingTextLayoutManager(_ usingTextLayoutManager: Bool) -> Self
8 | unowned(unsafe) open var textContainer: NSTextContainer? { get set }
| `- note: property declared here
9 | open func replaceTextContainer(_ newContainer: NSTextContainer)
10 | open var textContainerInset: NSSize { get set }
/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/ErrorAlert.swift:136:18: warning: main actor-isolated property 'string' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
126 | }
127 |
128 | private func errorTextView(contentSize: NSSize) -> NSTextView {
| `- note: add '@MainActor' to make instance method 'errorTextView(contentSize:)' part of global actor 'MainActor'
129 |
130 | let textView = NSTextView(frame: NSRect(x: 0, y: 0, width: contentSize.width, height: contentSize.height))
:
134 | textView.textContainer?.widthTracksTextView = true
135 |
136 | textView.string = "Reported error: \(reportable.localizedDescription)\n\n\(reportable.debugDescription)"
| `- warning: main actor-isolated property 'string' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
137 |
138 | return textView
AppKit.NSText:4:14: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
Build complete! (24.27s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ErrorReporter",
"name" : "ErrorReporter",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ErrorReporter",
"targets" : [
"ErrorReporter"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ErrorReporter",
"module_type" : "SwiftTarget",
"name" : "ErrorReporter",
"path" : "Sources/ErrorReporter",
"product_memberships" : [
"ErrorReporter"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/ErrorReporter/Resources/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ErrorAlert.swift",
"Optional.swift",
"Report.swift",
"TextEmailer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.