Build Information
Failed to build NotificationTask, reference 0.1.2 (638c59), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 02:59:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/samsonjs/NotificationTask.git
Reference: 0.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/samsonjs/NotificationTask
* tag 0.1.2 -> FETCH_HEAD
HEAD is now at 638c594 Add Hashable conformance
Cloned https://github.com/samsonjs/NotificationTask.git
Revision (git rev-parse @):
638c5942c06a66a69ab44ca5ab4e2bd77e5a2297
SUCCESS checkout https://github.com/samsonjs/NotificationTask.git at 0.1.2
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "notificationtask",
"name": "NotificationTask",
"url": "https://github.com/samsonjs/NotificationTask.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NotificationTask",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/samsonjs/NotificationTask.git
[1/30] Fetching notificationtask
Fetched https://github.com/samsonjs/NotificationTask.git from cache (0.63s)
Creating working copy for https://github.com/samsonjs/NotificationTask.git
Working copy of https://github.com/samsonjs/NotificationTask.git resolved at 0.1.2 (638c594)
warning: '.resolve-product-dependencies': dependency 'notificationtask' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/samsonjs/NotificationTask.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/4] Emitting module NotificationTask
/Users/admin/builder/spi-builder-workspace/Sources/NotificationTask/NotificationTask.swift:3:49: warning: conformance of 'Notification' to protocol 'Sendable' was already stated in the type's module 'Foundation'
1 | public import Foundation
2 |
3 | extension Notification: @unchecked @retroactive Sendable {}
| `- warning: conformance of 'Notification' to protocol 'Sendable' was already stated in the type's module 'Foundation'
4 |
5 | /// Manages a task that observes notifications. The tasks's lifetime is tied to the lifetime of the `NotificationTask` instance, so you
Foundation.Notification:6:11: note: 'Notification' declares conformance to protocol 'Sendable' here
4 | @available(watchOS, unavailable, introduced: 2.0)
5 | @available(*, unavailable)
6 | extension Notification : Sendable {
| `- note: 'Notification' declares conformance to protocol 'Sendable' here
7 | }
[4/4] Compiling NotificationTask NotificationTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NotificationTask/NotificationTask.swift:3:49: warning: conformance of 'Notification' to protocol 'Sendable' was already stated in the type's module 'Foundation'
1 | public import Foundation
2 |
3 | extension Notification: @unchecked @retroactive Sendable {}
| `- warning: conformance of 'Notification' to protocol 'Sendable' was already stated in the type's module 'Foundation'
4 |
5 | /// Manages a task that observes notifications. The tasks's lifetime is tied to the lifetime of the `NotificationTask` instance, so you
Foundation.Notification:6:11: note: 'Notification' declares conformance to protocol 'Sendable' here
4 | @available(watchOS, unavailable, introduced: 2.0)
5 | @available(*, unavailable)
6 | extension Notification : Sendable {
| `- note: 'Notification' declares conformance to protocol 'Sendable' here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/NotificationTask/NotificationTask.swift:46:23: error: sending 'context' risks causing data races [#SendingRisksDataRace]
44 | for await notification in center.notifications(named: name) {
45 | guard let context else { break }
46 | await block(context, notification)
| |- error: sending 'context' risks causing data races [#SendingRisksDataRace]
| `- note: sending main actor-isolated 'context' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
47 | }
48 | }
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
BUILD FAILURE 6.3 macosSpm