Build Information
Failed to build Notifwift, reference master (99c5cf), with Swift 6.3 for Wasm on 11 Apr 2026 11:34:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/takasek/Notifwift.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/takasek/Notifwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 99c5cf6 Merge pull request #15 from takasek/fix_deployment_target
Cloned https://github.com/takasek/Notifwift.git
Revision (git rev-parse @):
99c5cf6b0226a8ac205ea3561b59fdf145fc03e1
SUCCESS checkout https://github.com/takasek/Notifwift.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/takasek/Notifwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Notifwift
/host/spi-builder-workspace/Notifwift/Notifwift.swift:32:60: error: cannot find type 'OperationQueue' in scope
30 | let observer: NSObjectProtocol
31 |
32 | init(name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (_ notification: Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
/host/spi-builder-workspace/Notifwift/Notifwift.swift:59:84: error: cannot find type 'OperationQueue' in scope
57 | }
58 |
59 | public func observe(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ notification: Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
60 | addToPool(name, object: object, queue: queue, block: block)
61 | }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:63:87: error: cannot find type 'OperationQueue' in scope
61 | }
62 |
63 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ notification: Notification, _ payload: T) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
64 | addToPool(name, object: object, queue: queue) { [weak self] in
65 | guard let payload: T = self?.payload(from: $0) else { return }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:70:87: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ payload: T) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
71 | addToPool(name, object: object, queue: queue) { [weak self] in
72 | guard let payload: T = self?.payload(from: $0) else { return }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:82:76: error: cannot find type 'OperationQueue' in scope
80 |
81 | // MARK: private methods
82 | private func addToPool(_ name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
83 | pool.append(ObserverContainer(name: name, object: object, queue: queue, block: block))
84 | }
[4/4] Compiling Notifwift Notifwift.swift
/host/spi-builder-workspace/Notifwift/Notifwift.swift:32:60: error: cannot find type 'OperationQueue' in scope
30 | let observer: NSObjectProtocol
31 |
32 | init(name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (_ notification: Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
/host/spi-builder-workspace/Notifwift/Notifwift.swift:59:84: error: cannot find type 'OperationQueue' in scope
57 | }
58 |
59 | public func observe(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ notification: Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
60 | addToPool(name, object: object, queue: queue, block: block)
61 | }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:63:87: error: cannot find type 'OperationQueue' in scope
61 | }
62 |
63 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ notification: Notification, _ payload: T) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
64 | addToPool(name, object: object, queue: queue) { [weak self] in
65 | guard let payload: T = self?.payload(from: $0) else { return }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:70:87: error: cannot find type 'OperationQueue' in scope
68 | }
69 |
70 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ payload: T) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
71 | addToPool(name, object: object, queue: queue) { [weak self] in
72 | guard let payload: T = self?.payload(from: $0) else { return }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:82:76: error: cannot find type 'OperationQueue' in scope
80 |
81 | // MARK: private methods
82 | private func addToPool(_ name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (Notification) -> Void) {
| `- error: cannot find type 'OperationQueue' in scope
83 | pool.append(ObserverContainer(name: name, object: object, queue: queue, block: block))
84 | }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:34:56: error: cannot assign value of type 'NotificationCenter.ObservationToken' to type 'any NSObjectProtocol'
32 | init(name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (_ notification: Notification) -> Void) {
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
| `- error: cannot assign value of type 'NotificationCenter.ObservationToken' to type 'any NSObjectProtocol'
35 | forName: name,
36 | object: object,
/host/spi-builder-workspace/Notifwift/Notifwift.swift:34:56: error: instance method 'addObserver(of:for:using:)' requires that 'Notification' conform to 'NotificationCenter.MainActorMessage'
32 | init(name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (_ notification: Notification) -> Void) {
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
| `- error: instance method 'addObserver(of:for:using:)' requires that 'Notification' conform to 'NotificationCenter.MainActorMessage'
35 | forName: name,
36 | object: object,
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/Notifwift/Notifwift.swift:34:67: error: extra arguments at positions #1, #2, #3 in call
32 | init(name: Notification.Name, object: Any?, queue: OperationQueue?, block: @escaping (_ notification: Notification) -> Void) {
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
| `- error: extra arguments at positions #1, #2, #3 in call
35 | forName: name,
36 | object: object,
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/Notifwift/Notifwift.swift:35:30: error: missing argument for parameter 'for' in call
33 | self.name = name
34 | self.observer = NotificationCenter.default.addObserver(
35 | forName: name,
| `- error: missing argument for parameter 'for' in call
36 | object: object,
37 | queue: queue,
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/Notifwift/Notifwift.swift:43:55: error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
41 |
42 | deinit {
43 | NotificationCenter.default.removeObserver(observer)
| `- error: cannot convert value of type 'any NSObjectProtocol' to expected argument type 'NotificationCenter.ObservationToken'
44 | }
45 | }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:52:36: error: no exact matches in call to instance method 'post'
50 |
51 | public static func post(_ name: Notification.Name, from object: Any? = nil, payload: Any? = nil) {
52 | NotificationCenter.default.post(
| |- 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) -> ()')
53 | name: name,
54 | object: object,
/host/spi-builder-workspace/Notifwift/Notifwift.swift:64:55: error: cannot infer type of closure parameter '$0' without a type annotation
62 |
63 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ notification: Notification, _ payload: T) -> Void) {
64 | addToPool(name, object: object, queue: queue) { [weak self] in
| `- error: cannot infer type of closure parameter '$0' without a type annotation
65 | guard let payload: T = self?.payload(from: $0) else { return }
66 | block($0, payload)
/host/spi-builder-workspace/Notifwift/Notifwift.swift:71:55: error: cannot infer type of closure parameter '$0' without a type annotation
69 |
70 | public func observe<T>(_ name: Notification.Name, from object: Any? = nil, queue: OperationQueue? = nil, block: @escaping (_ payload: T) -> Void) {
71 | addToPool(name, object: object, queue: queue) { [weak self] in
| `- error: cannot infer type of closure parameter '$0' without a type annotation
72 | guard let payload: T = self?.payload(from: $0) else { return }
73 | block(payload)
BUILD FAILURE 6.3 wasm