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 timeui, reference main (4cfee8), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 14:43:00 UTC.

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/icanzilb/timeui.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/icanzilb/timeui
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4cfee8e Merge pull request #5 from icanzilb/marin_todorov/ding
Cloned https://github.com/icanzilb/timeui.git
Revision (git rev-parse @):
4cfee8eb93f5523f1ae95c74e1d4d34049c3db63
SUCCESS checkout https://github.com/icanzilb/timeui.git at main
========================================
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": "timeui",
      "name": "timeui",
      "url": "https://github.com/icanzilb/timeui.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/timeui",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/icanzilb/timeui.git
[1/87] Fetching timeui
Fetched https://github.com/icanzilb/timeui.git from cache (1.30s)
Creating working copy for https://github.com/icanzilb/timeui.git
Working copy of https://github.com/icanzilb/timeui.git resolved at main (4cfee8e)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/icanzilb/timeui.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/11] Write sources
[2/11] Write timeui-entitlement.plist
[3/11] Write test-app-entitlement.plist
[4/11] Write swift-version--7754E27361AE5C74.txt
[6/26] Compiling test_app main.swift
/Users/admin/builder/spi-builder-workspace/Sources/test-app/main.swift:36:72: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
33 | let log = OSLog(subsystem: "mySystem", category: .pointsOfInterest)
34 |
35 | func delay(_ seconds: Double, block: @escaping () -> Void) {
   |                               `- note: parameter 'block' is implicitly non-sendable
36 |     DispatchQueue.main.asyncAfter(deadline: .now() + seconds, execute: block)
   |                                                                        `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
37 | }
38 |
[7/26] Emitting module test_app
[7/26] Write Objects.LinkFileList
[8/26] Linking test-app
[9/26] Applying test-app
[11/26] Compiling timeui Sound.swift
[12/27] Compiling timeui DingToggleView.swift
[13/27] Compiling timeui Notification.swift
[14/27] Compiling timeui TimerWindow.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
[15/27] Compiling timeui TimerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/View/TimerView.swift:115:21: warning: main actor-isolated property 'text' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 41 |     @State var timer: Timer? = nil
 42 |     @State var started = CACurrentMediaTime()
 43 |     @State var text = "00:00"
    |                `- note: mutation of this property is only permitted within the actor
 44 |     @State var isFinished = false
 45 |
    :
113 |                 self.started = started
114 |                 timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true, block: { timer in
115 |                     text = timerFormatted(CACurrentMediaTime() - started)
    |                     `- warning: main actor-isolated property 'text' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
116 |
117 |                     let sampleUsage = model.usage.usage
/Users/admin/builder/spi-builder-workspace/Sources/timeui/View/TimerView.swift:117:39: warning: main actor-isolated property 'model' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 37 |
 38 | struct TimerView: View {
 39 |     @EnvironmentObject var model: RunnerModel
    |                            `- note: property declared here
 40 |
 41 |     @State var timer: Timer? = nil
    :
115 |                     text = timerFormatted(CACurrentMediaTime() - started)
116 |
117 |                     let sampleUsage = model.usage.usage
    |                                       `- warning: main actor-isolated property 'model' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
118 |                     if sampleUsage.memory.total > 0 {
119 |                         let memFootprintMB = Double(sampleUsage.memory.used) / 1024 / 1024
/Users/admin/builder/spi-builder-workspace/Sources/timeui/View/TimerView.swift:121:25: warning: main actor-isolated property 'stats' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 52 |     @State var regions = [RegionEntry]()
 53 |     @State var regionsCancellable: AnyCancellable?
 54 |     @State var stats = ""
    |                `- note: mutation of this property is only permitted within the actor
 55 |
 56 |     @State var dingEnabled = false
    :
119 |                         let memFootprintMB = Double(sampleUsage.memory.used) / 1024 / 1024
120 |                         let memPercentage = Double(sampleUsage.memory.used) / Double(sampleUsage.memory.total) * 100
121 |                         stats = String(format: "CPU: %.0f%%\nMemory: %.0f%% %.2fMb", sampleUsage.cpu, memPercentage, memFootprintMB)
    |                         `- warning: main actor-isolated property 'stats' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
122 |                     }
123 |                 })
[16/27] Emitting module timeui
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:34:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 32 | }
 33 |
 34 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 35 |
 36 | class App {
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:62:22: 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
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
    |                      `- 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
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
 64 |             styleMask: [.titled, .closable, .resizable],
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
  16 |     @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
  17 |     open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
  18 |     @MainActor public 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
  19 |     public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
  20 |     @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:69:16: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 67 |         )
 68 |
 69 |         window.center()
    |                `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 141 |     open var hidesOnDeactivate: Bool { get set }
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
     |                          `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
 145 |     open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:70:16: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 68 |
 69 |         window.center()
 70 |         window.title = "▶  " + title
    |                `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(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/timeui/App/App.swift:71:16: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 69 |         window.center()
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
    |                `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 72 |         window.makeKeyAndOrderFront(window)
 73 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
  26 |     open var titleVisibility: NSWindow.TitleVisibility { get set }
  27 |     @available(macOS 10.10, *)
  28 |     open var titlebarAppearsTransparent: Bool { get set }
     |              `- note: mutation of this property is only permitted within the actor
  29 |     @available(macOS 11.0, *)
  30 |     open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:72:16: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(window)
    |                `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |
 74 |         class WindowDelegate: NSObject, NSWindowDelegate {
AppKit.NSWindow:144:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
     |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 145 |     open func orderFront(_ sender: Any?)
 146 |     open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:80:16: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 78 |         }
 79 |         let windowDelegate = WindowDelegate()
 80 |         window.delegate = windowDelegate
    |                `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 81 |
 82 |         return window
AppKit.NSWindow:57:19: note: mutation of this property is only permitted within the actor
  55 |     open var excludedFromWindowsMenu: Bool { get set }
  56 |     open var contentView: NSView? { get set }
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
     |                   `- note: mutation of this property is only permitted within the actor
  58 |     open var windowNumber: Int { get }
  59 |     open var styleMask: NSWindow.StyleMask { get set }
[17/27] Compiling timeui App.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:34:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 32 | }
 33 |
 34 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 35 |
 36 | class App {
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:39:41: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 36 | class App {
 37 |     static var shared: App!
 38 |     static func main(arguments: [String]) throws {
    |                 `- note: add '@MainActor' to make static method 'main(arguments:)' part of global actor 'MainActor'
 39 |         let application = NSApplication.shared
    |                                         `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 40 |         application.setActivationPolicy(.regular)
 41 |
AppKit.NSApplication:2:31: note: class property declared here
  1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
  2 |     @MainActor open class var shared: NSApplication { get }
    |                               `- note: class property declared here
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:40:21: warning: call to main actor-isolated instance method 'setActivationPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 36 | class App {
 37 |     static var shared: App!
 38 |     static func main(arguments: [String]) throws {
    |                 `- note: add '@MainActor' to make static method 'main(arguments:)' part of global actor 'MainActor'
 39 |         let application = NSApplication.shared
 40 |         application.setActivationPolicy(.regular)
    |                     `- warning: call to main actor-isolated instance method 'setActivationPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 41 |
 42 |         shared = App(application: application)
AppKit.NSApplication:79:26: note: calls to instance method 'setActivationPolicy' from outside of its actor context are implicitly asynchronous
 77 |     open func activationPolicy() -> NSApplication.ActivationPolicy
 78 |     @available(macOS 10.6, *)
 79 |     @MainActor open func setActivationPolicy(_ activationPolicy: NSApplication.ActivationPolicy) -> Bool
    |                          `- note: calls to instance method 'setActivationPolicy' from outside of its actor context are implicitly asynchronous
 80 |     @available(macOS 10.5, *)
 81 |     open var dockTile: NSDockTile { get }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:62:22: 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
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
    |                      `- 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
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
 64 |             styleMask: [.titled, .closable, .resizable],
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
  16 |     @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
  17 |     open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
  18 |     @MainActor public 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
  19 |     public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
  20 |     @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:69:16: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 67 |         )
 68 |
 69 |         window.center()
    |                `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 141 |     open var hidesOnDeactivate: Bool { get set }
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
     |                          `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
 145 |     open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:70:16: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 68 |
 69 |         window.center()
 70 |         window.title = "▶  " + title
    |                `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(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/timeui/App/App.swift:71:16: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 69 |         window.center()
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
    |                `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 72 |         window.makeKeyAndOrderFront(window)
 73 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
  26 |     open var titleVisibility: NSWindow.TitleVisibility { get set }
  27 |     @available(macOS 10.10, *)
  28 |     open var titlebarAppearsTransparent: Bool { get set }
     |              `- note: mutation of this property is only permitted within the actor
  29 |     @available(macOS 11.0, *)
  30 |     open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:72:16: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(window)
    |                `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |
 74 |         class WindowDelegate: NSObject, NSWindowDelegate {
AppKit.NSWindow:144:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
     |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 145 |     open func orderFront(_ sender: Any?)
 146 |     open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:80:16: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 78 |         }
 79 |         let windowDelegate = WindowDelegate()
 80 |         window.delegate = windowDelegate
    |                `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 81 |
 82 |         return window
AppKit.NSWindow:57:19: note: mutation of this property is only permitted within the actor
  55 |     open var excludedFromWindowsMenu: Bool { get set }
  56 |     open var contentView: NSView? { get set }
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
     |                   `- note: mutation of this property is only permitted within the actor
  58 |     open var windowNumber: Int { get }
  59 |     open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:86:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
    |                     `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 87 |         application.activate(ignoringOtherApps: true)
 88 |         application.run()
AppKit.NSApplication:5:19: note: mutation of this property is only permitted within the actor
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
  5 |     weak open var delegate: (any NSApplicationDelegate)? { get set }
    |                   `- note: mutation of this property is only permitted within the actor
  6 |     open func hide(_ sender: Any?)
  7 |     open func unhide(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:87:21: warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
 87 |         application.activate(ignoringOtherApps: true)
    |                     `- warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 88 |         application.run()
 89 |     }
AppKit.NSApplication:25:15: note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
 23 |     open func deactivate()
 24 |     @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
 25 |     open func activate(ignoringOtherApps ignoreOtherApps: Bool)
    |               `- note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
 26 |     @available(swift, obsoleted: 3, renamed: "activate(ignoringOtherApps:)")
 27 |     @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:88:21: warning: call to main actor-isolated instance method 'run()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
 87 |         application.activate(ignoringOtherApps: true)
 88 |         application.run()
    |                     `- warning: call to main actor-isolated instance method 'run()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 89 |     }
 90 |
AppKit.NSApplication:44:15: note: calls to instance method 'run()' from outside of its actor context are implicitly asynchronous
 42 |     open func unhideAllApplications(_ sender: Any?)
 43 |     open func finishLaunching()
 44 |     open func run()
    |               `- note: calls to instance method 'run()' from outside of its actor context are implicitly asynchronous
 45 |     open func runModal(for window: NSWindow) -> NSApplication.ModalResponse
 46 |     @available(swift, obsoleted: 3, renamed: "runModal(for:)")
[18/27] Compiling timeui AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:34:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
 32 | }
 33 |
 34 | extension String: Error {}
    | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 35 |
 36 | class App {
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:39:41: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 36 | class App {
 37 |     static var shared: App!
 38 |     static func main(arguments: [String]) throws {
    |                 `- note: add '@MainActor' to make static method 'main(arguments:)' part of global actor 'MainActor'
 39 |         let application = NSApplication.shared
    |                                         `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 40 |         application.setActivationPolicy(.regular)
 41 |
AppKit.NSApplication:2:31: note: class property declared here
  1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
  2 |     @MainActor open class var shared: NSApplication { get }
    |                               `- note: class property declared here
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:40:21: warning: call to main actor-isolated instance method 'setActivationPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 36 | class App {
 37 |     static var shared: App!
 38 |     static func main(arguments: [String]) throws {
    |                 `- note: add '@MainActor' to make static method 'main(arguments:)' part of global actor 'MainActor'
 39 |         let application = NSApplication.shared
 40 |         application.setActivationPolicy(.regular)
    |                     `- warning: call to main actor-isolated instance method 'setActivationPolicy' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 41 |
 42 |         shared = App(application: application)
AppKit.NSApplication:79:26: note: calls to instance method 'setActivationPolicy' from outside of its actor context are implicitly asynchronous
 77 |     open func activationPolicy() -> NSApplication.ActivationPolicy
 78 |     @available(macOS 10.6, *)
 79 |     @MainActor open func setActivationPolicy(_ activationPolicy: NSApplication.ActivationPolicy) -> Bool
    |                          `- note: calls to instance method 'setActivationPolicy' from outside of its actor context are implicitly asynchronous
 80 |     @available(macOS 10.5, *)
 81 |     open var dockTile: NSDockTile { get }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:62:22: 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
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
    |                      `- 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
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
 64 |             styleMask: [.titled, .closable, .resizable],
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
  16 |     @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
  17 |     open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
  18 |     @MainActor public 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
  19 |     public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
  20 |     @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:69:16: warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 67 |         )
 68 |
 69 |         window.center()
    |                `- warning: call to main actor-isolated instance method 'center()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
AppKit.NSWindow:143:26: note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 141 |     open var hidesOnDeactivate: Bool { get set }
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
     |                          `- note: calls to instance method 'center()' from outside of its actor context are implicitly asynchronous
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
 145 |     open func orderFront(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:70:16: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 68 |
 69 |         window.center()
 70 |         window.title = "▶  " + title
    |                `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(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/timeui/App/App.swift:71:16: warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 69 |         window.center()
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
    |                `- warning: main actor-isolated property 'titlebarAppearsTransparent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 72 |         window.makeKeyAndOrderFront(window)
 73 |
AppKit.NSWindow:28:14: note: mutation of this property is only permitted within the actor
  26 |     open var titleVisibility: NSWindow.TitleVisibility { get set }
  27 |     @available(macOS 10.10, *)
  28 |     open var titlebarAppearsTransparent: Bool { get set }
     |              `- note: mutation of this property is only permitted within the actor
  29 |     @available(macOS 11.0, *)
  30 |     open var toolbarStyle: NSWindow.ToolbarStyle { get set }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:72:16: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 70 |         window.title = "▶  " + title
 71 |         window.titlebarAppearsTransparent = true
 72 |         window.makeKeyAndOrderFront(window)
    |                `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 73 |
 74 |         class WindowDelegate: NSObject, NSWindowDelegate {
AppKit.NSWindow:144:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 142 |     open var canHide: Bool { get set }
 143 |     @MainActor open func center()
 144 |     @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
     |                          `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
 145 |     open func orderFront(_ sender: Any?)
 146 |     open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:80:16: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 |     }
 60 |
 61 |     func makeWindow(title: String) -> NSWindow {
    |          `- note: add '@MainActor' to make instance method 'makeWindow(title:)' part of global actor 'MainActor'
 62 |         let window = NSWindow(
 63 |             contentRect: NSMakeRect(0, 0, 10, 10),
    :
 78 |         }
 79 |         let windowDelegate = WindowDelegate()
 80 |         window.delegate = windowDelegate
    |                `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 81 |
 82 |         return window
AppKit.NSWindow:57:19: note: mutation of this property is only permitted within the actor
  55 |     open var excludedFromWindowsMenu: Bool { get set }
  56 |     open var contentView: NSView? { get set }
  57 |     weak open var delegate: (any NSWindowDelegate)? { get set }
     |                   `- note: mutation of this property is only permitted within the actor
  58 |     open var windowNumber: Int { get }
  59 |     open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:86:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
    |                     `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 87 |         application.activate(ignoringOtherApps: true)
 88 |         application.run()
AppKit.NSApplication:5:19: note: mutation of this property is only permitted within the actor
  3 |     @available(swift, obsoleted: 3, renamed: "shared")
  4 |     open class var sharedApplication: NSApplication { get }
  5 |     weak open var delegate: (any NSApplicationDelegate)? { get set }
    |                   `- note: mutation of this property is only permitted within the actor
  6 |     open func hide(_ sender: Any?)
  7 |     open func unhide(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:87:21: warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
 87 |         application.activate(ignoringOtherApps: true)
    |                     `- warning: call to main actor-isolated instance method 'activate(ignoringOtherApps:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 88 |         application.run()
 89 |     }
AppKit.NSApplication:25:15: note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
 23 |     open func deactivate()
 24 |     @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
 25 |     open func activate(ignoringOtherApps ignoreOtherApps: Bool)
    |               `- note: calls to instance method 'activate(ignoringOtherApps:)' from outside of its actor context are implicitly asynchronous
 26 |     @available(swift, obsoleted: 3, renamed: "activate(ignoringOtherApps:)")
 27 |     @available(macOS, introduced: 10.0, deprecated: 100000, message: "This method will be deprecated in a future release. Use NSApp.activate instead.")
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:88:21: warning: call to main actor-isolated instance method 'run()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 83 |     }
 84 |
 85 |     func runUIWithDelegate(_ delegate: ApplicationDelegate) {
    |          `- note: add '@MainActor' to make instance method 'runUIWithDelegate' part of global actor 'MainActor'
 86 |         application.delegate = delegate
 87 |         application.activate(ignoringOtherApps: true)
 88 |         application.run()
    |                     `- warning: call to main actor-isolated instance method 'run()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 89 |     }
 90 |
AppKit.NSApplication:44:15: note: calls to instance method 'run()' from outside of its actor context are implicitly asynchronous
 42 |     open func unhideAllApplications(_ sender: Any?)
 43 |     open func finishLaunching()
 44 |     open func run()
    |               `- note: calls to instance method 'run()' from outside of its actor context are implicitly asynchronous
 45 |     open func runModal(for window: NSWindow) -> NSApplication.ModalResponse
 46 |     @available(swift, obsoleted: 3, renamed: "runModal(for:)")
[19/27] Compiling timeui main.swift
[20/27] Compiling timeui Runner.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:46:36: warning: converting non-sendable function value to '@Sendable (Process) -> Void' may introduce data races
44 |         process.environment = ProcessInfo.processInfo.environment
45 |         process.arguments = ProcessInfo.processInfo.arguments
46 |         process.terminationHandler = self.terminated(process:)
   |                                    `- warning: converting non-sendable function value to '@Sendable (Process) -> Void' may introduce data races
47 |
48 |         started = CACurrentMediaTime()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:50:13: warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | import Combine
25 |
26 | class Runner {
   |       `- note: class 'Runner' does not conform to the 'Sendable' protocol
27 |     enum State {
28 |         case ready
   :
48 |         started = CACurrentMediaTime()
49 |         DispatchQueue.main.async {
50 |             self.state.send(.running(started: self.started))
   |             `- warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 |         }
52 |         try process.run()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:62:13: warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | import Combine
25 |
26 | class Runner {
   |       `- note: class 'Runner' does not conform to the 'Sendable' protocol
27 |     enum State {
28 |         case ready
   :
60 |         duration = CACurrentMediaTime() - started
61 |         DispatchQueue.main.async {
62 |             self.state.send(.completed(duration: self.duration))
   |             `- warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |         }
64 |         print(String(format: "Duration: %.4fs", duration))
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:50:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
48 |         started = CACurrentMediaTime()
49 |         DispatchQueue.main.async {
50 |             self.state.send(.running(started: self.started))
   |             |- 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
51 |         }
52 |         try process.run()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:62:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |         duration = CACurrentMediaTime() - started
61 |         DispatchQueue.main.async {
62 |             self.state.send(.completed(duration: self.duration))
   |             |- 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
63 |         }
64 |         print(String(format: "Duration: %.4fs", duration))
[21/27] Compiling timeui LogDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:46:36: warning: converting non-sendable function value to '@Sendable (Process) -> Void' may introduce data races
44 |         process.environment = ProcessInfo.processInfo.environment
45 |         process.arguments = ProcessInfo.processInfo.arguments
46 |         process.terminationHandler = self.terminated(process:)
   |                                    `- warning: converting non-sendable function value to '@Sendable (Process) -> Void' may introduce data races
47 |
48 |         started = CACurrentMediaTime()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:50:13: warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | import Combine
25 |
26 | class Runner {
   |       `- note: class 'Runner' does not conform to the 'Sendable' protocol
27 |     enum State {
28 |         case ready
   :
48 |         started = CACurrentMediaTime()
49 |         DispatchQueue.main.async {
50 |             self.state.send(.running(started: self.started))
   |             `- warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
51 |         }
52 |         try process.run()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:62:13: warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | import Combine
25 |
26 | class Runner {
   |       `- note: class 'Runner' does not conform to the 'Sendable' protocol
27 |     enum State {
28 |         case ready
   :
60 |         duration = CACurrentMediaTime() - started
61 |         DispatchQueue.main.async {
62 |             self.state.send(.completed(duration: self.duration))
   |             `- warning: capture of 'self' with non-sendable type 'Runner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |         }
64 |         print(String(format: "Duration: %.4fs", duration))
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/App.swift:37:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 | class App {
 37 |     static var shared: App!
    |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     static func main(arguments: [String]) throws {
 39 |         let application = NSApplication.shared
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:50:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
48 |         started = CACurrentMediaTime()
49 |         DispatchQueue.main.async {
50 |             self.state.send(.running(started: self.started))
   |             |- 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
51 |         }
52 |         try process.run()
/Users/admin/builder/spi-builder-workspace/Sources/timeui/App/Runner.swift:62:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
60 |         duration = CACurrentMediaTime() - started
61 |         DispatchQueue.main.async {
62 |             self.state.send(.completed(duration: self.duration))
   |             |- 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
63 |         }
64 |         print(String(format: "Duration: %.4fs", duration))
[22/27] Compiling timeui Color.swift
[23/27] Compiling timeui PerformanceСalculator.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:92:33: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 90 | 		var task: mach_port_t = 0
 91 |
 92 | 		let taskResult = task_for_pid(mach_task_self_, pid, &task )
    |                                 `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 | 		guard taskResult == KERN_SUCCESS else {
 94 | 			//print("Error: could not get the task for pid '\(pid)'")
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:126:23: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
124 |         }
125 |
126 |         vm_deallocate(mach_task_self_, vm_address_t(UInt(bitPattern: threadsList)), vm_size_t(Int(threadsCount) * MemoryLayout<thread_t>.stride))
    |                       `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |         return totalUsageOfCPU
128 |     }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:133:33: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
131 | 		var task: mach_port_t = 0
132 |
133 | 		let taskResult = task_for_pid(mach_task_self_, pid, &task )
    |                                 `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 | 		guard taskResult == KERN_SUCCESS else {
135 | 			//print("Error: could not get the task for pid '\(pid)'")
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
[24/27] Compiling timeui RunnerModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:92:33: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 90 | 		var task: mach_port_t = 0
 91 |
 92 | 		let taskResult = task_for_pid(mach_task_self_, pid, &task )
    |                                 `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 | 		guard taskResult == KERN_SUCCESS else {
 94 | 			//print("Error: could not get the task for pid '\(pid)'")
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:126:23: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
124 |         }
125 |
126 |         vm_deallocate(mach_task_self_, vm_address_t(UInt(bitPattern: threadsList)), vm_size_t(Int(threadsCount) * MemoryLayout<thread_t>.stride))
    |                       `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
127 |         return totalUsageOfCPU
128 |     }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/timeui/Model/PerformanceСalculator.swift:133:33: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
131 | 		var task: mach_port_t = 0
132 |
133 | 		let taskResult = task_for_pid(mach_task_self_, pid, &task )
    |                                 `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
134 | 		guard taskResult == KERN_SUCCESS else {
135 | 			//print("Error: could not get the task for pid '\(pid)'")
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
[24/27] Write Objects.LinkFileList
[25/27] Linking timeui
[26/27] Applying timeui
Build complete! (12.09s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "timeui",
  "name" : "timeui",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "timeui",
      "targets" : [
        "timeui"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "test-app",
      "targets" : [
        "test-app"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "timeuiTests",
      "module_type" : "SwiftTarget",
      "name" : "timeuiTests",
      "path" : "Tests/timeuiTests",
      "sources" : [
        "timeuiTests.swift"
      ],
      "target_dependencies" : [
        "timeui"
      ],
      "type" : "test"
    },
    {
      "c99name" : "timeui",
      "module_type" : "SwiftTarget",
      "name" : "timeui",
      "path" : "Sources/timeui",
      "product_memberships" : [
        "timeui"
      ],
      "sources" : [
        "App/App.swift",
        "App/AppDelegate.swift",
        "App/Runner.swift",
        "Model/LogDataSource.swift",
        "Model/PerformanceСalculator.swift",
        "Model/RunnerModel.swift",
        "Util/Color.swift",
        "Util/Notification.swift",
        "Util/Sound.swift",
        "View/DingToggleView.swift",
        "View/TimerView.swift",
        "View/TimerWindow.swift",
        "main.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "test_app",
      "module_type" : "SwiftTarget",
      "name" : "test-app",
      "path" : "Sources/test-app",
      "product_memberships" : [
        "test-app"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Done.