Build Information
Successful build of AppKitFocusOverlay, reference main (08eeaf
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 08:49:39 UTC.
Swift 6 data race errors: 5
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/AppKitFocusOverlay.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/AppKitFocusOverlay
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 08eeaff Update to latest HotKey version, set macOS version to 10.13
Cloned https://github.com/dagronf/AppKitFocusOverlay.git
Revision (git rev-parse @):
08eeaff0eedd0c32b5001f77a57855292c658b55
SUCCESS checkout https://github.com/dagronf/AppKitFocusOverlay.git at main
Fetching https://github.com/dagronf/HotKey
[1/401] Fetching hotkey
Fetched https://github.com/dagronf/HotKey from cache (0.77s)
Computing version for https://github.com/dagronf/HotKey
Computed https://github.com/dagronf/HotKey at 0.2.0 (0.67s)
Creating working copy for https://github.com/dagronf/HotKey
Working copy of https://github.com/dagronf/HotKey resolved at 0.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "appkitfocusoverlay",
"name": "AppKitFocusOverlay",
"url": "https://github.com/dagronf/AppKitFocusOverlay.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AppKitFocusOverlay",
"dependencies": [
{
"identity": "hotkey",
"name": "HotKey",
"url": "https://github.com/dagronf/HotKey",
"version": "0.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HotKey",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/dagronf/AppKitFocusOverlay.git
[1/175] Fetching appkitfocusoverlay
Fetched https://github.com/dagronf/AppKitFocusOverlay.git from cache (0.73s)
Fetching https://github.com/dagronf/HotKey from cache
Fetched https://github.com/dagronf/HotKey from cache (0.47s)
Computing version for https://github.com/dagronf/HotKey
Computed https://github.com/dagronf/HotKey at 0.2.0 (0.02s)
Creating working copy for https://github.com/dagronf/AppKitFocusOverlay.git
Working copy of https://github.com/dagronf/AppKitFocusOverlay.git resolved at main (08eeaff)
Creating working copy for https://github.com/dagronf/HotKey
Working copy of https://github.com/dagronf/HotKey resolved at 0.2.0
warning: '.resolve-product-dependencies': dependency 'appkitfocusoverlay' is not used by any target
Found 1 product dependencies
- HotKey
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dagronf/AppKitFocusOverlay.git
Running build ...
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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/10] Compiling HotKey NSEventModifierFlags+HotKey.swift
[5/10] Emitting module HotKey
[6/10] Compiling HotKey Key.swift
[7/10] Compiling HotKey HotKey.swift
[8/10] Compiling HotKey KeyCombo.swift
[9/10] Compiling HotKey HotKeysController.swift
[10/10] Compiling HotKey KeyCombo+System.swift
[11/15] Compiling AppKitFocusOverlay Palette.swift
[12/15] Compiling AppKitFocusOverlay CGPath+arrow.swift
[13/15] Compiling AppKitFocusOverlay CGContext+extensions.swift
[14/15] Compiling AppKitFocusOverlay AppKitFocusOverlay.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:69:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
67 | // private
68 |
69 | private lazy var overlayWindow: NSWindow = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
70 | let w = NSWindow(contentRect: .zero,
71 | styleMask: [.borderless],
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:80:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
78 | }()
79 |
80 | private let overlayView = FocusOverlayView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
81 | private let shouldRecalculateKeyViewLoop: Bool
82 | private var resizeObserver: NSObjectProtocol?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:94:24: warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
92 | didSet {
93 | if let w = _lastAttachedWindow {
94 | self.overlayWindow.setIsVisible(true)
| `- warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
96 | self.overlayWindow.level = .normal
AppKit.NSWindow:21:26: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
19 | open var orderedIndex: Int { get set }
20 | open func setIsMiniaturized(_ flag: Bool)
21 | @MainActor open func setIsVisible(_ flag: Bool)
| `- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
22 | open func setIsZoomed(_ flag: Bool)
23 | open func handleClose(_ command: NSCloseCommand) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:95:7: warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | if let w = _lastAttachedWindow {
94 | self.overlayWindow.setIsVisible(true)
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
| `- warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | self.overlayWindow.level = .normal
97 | }
AppKit.NSWindow:327:26: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
325 | open class func standardWindowButton(_ b: NSWindow.ButtonType, forStyleMask styleMask: NSWindow.StyleMask) -> NSButton?
326 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
327 | @MainActor open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)
| `- note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
328 | open func removeChildWindow(_ childWin: NSWindow)
329 | open var childWindows: [NSWindow]? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:96:24: warning: main actor-isolated property 'level' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | self.overlayWindow.setIsVisible(true)
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
96 | self.overlayWindow.level = .normal
| `- warning: main actor-isolated property 'level' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 | }
AppKit.NSWindow:245:14: note: mutation of this property is only permitted within the actor
243 | open var allowsToolTipsWhenApplicationIsInactive: Bool { get set }
244 | open var backingType: NSWindow.BackingStoreType { get set }
245 | open var level: NSWindow.Level { get set }
| `- note: mutation of this property is only permitted within the actor
246 | open var depthLimit: NSWindow.Depth { get set }
247 | open func setDynamicDepthLimit(_ flag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:89:30: warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
87 | private weak var _lastAttachedWindow: NSWindow? {
88 | willSet {
89 | self._lastAttachedWindow?.removeChildWindow(self.overlayWindow)
| `- warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 | self.overlayWindow.setIsVisible(false)
91 | }
AppKit.NSWindow:328:15: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
326 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
327 | @MainActor open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)
328 | open func removeChildWindow(_ childWin: NSWindow)
| `- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
329 | open var childWindows: [NSWindow]? { get }
330 | weak open var parent: NSWindow? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:90:23: warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 | willSet {
89 | self._lastAttachedWindow?.removeChildWindow(self.overlayWindow)
90 | self.overlayWindow.setIsVisible(false)
| `- warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 | didSet {
AppKit.NSWindow:21:26: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
19 | open var orderedIndex: Int { get set }
20 | open func setIsMiniaturized(_ flag: Bool)
21 | @MainActor open func setIsVisible(_ flag: Bool)
| `- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
22 | open func setIsZoomed(_ flag: Bool)
23 | open func handleClose(_ command: NSCloseCommand) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:105:27: 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 | public extension AppKitFocusOverlay {
103 | /// Present the focus overlay starting at the specified view
104 | @objc func present(startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method 'present(startingAt:)' part of global actor 'MainActor'
105 | guard let window = view.window else { return }
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
106 | _present(window: window, startingAt: view)
107 | }
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/AppKitFocusOverlay/AppKitFocusOverlay.swift:111:49: warning: main actor-isolated property 'initialFirstResponder' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
109 | /// Present the focus overlay for the current window. if a responder is specified, start from this specific ui element
110 | @objc func present(_ window: NSWindow, _ responder: NSResponder? = nil) {
111 | guard let startingView = (responder ?? window.initialFirstResponder) as? NSView else { return }
| `- warning: main actor-isolated property 'initialFirstResponder' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
112 | _present(window: window, startingAt: startingView)
113 | }
AppKit.NSWindow:371:19: note: property declared here
369 | @available(swift, obsoleted: 3, renamed: "performDrag(with:)")
370 | open func performWindowDragWithEvent(_ event: NSEvent)
371 | weak open var initialFirstResponder: NSView? { get set }
| `- note: property declared here
372 | open func selectNextKeyView(_ sender: Any?)
373 | open func selectPreviousKeyView(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:119:20: warning: main actor-isolated property 'currentChain' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | /// Hide the focus overlay
116 | @objc func clear() {
| `- note: add '@MainActor' to make instance method 'clear()' part of global actor 'MainActor'
117 | self._lastAttachedWindow = nil
118 | detachResizeHandler()
119 | self.overlayView.currentChain = []
| `- warning: main actor-isolated property 'currentChain' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
120 | }
121 | }
:
256 | override func acceptsFirstMouse(for event: NSEvent?) -> Bool { false }
257 |
258 | fileprivate var currentChain: [AppKitFocusOverlay.ViewRepresent] = [] {
| `- note: mutation of this property is only permitted within the actor
259 | didSet {
260 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:148:41: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | do {
147 | self.hotKeyWindow.keyDownHandler = { [weak self] in
148 | if let `self` = self, let w = NSApp.mainWindow {
| `- warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | self.present(w)
150 | }
AppKit.NSApplication:12:30: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | @MainActor weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:148:35: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | do {
147 | self.hotKeyWindow.keyDownHandler = { [weak self] in
148 | if let `self` = self, let w = NSApp.mainWindow {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | self.present(w)
150 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:159:41: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
157 | do {
158 | self.hotKeyView.keyDownHandler = { [weak self] in
159 | if let `self` = self, let w = NSApp.mainWindow, let v = w.firstResponder as? NSView {
| `- warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | self.present(startingAt: v)
161 | }
AppKit.NSApplication:12:30: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | @MainActor weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:159:35: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
157 | do {
158 | self.hotKeyView.keyDownHandler = { [weak self] in
159 | if let `self` = self, let w = NSApp.mainWindow, let v = w.firstResponder as? NSView {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | self.present(startingAt: v)
161 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:159:63: warning: main actor-isolated property 'firstResponder' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
157 | do {
158 | self.hotKeyView.keyDownHandler = { [weak self] in
159 | if let `self` = self, let w = NSApp.mainWindow, let v = w.firstResponder as? NSView {
| `- warning: main actor-isolated property 'firstResponder' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
160 | self.present(startingAt: v)
161 | }
AppKit.NSWindow:93:19: note: property declared here
91 | open func update()
92 | open func makeFirstResponder(_ responder: NSResponder?) -> Bool
93 | weak open var firstResponder: NSResponder? { get }
| `- note: property declared here
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
95 | open func close()
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:172:34: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
172 | guard let contentView = window.contentView else { return }
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
173 |
174 | if self.shouldRecalculateKeyViewLoop {
AppKit.NSWindow:56:25: note: property declared here
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | @MainActor open var contentView: NSView? { get set }
| `- note: property declared here
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:175:11: warning: call to main actor-isolated instance method 'recalculateKeyViewLoop()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
173 |
174 | if self.shouldRecalculateKeyViewLoop {
175 | window.recalculateKeyViewLoop()
| `- warning: call to main actor-isolated instance method 'recalculateKeyViewLoop()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 |
AppKit.NSWindow:385:15: note: calls to instance method 'recalculateKeyViewLoop()' from outside of its actor context are implicitly asynchronous
383 | open func enableKeyEquivalentForDefaultButtonCell()
384 | open var autorecalculatesKeyViewLoop: Bool { get set }
385 | open func recalculateKeyViewLoop()
| `- note: calls to instance method 'recalculateKeyViewLoop()' from outside of its actor context are implicitly asynchronous
386 | open var toolbar: NSToolbar? { get set }
387 | open func toggleToolbarShown(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:181:18: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
179 |
180 | // Position our window
181 | let r = window.convertToScreen(contentView.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
182 |
183 | self.overlayWindow.setFrame(r, display: true)
AppKit.NSWindow:196:15: 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 | 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/AppKitFocusOverlay/AppKitFocusOverlay.swift:181:46: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
179 |
180 | // Position our window
181 | let r = window.convertToScreen(contentView.frame)
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 |
183 | self.overlayWindow.setFrame(r, display: true)
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:183:22: warning: call to main actor-isolated instance method 'setFrame(_:display:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
181 | let r = window.convertToScreen(contentView.frame)
182 |
183 | self.overlayWindow.setFrame(r, display: true)
| `- warning: call to main actor-isolated instance method 'setFrame(_:display:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | self.overlayView.frame = window.contentLayoutRect
185 |
AppKit.NSWindow:69:15: note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
67 | @available(swift, obsoleted: 3, renamed: "constrainFrameRect(_:to:)")
68 | open func constrainFrameRect(_ frameRect: NSRect, toScreen screen: NSScreen?) -> NSRect
69 | open func setFrame(_ frameRect: NSRect, display flag: Bool)
| `- note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
70 | open func setContentSize(_ size: NSSize)
71 | open func setFrameOrigin(_ point: NSPoint)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:184:20: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
182 |
183 | self.overlayWindow.setFrame(r, display: true)
184 | self.overlayView.frame = window.contentLayoutRect
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 | // And update the content of the focus view
AppKit.NSView:60:14: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:184:35: warning: main actor-isolated property 'contentLayoutRect' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
182 |
183 | self.overlayWindow.setFrame(r, display: true)
184 | self.overlayView.frame = window.contentLayoutRect
| `- warning: main actor-isolated property 'contentLayoutRect' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 | // And update the content of the focus view
AppKit.NSWindow:32:14: note: property declared here
30 | open var toolbarStyle: NSWindow.ToolbarStyle { get set }
31 | @available(macOS 10.10, *)
32 | open var contentLayoutRect: NSRect { get }
| `- note: property declared here
33 | @available(macOS 10.10, *)
34 | open var contentLayoutGuide: Any? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:187:20: warning: main actor-isolated property 'currentChain' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | func _present(window: NSWindow, startingAt view: NSView) {
| `- note: add '@MainActor' to make instance method '_present(window:startingAt:)' part of global actor 'MainActor'
170 | detachResizeHandler()
171 |
:
185 |
186 | // And update the content of the focus view
187 | self.overlayView.currentChain = self.nextFocusFor(view)
| `- warning: main actor-isolated property 'currentChain' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
188 |
189 | // And listen for attached window size changes
:
256 | override func acceptsFirstMouse(for event: NSEvent?) -> Bool { false }
257 |
258 | fileprivate var currentChain: [AppKitFocusOverlay.ViewRepresent] = [] {
| `- note: mutation of this property is only permitted within the actor
259 | didSet {
260 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:198:7: warning: main actor-isolated property 'isFieldEditor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
196 | let actualView: NSView = {
197 | if let v = view as? NSTextView,
198 | v.isFieldEditor,
| `- warning: main actor-isolated property 'isFieldEditor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
199 | let parent = v.delegate as? NSTextField
200 | {
AppKit.NSTextView:77:25: note: property declared here
75 | open var drawsBackground: Bool { get set }
76 | @NSCopying open var backgroundColor: NSColor { get set }
77 | @MainActor open var isFieldEditor: Bool { get set }
| `- note: property declared here
78 | @available(swift, obsoleted: 3, renamed: "isFieldEditor")
79 | open var fieldEditor: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:199:20: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
197 | if let v = view as? NSTextView,
198 | v.isFieldEditor,
199 | let parent = v.delegate as? NSTextField
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
200 | {
201 | return parent
AppKit.NSTextView:64:19: note: property declared here
62 | @available(macOS 10.10, *)
63 | open var usesRolloverButtonForSelection: Bool { get set }
64 | weak open var delegate: (any NSTextViewDelegate)? { get set }
| `- note: property declared here
65 | open var isEditable: Bool { get set }
66 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:215:17: warning: main actor-isolated property 'canBecomeKeyView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 |
195 | func nextFocusFor(_ view: NSView, seenViews: [NSView] = []) -> [ViewRepresent] {
| `- note: add '@MainActor' to make instance method 'nextFocusFor(_:seenViews:)' part of global actor 'MainActor'
196 | let actualView: NSView = {
197 | if let v = view as? NSTextView,
:
213 | var result: [AppKitFocusOverlay.ViewRepresent] = []
214 |
215 | if actualView.canBecomeKeyView {
| `- warning: main actor-isolated property 'canBecomeKeyView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
216 | let r = actualView.convert(actualView.bounds, to: nil)
217 | // Swift.print("view -> \(actualView): \(r)")
AppKit.NSView:6:25: note: property declared here
4 | unowned(unsafe) open var nextValidKeyView: NSView? { get }
5 | unowned(unsafe) open var previousValidKeyView: NSView? { get }
6 | @MainActor open var canBecomeKeyView: Bool { get }
| `- note: property declared here
7 | open func setKeyboardFocusRingNeedsDisplay(_ rect: NSRect)
8 | @available(swift, obsoleted: 3, renamed: "setKeyboardFocusRingNeedsDisplay(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:216:23: 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
193 | }
194 |
195 | func nextFocusFor(_ view: NSView, seenViews: [NSView] = []) -> [ViewRepresent] {
| `- note: add '@MainActor' to make instance method 'nextFocusFor(_:seenViews:)' part of global actor 'MainActor'
196 | let actualView: NSView = {
197 | if let v = view as? NSTextView,
:
214 |
215 | if actualView.canBecomeKeyView {
216 | let r = actualView.convert(actualView.bounds, to: nil)
| `- 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
217 | // Swift.print("view -> \(actualView): \(r)")
218 | result.append(ViewRepresent(view: actualView, rect: r))
AppKit.NSView:104:15: 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 | 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/AppKitFocusOverlay/AppKitFocusOverlay.swift:216:42: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 |
195 | func nextFocusFor(_ view: NSView, seenViews: [NSView] = []) -> [ViewRepresent] {
| `- note: add '@MainActor' to make instance method 'nextFocusFor(_:seenViews:)' part of global actor 'MainActor'
196 | let actualView: NSView = {
197 | if let v = view as? NSTextView,
:
214 |
215 | if actualView.canBecomeKeyView {
216 | let r = actualView.convert(actualView.bounds, to: nil)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
217 | // Swift.print("view -> \(actualView): \(r)")
218 | result.append(ViewRepresent(view: actualView, rect: r))
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:221:28: warning: main actor-isolated property 'nextValidKeyView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 |
195 | func nextFocusFor(_ view: NSView, seenViews: [NSView] = []) -> [ViewRepresent] {
| `- note: add '@MainActor' to make instance method 'nextFocusFor(_:seenViews:)' part of global actor 'MainActor'
196 | let actualView: NSView = {
197 | if let v = view as? NSTextView,
:
219 | }
220 |
221 | if let next = actualView.nextValidKeyView {
| `- warning: main actor-isolated property 'nextValidKeyView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 | let alreadyVisited = seenViews + [actualView]
223 | let nextOnes = self.nextFocusFor(next, seenViews: alreadyVisited)
AppKit.NSView:4:30: note: property declared here
2 | unowned(unsafe) open var nextKeyView: NSView? { get set }
3 | unowned(unsafe) open var previousKeyView: NSView? { get }
4 | unowned(unsafe) open var nextValidKeyView: NSView? { get }
| `- note: property declared here
5 | unowned(unsafe) open var previousValidKeyView: NSView? { get }
6 | @MainActor open var canBecomeKeyView: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:239:5: warning: capture of 'self' with non-sendable type 'AppKitFocusOverlay?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | import HotKey
23 |
24 | @objc public class AppKitFocusOverlay: NSObject {
| `- note: class 'AppKitFocusOverlay' does not conform to the 'Sendable' protocol
25 | /// Create an instance of the focus overlay using the default options
26 | @objc override public init() {
:
237 | ) { [weak self, weak window, weak view] notification in
238 | if let w = window, let v = view {
239 | self?._present(window: w, startingAt: v)
| `- warning: capture of 'self' with non-sendable type 'AppKitFocusOverlay?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
240 | }
241 | }
[15/15] Emitting module AppKitFocusOverlay
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:69:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
67 | // private
68 |
69 | private lazy var overlayWindow: NSWindow = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
70 | let w = NSWindow(contentRect: .zero,
71 | styleMask: [.borderless],
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:80:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
78 | }()
79 |
80 | private let overlayView = FocusOverlayView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
81 | private let shouldRecalculateKeyViewLoop: Bool
82 | private var resizeObserver: NSObjectProtocol?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:94:24: warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
92 | didSet {
93 | if let w = _lastAttachedWindow {
94 | self.overlayWindow.setIsVisible(true)
| `- warning: call to main actor-isolated instance method 'setIsVisible' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
96 | self.overlayWindow.level = .normal
AppKit.NSWindow:21:26: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
19 | open var orderedIndex: Int { get set }
20 | open func setIsMiniaturized(_ flag: Bool)
21 | @MainActor open func setIsVisible(_ flag: Bool)
| `- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
22 | open func setIsZoomed(_ flag: Bool)
23 | open func handleClose(_ command: NSCloseCommand) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:95:7: warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | if let w = _lastAttachedWindow {
94 | self.overlayWindow.setIsVisible(true)
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
| `- warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | self.overlayWindow.level = .normal
97 | }
AppKit.NSWindow:327:26: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
325 | open class func standardWindowButton(_ b: NSWindow.ButtonType, forStyleMask styleMask: NSWindow.StyleMask) -> NSButton?
326 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
327 | @MainActor open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)
| `- note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
328 | open func removeChildWindow(_ childWin: NSWindow)
329 | open var childWindows: [NSWindow]? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AppKitFocusOverlay/AppKitFocusOverlay.swift:96:24: warning: main actor-isolated property 'level' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | self.overlayWindow.setIsVisible(true)
95 | w.addChildWindow(self.overlayWindow, ordered: .above)
96 | self.overlayWindow.level = .normal
| `- warning: main actor-isolated property 'level' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 | }
AppKit.NSWindow:245:14: note: mutation of this property is only permitted within the actor
243 | open var allowsToolTipsWhenApplicationIsInactive: Bool { get set }
244 | open var backingType: NSWindow.BackingStoreType { get set }
245 | open var level: NSWindow.Level { get set }
| `- note: mutation of this property is only permitted within the actor
246 | open var depthLimit: NSWindow.Depth { get set }
247 | open func setDynamicDepthLimit(_ flag: Bool)
Build complete! (13.13s)
Build complete.
{
"dependencies" : [
{
"identity" : "hotkey",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/HotKey"
}
],
"manifest_display_name" : "AppKitFocusOverlay",
"name" : "AppKitFocusOverlay",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "AppKitFocusOverlay",
"targets" : [
"AppKitFocusOverlay"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AppKitFocusOverlayTests",
"module_type" : "SwiftTarget",
"name" : "AppKitFocusOverlayTests",
"path" : "Tests/AppKitFocusOverlayTests",
"sources" : [
"AppKitFocusOverlayTests.swift"
],
"target_dependencies" : [
"AppKitFocusOverlay"
],
"type" : "test"
},
{
"c99name" : "AppKitFocusOverlay",
"module_type" : "SwiftTarget",
"name" : "AppKitFocusOverlay",
"path" : "Sources/AppKitFocusOverlay",
"product_dependencies" : [
"HotKey"
],
"product_memberships" : [
"AppKitFocusOverlay"
],
"sources" : [
"AppKitFocusOverlay.swift",
"private/CGContext+extensions.swift",
"private/CGPath+arrow.swift",
"private/Palette.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.