Build Information
Successful build of SwiftEventBus, reference master (588722), with Swift 6.1 for macOS (SPM) on 11 Aug 2026 07:49:32 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cesarferreira/SwiftEventBus.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cesarferreira/SwiftEventBus
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 588722d Refresh README for SPM-first integration and release 5.3.0.
Cloned https://github.com/cesarferreira/SwiftEventBus.git
Revision (git rev-parse @):
588722d006bf04dd4e9feec4853cc9d1cc25b656
SUCCESS checkout https://github.com/cesarferreira/SwiftEventBus.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/cesarferreira/SwiftEventBus.git
https://github.com/cesarferreira/SwiftEventBus.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftEventBus",
"name" : "SwiftEventBus",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftEventBus",
"targets" : [
"SwiftEventBus"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftEventBusTests",
"module_type" : "SwiftTarget",
"name" : "SwiftEventBusTests",
"path" : "Tests/SwiftEventBusTests",
"sources" : [
"SwiftEventBusTests.swift"
],
"target_dependencies" : [
"SwiftEventBus"
],
"type" : "test"
},
{
"c99name" : "SwiftEventBus",
"module_type" : "SwiftTarget",
"name" : "SwiftEventBus",
"path" : "SwiftEventBus",
"product_memberships" : [
"SwiftEventBus"
],
"sources" : [
"SwiftEventBus.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/4] Emitting module SwiftEventBus
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:6:20: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'SwiftEventBus' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class SwiftEventBus {
| `- note: class 'SwiftEventBus' does not conform to the 'Sendable' protocol
4 |
5 | struct Static {
6 | static let instance = SwiftEventBus()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'SwiftEventBus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | static let queue = DispatchQueue(label: "com.cesarferreira.SwiftEventBus")
8 | }
[4/4] Compiling SwiftEventBus SwiftEventBus.swift
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:6:20: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'SwiftEventBus' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | open class SwiftEventBus {
| `- note: class 'SwiftEventBus' does not conform to the 'Sendable' protocol
4 |
5 | struct Static {
6 | static let instance = SwiftEventBus()
| |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'SwiftEventBus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | static let queue = DispatchQueue(label: "com.cesarferreira.SwiftEventBus")
8 | }
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:62:144: warning: passing non-sendable parameter 'handler' to function expecting a @Sendable closure
58 |
59 | @discardableResult
60 | open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
| `- note: parameter 'handler' is implicitly non-sendable
61 | let id = UInt(bitPattern: ObjectIdentifier(target))
62 | let observer = NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: name), object: sender, queue: queue, using: handler)
| `- warning: passing non-sendable parameter 'handler' to function expecting a @Sendable closure
63 | let namedObserver = NamedObserver(observer: observer, name: name)
64 |
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:37:94: warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
35 | open class func postToMainThread(_ name: String, sender: Any? = nil) {
36 | DispatchQueue.main.async {
37 | NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
| |- warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'sender' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:43:94: warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
41 | open class func postToMainThread(_ name: String, sender: NSObject?) {
42 | DispatchQueue.main.async {
43 | NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
| |- warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'sender' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:49:94: warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
47 | open class func postToMainThread(_ name: String, sender: Any? = nil, userInfo: [AnyHashable: Any]?) {
48 | DispatchQueue.main.async {
49 | NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender, userInfo: userInfo)
| |- warning: sending 'sender' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'sender' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:49:112: warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
47 | open class func postToMainThread(_ name: String, sender: Any? = nil, userInfo: [AnyHashable: Any]?) {
48 | DispatchQueue.main.async {
49 | NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender, userInfo: userInfo)
| |- warning: sending 'userInfo' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'userInfo' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
50 | }
51 | }
Build complete! (4.36s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftEventBus",
"name" : "SwiftEventBus",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftEventBus",
"targets" : [
"SwiftEventBus"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftEventBusTests",
"module_type" : "SwiftTarget",
"name" : "SwiftEventBusTests",
"path" : "Tests/SwiftEventBusTests",
"sources" : [
"SwiftEventBusTests.swift"
],
"target_dependencies" : [
"SwiftEventBus"
],
"type" : "test"
},
{
"c99name" : "SwiftEventBus",
"module_type" : "SwiftTarget",
"name" : "SwiftEventBus",
"path" : "SwiftEventBus",
"product_memberships" : [
"SwiftEventBus"
],
"sources" : [
"SwiftEventBus.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.