Build Information
Successful build of AppKitFocusOverlay, reference main (08eeaf
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 13:04:06 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
========================================
RunAll
========================================
Builder version: 4.61.1
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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dagronf/AppKitFocusOverlay.git
https://github.com/dagronf/AppKitFocusOverlay.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/10] Compiling HotKey NSEventModifierFlags+HotKey.swift
[5/10] Compiling HotKey KeyCombo.swift
[6/10] Compiling HotKey Key.swift
[7/10] Compiling HotKey HotKeysController.swift
[8/10] Compiling HotKey HotKey.swift
[9/10] Emitting module HotKey
[10/10] Compiling HotKey KeyCombo+System.swift
[11/15] Compiling AppKitFocusOverlay CGPath+arrow.swift
[12/15] Compiling AppKitFocusOverlay Palette.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.setIsVisible:2:22: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setIsVisible(_ flag: Bool)}
| |- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.addChildWindow:2:22: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:504:25: note: mutation of this property is only permitted within the actor
502 |
503 | @property NSBackingStoreType backingType;
504 | @property NSWindowLevel level;
| `- note: mutation of this property is only permitted within the actor
505 | @property NSWindowDepth depthLimit;
506 | - (void)setDynamicDepthLimit:(BOOL)flag;
/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.removeChildWindow:2:22: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func removeChildWindow(_ childWin: NSWindow)}
| |- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.setIsVisible:2:22: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setIsVisible(_ flag: Bool)}
| |- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
| `- note: property declared here
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:665:36: note: property declared here
663 | #pragma mark - Keyboard UI support (Key View Loop)
664 |
665 | @property (nullable, weak) NSView *initialFirstResponder;
| `- note: property declared here
666 | - (void)selectNextKeyView:(nullable id)sender;
667 | - (void)selectPreviousKeyView:(nullable id)sender;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
| `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
| `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:389:41: note: property declared here
387 | - (BOOL)makeFirstResponder:(nullable NSResponder *)responder;
388 | /* firstResponder is Key Value Observing (KVO) compliant. */
389 | @property (readonly, weak) NSResponder *firstResponder;
| `- note: property declared here
390 |
391 | @property (readonly) NSEventModifierFlags resizeFlags;
/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 {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: property declared here
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/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.recalculateKeyViewLoop:2:22: note: calls to instance method 'recalculateKeyViewLoop()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func recalculateKeyViewLoop()}
| |- note: calls to instance method 'recalculateKeyViewLoop()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.convertToScreen:3:24: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.7, *)
3 | @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect}
| |- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_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.setFrame:2:22: note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrame(_ frameRect: NSRect, display flag: Bool)}
| |- note: calls to instance method 'setFrame(_:display:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:315:29: note: property declared here
313 |
314 | /// The \c contentLayoutRect will return the area inside the window that is for non-obscured content. Typically, this is the same thing as the `contentView`'s frame. However, for windows with the \c NSFullSizeContentViewWindowMask set, there needs to be a way to determine the portion that is not under the toolbar. The \c contentLayoutRect returns the portion of the layout that is not obscured under the toolbar. \c contentLayoutRect is in window coordinates. It is KVO compliant. */
315 | @property (readonly) NSRect contentLayoutRect API_AVAILABLE(macos(10.10));
| `- note: property declared here
316 |
317 | /// \c contentLayoutGuide is a corollary to \c contentLayoutRect. It can be used by autolayout constraints to automatically bind to the \c contentLayoutRect.
/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 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:420:39: note: property declared here
418 | @property BOOL drawsBackground;
419 | @property (copy) NSColor *backgroundColor;
420 | @property (getter=isFieldEditor) BOOL fieldEditor;
| `- note: property declared here
421 | @property BOOL usesFontPanel;
422 | @property (getter=isRulerVisible) BOOL rulerVisible;
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:413:51: note: property declared here
411 | /*************************** NSText methods ***************************/
412 |
413 | @property (nullable, weak) id<NSTextViewDelegate> delegate;
| `- note: property declared here
414 | @property (getter=isEditable) BOOL editable;
415 | @property (getter=isSelectable) BOOL selectable;
/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)")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:433:27: note: property declared here
431 | @property (nullable, readonly, assign) NSView *previousValidKeyView;
432 |
433 | @property (readonly) BOOL canBecomeKeyView;
| `- note: property declared here
434 |
435 | - (void)setKeyboardFocusRingNeedsDisplayInRect:(NSRect)rect;
/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.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:430:48: note: property declared here
428 | @property (nullable, assign) NSView *nextKeyView;
429 | @property (nullable, readonly, assign) NSView *previousKeyView;
430 | @property (nullable, readonly, assign) NSView *nextValidKeyView;
| `- note: property declared here
431 | @property (nullable, readonly, assign) NSView *previousValidKeyView;
432 |
/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
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
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.setIsVisible:2:22: note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setIsVisible(_ flag: Bool)}
| |- note: calls to instance method 'setIsVisible' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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.addChildWindow:2:22: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:504:25: note: mutation of this property is only permitted within the actor
502 |
503 | @property NSBackingStoreType backingType;
504 | @property NSWindowLevel level;
| `- note: mutation of this property is only permitted within the actor
505 | @property NSWindowDepth depthLimit;
506 | - (void)setDynamicDepthLimit:(BOOL)flag;
Build complete! (10.06s)
Fetching https://github.com/dagronf/HotKey
[1/401] Fetching hotkey
Fetched https://github.com/dagronf/HotKey from cache (0.71s)
Computing version for https://github.com/dagronf/HotKey
Computed https://github.com/dagronf/HotKey at 0.2.0 (1.30s)
Creating working copy for https://github.com/dagronf/HotKey
Working copy of https://github.com/dagronf/HotKey resolved at 0.2.0
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.