The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MacToastKit, reference 1.0.0 (09418e), with Swift 6.2 for macOS (SPM) on 28 Aug 2025 18:30:52 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/daniyalmaster693/MacToastKit.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/daniyalmaster693/MacToastKit
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 09418ed Updated README.md
Cloned https://github.com/daniyalmaster693/MacToastKit.git
Revision (git rev-parse @):
09418ed3be23b407f01200c45e4bc0dede7d90c0
SUCCESS checkout https://github.com/daniyalmaster693/MacToastKit.git at 1.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/daniyalmaster693/MacToastKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/5] Emitting module MacToastKit
[4/5] Compiling MacToastKit ToastContentView.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacToastKit/ToastContentView.swift:36:23: error: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context [#ActorIsolatedCall]
34 |                 panel.animator().alphaValue = 0
35 |             }, completionHandler: {
36 |                 panel.orderOut(nil)
   |                       `- error: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context [#ActorIsolatedCall]
37 |             })
38 |         }
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
[5/5] Compiling MacToastKit MacToastKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacToastKit/MacToastKit.swift:118:31: error: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context [#ActorIsolatedCall]
116 |                         panel.animator().alphaValue = 0
117 |                     }, completionHandler: {
118 |                         panel.orderOut(nil)
    |                               `- error: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context [#ActorIsolatedCall]
119 |                     })
120 |                 }
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
[#ActorIsolatedCall]: <https://docs.swift.org/compiler/documentation/diagnostics/actor-isolated-call>
BUILD FAILURE 6.2 macosSpm