The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Design with Swift 6.0 (beta) for macOS (SPM) (c9e6f4) on 1 Jul 2024 11:18:13 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.2.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.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dl-alexandre/Design.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dl-alexandre/Design
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c9e6f43 Change Tool Version
Cloned https://github.com/dl-alexandre/Design.git
Revision (git rev-parse @):
c9e6f43e917c6541bfd438bc4118e46908df890f
SUCCESS checkout https://github.com/dl-alexandre/Design.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/dl-alexandre/Design.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Beta.2.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--14728B76ED507284.txt
[3/14] Compiling Design Notification+Copy.swift
[4/14] Compiling Design SearchBarStyle.swift
[5/14] Compiling Design KeyboardAdaptive.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/KeyboardAdaptive.swift:46:38: warning: main actor-isolated property 'keyWindow' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
44 |     private func subscribeToKeyboardEvents() {
45 |         NotificationCenter.default.addObserver(forName: NSWindow.didResizeNotification, object: nil, queue: .main) { _ in
46 |             if let keyWindow = NSApp.keyWindow {
   |                                      `- warning: main actor-isolated property 'keyWindow' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
AppKit.NSApplication:13:30: note: property declared here
 11 |     open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
 12 |     weak open var mainWindow: NSWindow? { get }
 13 |     @MainActor weak open var keyWindow: NSWindow? { get }
    |                              `- note: property declared here
 14 |     open var isActive: Bool { get }
 15 |     @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/Design/KeyboardAdaptive.swift:46:32: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
44 |     private func subscribeToKeyboardEvents() {
45 |         NotificationCenter.default.addObserver(forName: NSWindow.didResizeNotification, object: nil, queue: .main) { _ in
46 |             if let keyWindow = NSApp.keyWindow {
   |                                `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
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/Design/KeyboardAdaptive.swift:47:47: warning: call to main actor-isolated instance method 'convertFromScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 |         NotificationCenter.default.addObserver(forName: NSWindow.didResizeNotification, object: nil, queue: .main) { _ in
46 |             if let keyWindow = NSApp.keyWindow {
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
   |                                               `- warning: call to main actor-isolated instance method 'convertFromScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
49 |             }
AppKit.NSWindow:201:26: note: calls to instance method 'convertFromScreen' from outside of its actor context are implicitly asynchronous
 199 |     open func convertRectToScreen(_ rect: NSRect) -> NSRect
 200 |     @available(macOS 10.7, *)
 201 |     @MainActor open func convertFromScreen(_ rect: NSRect) -> NSRect
     |                          `- note: calls to instance method 'convertFromScreen' from outside of its actor context are implicitly asynchronous
 202 |     @available(macOS 10.7, *)
 203 |     @available(swift, obsoleted: 3, renamed: "convertFromScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/Design/KeyboardAdaptive.swift:47:75: warning: main actor-isolated property 'frame' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
45 |         NotificationCenter.default.addObserver(forName: NSWindow.didResizeNotification, object: nil, queue: .main) { _ in
46 |             if let keyWindow = NSApp.keyWindow {
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
   |                                                                           `- warning: main actor-isolated property 'frame' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
49 |             }
AppKit.NSWindow:78:14: note: property declared here
  76 |     @available(macOS 15.0, *)
  77 |     open var cascadingReferenceFrame: NSRect { get }
  78 |     open var frame: NSRect { get }
     |              `- note: property declared here
  79 |     open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
  80 |     open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/Design/KeyboardAdaptive.swift:48:17: warning: main actor-isolated property 'keyboardHeight' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
33 | #else
34 | public struct KeyboardAdaptive: ViewModifier {
35 |     @State private var keyboardHeight: CGFloat = 0
   |                        `- note: mutation of this property is only permitted within the actor
36 |
37 |     public func body(content: Content) -> some View {
   :
46 |             if let keyWindow = NSApp.keyWindow {
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
   |                 `- warning: main actor-isolated property 'keyboardHeight' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
49 |             }
50 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Design/KeyboardAdaptive.swift:48:44: warning: main actor-isolated property 'frame' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
46 |             if let keyWindow = NSApp.keyWindow {
47 |                 let keyboardFrame = keyWindow.convertFromScreen(keyWindow.frame)
48 |                 keyboardHeight = keyWindow.frame.height - keyboardFrame.height
   |                                            `- warning: main actor-isolated property 'frame' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
49 |             }
50 |         }
AppKit.NSWindow:78:14: note: property declared here
  76 |     @available(macOS 15.0, *)
  77 |     open var cascadingReferenceFrame: NSRect { get }
  78 |     open var frame: NSRect { get }
     |              `- note: property declared here
  79 |     open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
  80 |     open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
[6/15] Compiling Design GrayRectangle.swift
[7/15] Compiling Design Extension+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+View.swift:11:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 9 |
10 | public extension View {
11 |     public func keyboardAdaptive() -> some View {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 |         ModifiedContent(content: self, modifier: KeyboardAdaptive())
13 |     }
[8/15] Emitting module Design
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+Array.swift:11:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 9 |
10 | public extension Array where Element: Codable {
11 |     public func jsonString() -> String? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 |         guard let data = try? JSONEncoder().encode(self) else { return nil }
13 |         return String(data: data, encoding: .utf8)
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+Color.swift:11:5: warning: 'public' modifier is redundant for static method declared in a public extension
 9 |
10 | public extension Color {
11 |     public static func random() -> Color {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
12 |         let red = Double.random(in: 0...1)
13 |         let green = Double.random(in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+View.swift:11:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 9 |
10 | public extension View {
11 |     public func keyboardAdaptive() -> some View {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 |         ModifiedContent(content: self, modifier: KeyboardAdaptive())
13 |     }
[9/15] Compiling Design Extension+NSApplication.swift
[10/15] Compiling Design Extension+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+Color.swift:11:5: warning: 'public' modifier is redundant for static method declared in a public extension
 9 |
10 | public extension Color {
11 |     public static func random() -> Color {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
12 |         let red = Double.random(in: 0...1)
13 |         let green = Double.random(in: 0...1)
[11/15] Compiling Design BundleID.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+Array.swift:11:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 9 |
10 | public extension Array where Element: Codable {
11 |     public func jsonString() -> String? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 |         guard let data = try? JSONEncoder().encode(self) else { return nil }
13 |         return String(data: data, encoding: .utf8)
[12/15] Compiling Design Extension+Array.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+Array.swift:11:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 9 |
10 | public extension Array where Element: Codable {
11 |     public func jsonString() -> String? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
12 |         guard let data = try? JSONEncoder().encode(self) else { return nil }
13 |         return String(data: data, encoding: .utf8)
[13/15] Compiling Design AboutView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:18:26: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
   |                          `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
AppKit.NSWindow:441:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 439 |     @available(macOS 10.12, *)
 440 |     open var windowTitlebarLayoutDirection: NSUserInterfaceLayoutDirection { get }
 441 |     @MainActor public convenience init()
     |                                   `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 442 |     @available(macOS 10.5, *)
 443 |     open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:19:20: warning: main actor-isolated property 'styleMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
   |                    `- warning: main actor-isolated property 'styleMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
AppKit.NSWindow:59:14: note: mutation of this property is only permitted within the actor
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
  58 |     open var windowNumber: Int { get }
  59 |     open var styleMask: NSWindow.StyleMask { get set }
     |              `- note: mutation of this property is only permitted within the actor
  60 |     open func fieldEditor(_ createFlag: Bool, for object: Any?) -> NSText?
  61 |     @available(swift, obsoleted: 3, renamed: "fieldEditor(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:20:20: warning: main actor-isolated property 'title' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
   |                    `- warning: main actor-isolated property 'title' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
AppKit.NSWindow:22:14: note: mutation of this property is only permitted within the actor
  20 |     @available(*, unavailable)
  21 |     public convenience init(coder: NSCoder)
  22 |     open var title: String { get set }
     |              `- note: mutation of this property is only permitted within the actor
  23 |     @available(macOS 11.0, *)
  24 |     open var subtitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:20:51: warning: main actor-isolated static property 'appName' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
   |                                                   `- warning: main actor-isolated static property 'appName' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+NSApplication.swift:13:16: note: static property declared here
11 | public extension NSApplication
12 | {
13 |     static var appName: String? {
   |                `- note: static property declared here
14 |         return Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String
15 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:21:20: warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
   |                    `- warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
  54 |     @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
  55 |     open var excludedFromWindowsMenu: Bool { get set }
  56 |     open var contentView: NSView? { get set }
     |              `- note: mutation of this property is only permitted within the actor
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
  58 |     open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:21:34: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
   |                                  `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 |     @available(visionOS, unavailable)
24 |     @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 |     @MainActor @preconcurrency required public init(rootView: Content)
   |                                                `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 |     @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:22:40: warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
   |                                        `- warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
AppKit.NSWindowController:2:23: note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
 1 | @MainActor open class NSWindowController : NSResponder, NSSeguePerforming {
 2 |     @MainActor public init(window: NSWindow?)
   |                       `- note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
 3 |     public init?(coder: NSCoder)
 4 |     public convenience init(windowNibName: NSNib.Name)
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:24:35: warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
   |                                   `- warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |     }
26 | }
AppKit.NSWindowController:31:36: note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
29 |     open func loadWindow()
30 |     open func close()
31 |     @IBAction @MainActor open func showWindow(_ sender: Any?)
   |                                    `- note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
32 |     public convenience init()
33 |     @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:24:72: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
   |                                                                        `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
25 |     }
26 | }
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
[14/15] Compiling Design AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:18:26: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
   |                          `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
AppKit.NSWindow:441:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 439 |     @available(macOS 10.12, *)
 440 |     open var windowTitlebarLayoutDirection: NSUserInterfaceLayoutDirection { get }
 441 |     @MainActor public convenience init()
     |                                   `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 442 |     @available(macOS 10.5, *)
 443 |     open var animations: [NSAnimatablePropertyKey : Any] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:19:20: warning: main actor-isolated property 'styleMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
   |                    `- warning: main actor-isolated property 'styleMask' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
AppKit.NSWindow:59:14: note: mutation of this property is only permitted within the actor
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
  58 |     open var windowNumber: Int { get }
  59 |     open var styleMask: NSWindow.StyleMask { get set }
     |              `- note: mutation of this property is only permitted within the actor
  60 |     open func fieldEditor(_ createFlag: Bool, for object: Any?) -> NSText?
  61 |     @available(swift, obsoleted: 3, renamed: "fieldEditor(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:20:20: warning: main actor-isolated property 'title' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
   |                    `- warning: main actor-isolated property 'title' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
AppKit.NSWindow:22:14: note: mutation of this property is only permitted within the actor
  20 |     @available(*, unavailable)
  21 |     public convenience init(coder: NSCoder)
  22 |     open var title: String { get set }
     |              `- note: mutation of this property is only permitted within the actor
  23 |     @available(macOS 11.0, *)
  24 |     open var subtitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:20:51: warning: main actor-isolated static property 'appName' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
18 |             let window = NSWindow()
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
   |                                                   `- warning: main actor-isolated static property 'appName' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
/Users/admin/builder/spi-builder-workspace/Sources/Design/Extension+NSApplication.swift:13:16: note: static property declared here
11 | public extension NSApplication
12 | {
13 |     static var appName: String? {
   |                `- note: static property declared here
14 |         return Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String
15 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:21:20: warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
   |                    `- warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
  54 |     @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
  55 |     open var excludedFromWindowsMenu: Bool { get set }
  56 |     open var contentView: NSView? { get set }
     |              `- note: mutation of this property is only permitted within the actor
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
  58 |     open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:21:34: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
19 |             window.styleMask = styleMask
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
   |                                  `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 |     @available(visionOS, unavailable)
24 |     @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 |     @MainActor @preconcurrency required public init(rootView: Content)
   |                                                `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 |     @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:22:40: warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
20 |             window.title = "About \(NSApplication.appName ?? "")"
21 |             window.contentView = NSHostingView(rootView: AboutView())
22 |             aboutBoxWindowController = NSWindowController(window: window)
   |                                        `- warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
AppKit.NSWindowController:2:23: note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
 1 | @MainActor open class NSWindowController : NSResponder, NSSeguePerforming {
 2 |     @MainActor public init(window: NSWindow?)
   |                       `- note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
 3 |     public init?(coder: NSCoder)
 4 |     public convenience init(windowNibName: NSNib.Name)
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:24:35: warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
   |                                   `- warning: call to main actor-isolated instance method 'showWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |     }
26 | }
AppKit.NSWindowController:31:36: note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
29 |     open func loadWindow()
30 |     open func close()
31 |     @IBAction @MainActor open func showWindow(_ sender: Any?)
   |                                    `- note: calls to instance method 'showWindow' from outside of its actor context are implicitly asynchronous
32 |     public convenience init()
33 |     @available(macOS 10.10, *)
/Users/admin/builder/spi-builder-workspace/Sources/Design/AppDelegate.swift:24:72: warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
13 |     private var aboutBoxWindowController: NSWindowController?
14 |
15 |     public func showAboutPanel() {
   |                 `- note: add '@MainActor' to make instance method 'showAboutPanel()' part of global actor 'MainActor'
16 |         if aboutBoxWindowController == nil {
17 |             let styleMask: NSWindow.StyleMask = [.closable, .miniaturizable, .titled]
   :
22 |             aboutBoxWindowController = NSWindowController(window: window)
23 |         }
24 |         aboutBoxWindowController?.showWindow(aboutBoxWindowController?.window)
   |                                                                        `- warning: main actor-isolated property 'window' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
25 |     }
26 | }
AppKit.NSWindowController:23:14: note: property declared here
21 |     @available(macOS 10.10, *)
22 |     open var contentViewController: NSViewController? { get set }
23 |     open var window: NSWindow? { get set }
   |              `- note: property declared here
24 |     open var isWindowLoaded: Bool { get }
25 |     @available(swift, obsoleted: 3, renamed: "isWindowLoaded")
[15/15] Compiling Design SearchButtonStyle.swift
Build complete! (26.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Design",
  "name" : "Design",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Design",
      "targets" : [
        "Design"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DesignTests",
      "module_type" : "SwiftTarget",
      "name" : "DesignTests",
      "path" : "Tests/DesignTests",
      "sources" : [
        "DesignTests.swift"
      ],
      "target_dependencies" : [
        "Design"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Design",
      "module_type" : "SwiftTarget",
      "name" : "Design",
      "path" : "Sources/Design",
      "product_memberships" : [
        "Design"
      ],
      "sources" : [
        "AboutView.swift",
        "AppDelegate.swift",
        "BundleID.swift",
        "Extension+Array.swift",
        "Extension+Color.swift",
        "Extension+NSApplication.swift",
        "Extension+View.swift",
        "GrayRectangle.swift",
        "KeyboardAdaptive.swift",
        "Notification+Copy.swift",
        "SearchBarStyle.swift",
        "SearchButtonStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.