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

Failed to build WindowTreatment, reference main (d3ca16), with Swift 5.9 for macOS (SPM) on 10 Jul 2024 02:22:40 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.46.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/WindowTreatment.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ChimeHQ/WindowTreatment
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d3ca166 Fix Xcode 15 compatibility
Cloned https://github.com/ChimeHQ/WindowTreatment.git
Revision (git rev-parse @):
d3ca166086388e276f60a66b1fb33048f655dc87
SUCCESS checkout https://github.com/ChimeHQ/WindowTreatment.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $workDir
https://github.com/ChimeHQ/WindowTreatment.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/15] Compiling WindowTreatment WindowStateAwareView.swift
[2/15] Compiling WindowTreatment NSWindow+Tabbing.swift
[3/15] Compiling WindowTreatment NSWindow+TitlebarTransparency.swift
[4/15] Compiling WindowTreatment WindowTitlebarAwareView.swift
[5/15] Compiling WindowTreatment WindowStateObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/WindowTreatment/WindowStateObserver.swift:101:15: error: 'assumeIsolated(_:file:line:)' is only available in macOS 14.0 or newer
                                MainActor.assumeIsolated {
                                          ^
/Users/admin/builder/spi-builder-workspace/Sources/WindowTreatment/WindowStateObserver.swift:101:15: note: add 'if #available' version check
                                MainActor.assumeIsolated {
                                          ^
/Users/admin/builder/spi-builder-workspace/Sources/WindowTreatment/WindowStateObserver.swift:64:18: note: add @available attribute to enclosing instance method
    private func registerForWindowNotifications(_ window: NSWindow) {
                 ^
/Users/admin/builder/spi-builder-workspace/Sources/WindowTreatment/WindowStateObserver.swift:8:20: note: add @available attribute to enclosing class
public final class WindowStateObserver {
                   ^
[6/16] Compiling WindowTreatment CustomizableMainKeyWindow.swift
[7/16] Compiling WindowTreatment TitlebarClickAwareWindow.swift
[8/16] Compiling WindowTreatment WindowStateObservingModifier.swift
[9/16] Compiling WindowTreatment NSView+Window.swift
[10/16] Compiling WindowTreatment WindowTitlebarAwareViewController.swift
[11/16] Emitting module WindowTreatment
[12/16] Compiling WindowTreatment NSWindow+Animation.swift
[13/16] Compiling WindowTreatment NSWindow+Sizing.swift
[14/16] Compiling WindowTreatment ApplicationWindowState.swift
[15/16] Compiling WindowTreatment WindowObservingViewModifier.swift
[16/16] Compiling WindowTreatment WindowStateObservingView.swift
error: fatalError
BUILD FAILURE 5.9 macosSpm