Build Information
Successful build of DynamicNotchKit, reference 0.1.0 (e13aec
), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 09:53:59 UTC.
Swift 6 data race errors: 0
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MrKai77/DynamicNotchKit.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MrKai77/DynamicNotchKit
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at e13aecf 🔀 Merge pull request #28 from zenangst/minor/improvements
Cloned https://github.com/MrKai77/DynamicNotchKit.git
Revision (git rev-parse @):
e13aecf68c6519726aa5315f8fa4501c489ca574
SUCCESS checkout https://github.com/MrKai77/DynamicNotchKit.git at 0.1.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": "dynamicnotchkit",
"name": "DynamicNotchKit",
"url": "https://github.com/MrKai77/DynamicNotchKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DynamicNotchKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/MrKai77/DynamicNotchKit.git
[1/943] Fetching dynamicnotchkit
Fetched https://github.com/MrKai77/DynamicNotchKit.git from cache (1.97s)
Creating working copy for https://github.com/MrKai77/DynamicNotchKit.git
Working copy of https://github.com/MrKai77/DynamicNotchKit.git resolved at 0.1.0 (e13aecf)
warning: '.resolve-product-dependencies': dependency 'dynamicnotchkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/MrKai77/DynamicNotchKit.git
https://github.com/MrKai77/DynamicNotchKit.git
{
"dependencies" : [
],
"manifest_display_name" : "DynamicNotchKit",
"name" : "DynamicNotchKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "DynamicNotchKit",
"targets" : [
"DynamicNotchKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DynamicNotchKitTests",
"module_type" : "SwiftTarget",
"name" : "DynamicNotchKitTests",
"path" : "Tests/DynamicNotchKitTests",
"sources" : [
"DynamicNotchKitTests.swift"
],
"target_dependencies" : [
"DynamicNotchKit"
],
"type" : "test"
},
{
"c99name" : "DynamicNotchKit",
"module_type" : "SwiftTarget",
"name" : "DynamicNotchKit",
"path" : "Sources",
"product_memberships" : [
"DynamicNotchKit"
],
"sources" : [
"DynamicNotchKit/BlurModifier.swift",
"DynamicNotchKit/DynamicNotch.swift",
"DynamicNotchKit/DynamicNotchInfo.swift",
"DynamicNotchKit/DynamicNotchPanel.swift",
"DynamicNotchKit/DynamicNotchProgress.swift",
"DynamicNotchKit/NSScreen+Extensions.swift",
"DynamicNotchKit/NotchShape.swift",
"DynamicNotchKit/NotchView.swift",
"DynamicNotchKit/NotchlessView.swift",
"DynamicNotchKit/VisualEffectView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling DynamicNotchKit NotchView.swift
[4/13] Compiling DynamicNotchKit NotchlessView.swift
[5/13] Compiling DynamicNotchKit NotchShape.swift
[6/13] Compiling DynamicNotchKit DynamicNotchProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchProgress.swift:15:13: warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 | public init(progress: Binding<CGFloat>, title: String, description: String? = nil, progressText: Bool = false, progressBarColor: Color = .white, textColor: Color = .white, style: DynamicNotch<InfoView>.Style = .auto) {
14 | internalDynamicNotch = DynamicNotch(style: style) {
15 | InfoView(progress: progress, progressBarColor: progressBarColor, title: title, description: description, textColor: textColor, numberOverlay: progressText)
| `- warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | }
17 | }
:
60 | let iconOverlay: Image?
61 |
62 | init(progress: Binding<CGFloat>, progressBarColor: Color, title: String, description: String? = nil, textColor: Color, numberOverlay: Bool? = nil, iconOverlay: Image? = nil) {
| |- note: calls to initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
63 | _progress = progress
64 | self.progressBarColor = progressBarColor
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchProgress.swift:21:13: warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | public func setContent(progress: Binding<CGFloat>, title: String, description: String? = nil, progressText: Bool = false, progressBarColor: Color = .white, textColor: Color = .white) {
20 | internalDynamicNotch.setContent {
21 | InfoView(progress: progress, progressBarColor: progressBarColor, title: title, description: description, textColor: textColor, numberOverlay: progressText)
| `- warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 | }
:
60 | let iconOverlay: Image?
61 |
62 | init(progress: Binding<CGFloat>, progressBarColor: Color, title: String, description: String? = nil, textColor: Color, numberOverlay: Bool? = nil, iconOverlay: Image? = nil) {
| |- note: calls to initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
63 | _progress = progress
64 | self.progressBarColor = progressBarColor
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchProgress.swift:27:13: warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | public init(progress: Binding<CGFloat>, title: String, description: String? = nil, iconOverlay: Image! = nil, progressBarColor: Color = .white, textColor: Color = .white, style: DynamicNotch<InfoView>.Style = .auto) {
26 | internalDynamicNotch = DynamicNotch(style: style) {
27 | InfoView(progress: progress, progressBarColor: progressBarColor, title: title, description: description, textColor: textColor, iconOverlay: iconOverlay)
| `- warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 | }
:
60 | let iconOverlay: Image?
61 |
62 | init(progress: Binding<CGFloat>, progressBarColor: Color, title: String, description: String? = nil, textColor: Color, numberOverlay: Bool? = nil, iconOverlay: Image? = nil) {
| |- note: calls to initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
63 | _progress = progress
64 | self.progressBarColor = progressBarColor
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchProgress.swift:33:13: warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 | public func setContent(progress: Binding<CGFloat>, title: String, description: String? = nil, iconOverlay: Image! = nil, progressBarColor: Color = .white, textColor: Color = .white) {
32 | internalDynamicNotch.setContent {
33 | InfoView(progress: progress, progressBarColor: progressBarColor, title: title, description: description, textColor: textColor, iconOverlay: iconOverlay)
| `- warning: call to main actor-isolated initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
34 | }
35 | }
:
60 | let iconOverlay: Image?
61 |
62 | init(progress: Binding<CGFloat>, progressBarColor: Color, title: String, description: String? = nil, textColor: Color, numberOverlay: Bool? = nil, iconOverlay: Image? = nil) {
| |- note: calls to initializer 'init(progress:progressBarColor:title:description:textColor:numberOverlay:iconOverlay:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
63 | _progress = progress
64 | self.progressBarColor = progressBarColor
[7/13] Compiling DynamicNotchKit DynamicNotchPanel.swift
[8/13] Compiling DynamicNotchKit NSScreen+Extensions.swift
[9/13] Compiling DynamicNotchKit DynamicNotch.swift
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:125:13: warning: capture of 'self' with non-sendable type 'DynamicNotch<Content>' in a '@Sendable' closure
11 | // MARK: - DynamicNotch
12 |
13 | public class DynamicNotch<Content>: ObservableObject where Content: View {
| `- note: generic class 'DynamicNotch' does not conform to the 'Sendable' protocol
14 |
15 | public var windowController: NSWindowController? // Make public in case user wants to modify the NSPanel
:
123 |
124 | timer = Timer.scheduledTimer(withTimeInterval: maxAnimationDuration, repeats: false) { _ in
125 | self.deinitializeWindow()
| `- warning: capture of 'self' with non-sendable type 'DynamicNotch<Content>' in a '@Sendable' closure
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:181:26: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 | let view: NSView = {
180 | switch notchStyle {
181 | case .notch: NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
182 | case .floating: NSHostingView(rootView: NotchlessView(dynamicNotch: self))
183 | case .auto: screen.hasNotch ? NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white)) : NSHostingView(rootView: NotchlessView(dynamicNotch: self))
SwiftUI.NSHostingView.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:182:29: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
180 | switch notchStyle {
181 | case .notch: NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white))
182 | case .floating: NSHostingView(rootView: NotchlessView(dynamicNotch: self))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
183 | case .auto: screen.hasNotch ? NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white)) : NSHostingView(rootView: NotchlessView(dynamicNotch: self))
184 | }
SwiftUI.NSHostingView.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:183:43: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | case .notch: NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white))
182 | case .floating: NSHostingView(rootView: NotchlessView(dynamicNotch: self))
183 | case .auto: screen.hasNotch ? NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white)) : NSHostingView(rootView: NotchlessView(dynamicNotch: self))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | }
185 | }()
SwiftUI.NSHostingView.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:183:124: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
181 | case .notch: NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white))
182 | case .floating: NSHostingView(rootView: NotchlessView(dynamicNotch: self))
183 | case .auto: screen.hasNotch ? NSHostingView(rootView: NotchView(dynamicNotch: self).foregroundStyle(.white)) : NSHostingView(rootView: NotchlessView(dynamicNotch: self))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | }
185 | }()
SwiftUI.NSHostingView.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:187:21: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | }
172 |
173 | func initializeWindow(screen: NSScreen) {
| `- note: add '@MainActor' to make instance method 'initializeWindow(screen:)' part of global actor 'MainActor'
174 | // so that we don't have a duplicate window
175 | deinitializeWindow()
:
185 | }()
186 |
187 | let panel = DynamicNotchPanel(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
188 | contentRect: .zero,
189 | styleMask: [.borderless, .nonactivatingPanel],
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchPanel.swift:11:14: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
9 |
10 | class DynamicNotchPanel: NSPanel {
11 | override init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool) {
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
12 | super.init(contentRect: contentRect, styleMask: style, backing: backingStoreType, defer: flag)
13 | self.hasShadow = false
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:193:15: warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
171 | }
172 |
173 | func initializeWindow(screen: NSScreen) {
| `- note: add '@MainActor' to make instance method 'initializeWindow(screen:)' part of global actor 'MainActor'
174 | // so that we don't have a duplicate window
175 | deinitializeWindow()
:
191 | defer: true
192 | )
193 | panel.contentView = view
| `- warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
194 | panel.orderFrontRegardless()
195 | panel.setFrame(screen.frame, display: false)
/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: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:194:15: warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | }
172 |
173 | func initializeWindow(screen: NSScreen) {
| `- note: add '@MainActor' to make instance method 'initializeWindow(screen:)' part of global actor 'MainActor'
174 | // so that we don't have a duplicate window
175 | deinitializeWindow()
:
192 | )
193 | panel.contentView = view
194 | panel.orderFrontRegardless()
| `- warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
195 | panel.setFrame(screen.frame, display: false)
196 |
AppKit.NSWindow.orderFrontRegardless:2:22: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderFrontRegardless()}
| |- note: calls to instance method 'orderFrontRegardless()' 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/DynamicNotchKit/DynamicNotch.swift:195:15: 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
171 | }
172 |
173 | func initializeWindow(screen: NSScreen) {
| `- note: add '@MainActor' to make instance method 'initializeWindow(screen:)' part of global actor 'MainActor'
174 | // so that we don't have a duplicate window
175 | deinitializeWindow()
:
193 | panel.contentView = view
194 | panel.orderFrontRegardless()
195 | panel.setFrame(screen.frame, display: false)
| `- 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
196 |
197 | windowController = .init(window: panel)
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/DynamicNotchKit/DynamicNotch.swift:197:29: warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | }
172 |
173 | func initializeWindow(screen: NSScreen) {
| `- note: add '@MainActor' to make instance method 'initializeWindow(screen:)' part of global actor 'MainActor'
174 | // so that we don't have a duplicate window
175 | deinitializeWindow()
:
195 | panel.setFrame(screen.frame, display: false)
196 |
197 | windowController = .init(window: panel)
| `- warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:25:1: note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
23 | /* Designated Initializer. window can be nil. All other -init... methods call this, and then possibly do other setup.
24 | */
25 | - (instancetype)initWithWindow:(nullable NSWindow *)window NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
26 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
27 |
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:202:26: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 |
200 | func deinitializeWindow() {
| `- note: add '@MainActor' to make instance method 'deinitializeWindow()' part of global actor 'MainActor'
201 | guard let windowController else { return }
202 | windowController.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
203 | self.windowController = nil
204 | }
AppKit.NSWindowController.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSWindowController {
2 | @MainActor open func close()}
| |- note: calls to instance method 'close()' 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/DynamicNotchKit/DynamicNotch.swift:99:27: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
97 | initializeWindow(screen: screen)
98 | DispatchQueue.main.async {
99 | withAnimation(self.animation) {
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
100 | self.isVisible = true
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotch.swift:115:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
113 | if !ignoreMouse, isMouseInside {
114 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
115 | self.hide()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
[10/13] Emitting module DynamicNotchKit
[11/13] Compiling DynamicNotchKit DynamicNotchInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchInfo.swift:58:13: warning: call to main actor-isolated initializer 'init(publisher:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 | self.publisher = publisher
57 | internalDynamicNotch = DynamicNotch(contentID: contentID, style: style) {
58 | InfoView(publisher: publisher)
| `- warning: call to main actor-isolated initializer 'init(publisher:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
:
99 | private var publisher: DynamicNotchInfoPublisher<IconView>
100 |
101 | init(publisher: DynamicNotchInfoPublisher<IconView>) {
| |- note: calls to initializer 'init(publisher:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
102 | self.publisher = publisher
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchInfo.swift:66:13: warning: call to main actor-isolated initializer 'init(publisher:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | self.publisher = publisher
65 | internalDynamicNotch = DynamicNotch(contentID: contentID, style: style) {
66 | InfoView(publisher: publisher)
| `- warning: call to main actor-isolated initializer 'init(publisher:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
:
99 | private var publisher: DynamicNotchInfoPublisher<IconView>
100 |
101 | init(publisher: DynamicNotchInfoPublisher<IconView>) {
| |- note: calls to initializer 'init(publisher:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
102 | self.publisher = publisher
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchInfo.swift:58:13: warning: sending 'publisher' risks causing data races; this is an error in the Swift 6 language mode
56 | self.publisher = publisher
57 | internalDynamicNotch = DynamicNotch(contentID: contentID, style: style) {
58 | InfoView(publisher: publisher)
| |- warning: sending 'publisher' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'publisher' to main actor-isolated initializer 'init(publisher:)' risks causing data races between main actor-isolated and task-isolated uses
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/DynamicNotchKit/DynamicNotchInfo.swift:66:13: warning: sending 'publisher' risks causing data races; this is an error in the Swift 6 language mode
64 | self.publisher = publisher
65 | internalDynamicNotch = DynamicNotch(contentID: contentID, style: style) {
66 | InfoView(publisher: publisher)
| |- warning: sending 'publisher' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'publisher' to main actor-isolated initializer 'init(publisher:)' risks causing data races between main actor-isolated and task-isolated uses
67 | }
68 | }
[12/13] Compiling DynamicNotchKit BlurModifier.swift
[13/13] Compiling DynamicNotchKit VisualEffectView.swift
Build complete! (9.66s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DynamicNotchKit",
"name" : "DynamicNotchKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "DynamicNotchKit",
"targets" : [
"DynamicNotchKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DynamicNotchKitTests",
"module_type" : "SwiftTarget",
"name" : "DynamicNotchKitTests",
"path" : "Tests/DynamicNotchKitTests",
"sources" : [
"DynamicNotchKitTests.swift"
],
"target_dependencies" : [
"DynamicNotchKit"
],
"type" : "test"
},
{
"c99name" : "DynamicNotchKit",
"module_type" : "SwiftTarget",
"name" : "DynamicNotchKit",
"path" : "Sources",
"product_memberships" : [
"DynamicNotchKit"
],
"sources" : [
"DynamicNotchKit/BlurModifier.swift",
"DynamicNotchKit/DynamicNotch.swift",
"DynamicNotchKit/DynamicNotchInfo.swift",
"DynamicNotchKit/DynamicNotchPanel.swift",
"DynamicNotchKit/DynamicNotchProgress.swift",
"DynamicNotchKit/NSScreen+Extensions.swift",
"DynamicNotchKit/NotchShape.swift",
"DynamicNotchKit/NotchView.swift",
"DynamicNotchKit/NotchlessView.swift",
"DynamicNotchKit/VisualEffectView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.