The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Notifwift, reference 1.1.1 (99c5cf), with Swift 6.1 for Wasm on 27 May 2025 16:58:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/takasek/Notifwift.git
Reference: 1.1.1
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
 * tag               1.1.1      -> FETCH_HEAD
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 1.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/takasek/Notifwift.git
https://github.com/takasek/Notifwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Notifwift",
  "name" : "Notifwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Notifwift",
      "targets" : [
        "Notifwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Notifwift",
      "module_type" : "SwiftTarget",
      "name" : "Notifwift",
      "path" : "Notifwift",
      "product_memberships" : [
        "Notifwift"
      ],
      "sources" : [
        "Notifwift.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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:29: error: cannot find 'NotificationCenter' in scope
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 find 'NotificationCenter' in scope
35 |                 forName: name,
36 |                 object: object,
/host/spi-builder-workspace/Notifwift/Notifwift.swift:43:13: error: cannot find 'NotificationCenter' in scope
41 |
42 |         deinit {
43 |             NotificationCenter.default.removeObserver(observer)
   |             `- error: cannot find 'NotificationCenter' in scope
44 |         }
45 |     }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:52:9: error: cannot find 'NotificationCenter' in scope
50 |
51 |     public static func post(_ name: Notification.Name, from object: Any? = nil, payload: Any? = nil) {
52 |         NotificationCenter.default.post(
   |         `- error: cannot find 'NotificationCenter' in scope
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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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 |     }
[3/3] 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:29: error: cannot find 'NotificationCenter' in scope
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 find 'NotificationCenter' in scope
35 |                 forName: name,
36 |                 object: object,
/host/spi-builder-workspace/Notifwift/Notifwift.swift:43:13: error: cannot find 'NotificationCenter' in scope
41 |
42 |         deinit {
43 |             NotificationCenter.default.removeObserver(observer)
   |             `- error: cannot find 'NotificationCenter' in scope
44 |         }
45 |     }
/host/spi-builder-workspace/Notifwift/Notifwift.swift:52:9: error: cannot find 'NotificationCenter' in scope
50 |
51 |     public static func post(_ name: Notification.Name, from object: Any? = nil, payload: Any? = nil) {
52 |         NotificationCenter.default.post(
   |         `- error: cannot find 'NotificationCenter' in scope
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.1 wasm