The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftEventBus, reference master (a30ff3), with Swift 6.3 for Wasm on 13 Apr 2026 11:40:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cesarferreira/SwiftEventBus.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/cesarferreira/SwiftEventBus
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a30ff35 bumped to 5.1.0
Cloned https://github.com/cesarferreira/SwiftEventBus.git
Revision (git rev-parse @):
a30ff35e616f507d8a8d122dac32a2150371a87e
SUCCESS checkout https://github.com/cesarferreira/SwiftEventBus.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/cesarferreira/SwiftEventBus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Compiling SwiftEventBus SwiftEventBus.swift
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:7:28: error: cannot find 'DispatchQueue' in scope
  5 |     struct Static {
  6 |         static let instance = SwiftEventBus()
  7 |         static let queue = DispatchQueue(label: "com.cesarferreira.SwiftEventBus", attributes: [])
    |                            `- error: cannot find 'DispatchQueue' in scope
  8 |     }
  9 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:60:86: error: cannot find type 'OperationQueue' in scope
 58 |
 59 |     @discardableResult
 60 |     open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
    |                                                                                      `- error: cannot find type 'OperationQueue' in scope
 61 |         let id = UInt(bitPattern: ObjectIdentifier(target))
 62 |         let observer = NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: name), object: sender, queue: queue, using: handler)
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:24:36: error: no exact matches in call to instance method 'post'
 22 |
 23 |     open class func post(_ name: String, sender: Any? = nil) {
 24 |         NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
    |                                    |- error: no exact matches in call to instance method 'post'
    |                                    |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                    |- note: found candidate with type '(Notification.Name) -> ()' (aka '(NSNotification.Name) -> ()')
    |                                    |- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                    `- note: found candidate with type '@MainActor (Notification.Name) -> ()' (aka '@MainActor (NSNotification.Name) -> ()')
 25 |     }
 26 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:28:36: error: no exact matches in call to instance method 'post'
 26 |
 27 |     open class func post(_ name: String, sender: NSObject?) {
 28 |         NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
    |                                    |- error: no exact matches in call to instance method 'post'
    |                                    |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                    |- note: found candidate with type '(Notification.Name) -> ()' (aka '(NSNotification.Name) -> ()')
    |                                    |- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                    `- note: found candidate with type '@MainActor (Notification.Name) -> ()' (aka '@MainActor (NSNotification.Name) -> ()')
 29 |     }
 30 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:32:36: error: no exact matches in call to instance method 'post'
 30 |
 31 |     open class func post(_ name: String, sender: Any? = nil, userInfo: [AnyHashable: Any]?) {
 32 |         NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender, userInfo: userInfo)
    |                                    |- error: no exact matches in call to instance method 'post'
    |                                    |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                    `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
 33 |     }
 34 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:36:9: error: cannot find 'DispatchQueue' in scope
 34 |
 35 |     open class func postToMainThread(_ name: String, sender: Any? = nil) {
 36 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
 37 |             NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
 38 |         }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:37:40: error: no exact matches in call to instance method 'post'
 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)
    |                                        |- error: no exact matches in call to instance method 'post'
    |                                        |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                        |- note: found candidate with type '(Notification.Name) -> ()' (aka '(NSNotification.Name) -> ()')
    |                                        |- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                        `- note: found candidate with type '@MainActor (Notification.Name) -> ()' (aka '@MainActor (NSNotification.Name) -> ()')
 38 |         }
 39 |     }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:42:9: error: cannot find 'DispatchQueue' in scope
 40 |
 41 |     open class func postToMainThread(_ name: String, sender: NSObject?) {
 42 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
 43 |             NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
 44 |         }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:43:40: error: no exact matches in call to instance method 'post'
 41 |     open class func postToMainThread(_ name: String, sender: NSObject?) {
 42 |         DispatchQueue.main.async {
 43 |             NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender)
    |                                        |- error: no exact matches in call to instance method 'post'
    |                                        |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                        |- note: found candidate with type '(Notification.Name) -> ()' (aka '(NSNotification.Name) -> ()')
    |                                        |- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                        `- note: found candidate with type '@MainActor (Notification.Name) -> ()' (aka '@MainActor (NSNotification.Name) -> ()')
 44 |         }
 45 |     }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:48:9: error: cannot find 'DispatchQueue' in scope
 46 |
 47 |     open class func postToMainThread(_ name: String, sender: Any? = nil, userInfo: [AnyHashable: Any]?) {
 48 |         DispatchQueue.main.async {
    |         `- error: cannot find 'DispatchQueue' in scope
 49 |             NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: sender, userInfo: userInfo)
 50 |         }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:49:40: error: no exact matches in call to instance method 'post'
 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)
    |                                        |- error: no exact matches in call to instance method 'post'
    |                                        |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
    |                                        `- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
 50 |         }
 51 |     }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:62:51: error: instance method 'addObserver(of:for:using:)' requires that 'Notification' conform to 'NotificationCenter.MainActorMessage'
 60 |     open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
 61 |         let id = UInt(bitPattern: ObjectIdentifier(target))
 62 |         let observer = NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: name), object: sender, queue: queue, using: handler)
    |                                                   `- error: instance method 'addObserver(of:for:using:)' requires that 'Notification' conform to 'NotificationCenter.MainActorMessage'
 63 |         let namedObserver = NamedObserver(observer: observer, name: name)
 64 |
FoundationEssentials.NotificationCenter.addObserver:2:13: note: where 'Message' = 'Notification'
1 | class NotificationCenter {
2 | public func addObserver<Message>(of subject: Message.Subject? = nil, for messageType: Message.Type, using observer: @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |             `- note: where 'Message' = 'Notification'
3 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:62:62: error: extra arguments at positions #1, #2, #3 in call
 60 |     open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
 61 |         let id = UInt(bitPattern: ObjectIdentifier(target))
 62 |         let observer = NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: name), object: sender, queue: queue, using: handler)
    |                                                              `- error: extra arguments at positions #1, #2, #3 in call
 63 |         let namedObserver = NamedObserver(observer: observer, name: name)
 64 |
FoundationEssentials.NotificationCenter.addObserver:2:13: note: 'addObserver(of:for:using:)' declared here
1 | class NotificationCenter {
2 | public func addObserver<Message>(of subject: Message.Subject? = nil, for messageType: Message.Type, using observer: @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |             `- note: 'addObserver(of:for:using:)' declared here
3 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:62:107: error: missing argument for parameter 'for' in call
 60 |     open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
 61 |         let id = UInt(bitPattern: ObjectIdentifier(target))
 62 |         let observer = NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: name), object: sender, queue: queue, using: handler)
    |                                                                                                           `- error: missing argument for parameter 'for' in call
 63 |         let namedObserver = NamedObserver(observer: observer, name: name)
 64 |
FoundationEssentials.NotificationCenter.addObserver:2:13: note: 'addObserver(of:for:using:)' declared here
1 | class NotificationCenter {
2 | public func addObserver<Message>(of subject: Message.Subject? = nil, for messageType: Message.Type, using observer: @escaping @MainActor (Message) -> Void) -> NotificationCenter.ObservationToken where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObject}
  |             `- note: 'addObserver(of:for:using:)' declared here
3 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:78:76: error: cannot find 'OperationQueue' in scope
 76 |     @discardableResult
 77 |     open class func onMainThread(_ target: AnyObject, name: String, sender: Any? = nil, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
 78 |         return SwiftEventBus.on(target, name: name, sender: sender, queue: OperationQueue.main, handler: handler)
    |                                                                            `- error: cannot find 'OperationQueue' in scope
 79 |     }
 80 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:83:76: error: cannot find 'OperationQueue' in scope
 81 |     @discardableResult
 82 |     open class func onBackgroundThread(_ target: AnyObject, name: String, sender: Any? = nil, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
 83 |         return SwiftEventBus.on(target, name: name, sender: sender, queue: OperationQueue(), handler: handler)
    |                                                                            `- error: cannot find 'OperationQueue' in scope
 84 |     }
 85 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:97:57: error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
 95 |             if let namedObservers = Static.instance.cache.removeValue(forKey: id) {
 96 |                 for namedObserver in namedObservers {
 97 |                     center.removeObserver(namedObserver.observer)
    |                                                         `- error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
 98 |                 }
 99 |             }
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:111:61: error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
109 |                 Static.instance.cache[id] = namedObservers.filter({ (namedObserver: NamedObserver) -> Bool in
110 |                     if namedObserver.name == name {
111 |                         center.removeObserver(namedObserver.observer)
    |                                                             `- error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
112 |                         return false
113 |                     } else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/4] Emitting module SwiftEventBus
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:7:28: error: cannot find 'DispatchQueue' in scope
  5 |     struct Static {
  6 |         static let instance = SwiftEventBus()
  7 |         static let queue = DispatchQueue(label: "com.cesarferreira.SwiftEventBus", attributes: [])
    |                            `- error: cannot find 'DispatchQueue' in scope
  8 |     }
  9 |
/host/spi-builder-workspace/SwiftEventBus/SwiftEventBus.swift:60:86: error: cannot find type 'OperationQueue' in scope
 58 |
 59 |     @discardableResult
 60 |     open class func on(_ target: AnyObject, name: String, sender: Any? = nil, queue: OperationQueue?, handler: @escaping ((Notification?) -> Void)) -> NSObjectProtocol {
    |                                                                                      `- error: cannot find type 'OperationQueue' in scope
 61 |         let id = UInt(bitPattern: ObjectIdentifier(target))
 62 |         let observer = NotificationCenter.default.addObserver(forName: NSNotification.Name(rawValue: name), object: sender, queue: queue, using: handler)
BUILD FAILURE 6.3 wasm