The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build ColorSet, reference 0.0.2 (a8853e), with Swift 6.1 for Wasm on 27 May 2025 08:56:19 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/fromkk/colorset.git
Reference: 0.0.2
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/fromkk/colorset
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at a8853ed Merge pull request #1 from fromkk/feature/package
Cloned https://github.com/fromkk/colorset.git
Revision (git rev-parse @):
a8853ed187fc7068805f9c2e351da56adaec55dd
SUCCESS checkout https://github.com/fromkk/colorset.git at 0.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fromkk/colorset.git
https://github.com/fromkk/colorset.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ColorSet",
  "name" : "ColorSet",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ColorSet",
      "targets" : [
        "ColorSet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ColorSet",
      "module_type" : "SwiftTarget",
      "name" : "ColorSet",
      "path" : "Sources",
      "product_memberships" : [
        "ColorSet"
      ],
      "sources" : [
        "ColorObservable.swift",
        "ColorObservation.swift",
        "ColorObservationBag.swift",
        "ColorType.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/7] Emitting module ColorSet
/host/spi-builder-workspace/Sources/ColorObservable.swift:13:29: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservable<T: Color> {
12 |     let didChange: Notification.Name = .init("me.fromkk.ColorSet.didChange")
13 |     let notificationCenter: NotificationCenter = .init()
   |                             `- error: cannot find type 'NotificationCenter' in scope
14 |
15 |     public private(set) var value: T {
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
[4/7] Compiling ColorSet ColorObservable.swift
/host/spi-builder-workspace/Sources/ColorObservable.swift:13:29: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservable<T: Color> {
12 |     let didChange: Notification.Name = .init("me.fromkk.ColorSet.didChange")
13 |     let notificationCenter: NotificationCenter = .init()
   |                             `- error: cannot find type 'NotificationCenter' in scope
14 |
15 |     public private(set) var value: T {
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
/host/spi-builder-workspace/Sources/ColorObservable.swift:39:72: error: 'nil' requires a contextual type
37 |         callback(value)
38 |         return ColorObservation(
39 |             notificationCenter.addObserver(forName: didChange, object: nil, queue: .main, using: { notification in
   |                                                                        `- error: 'nil' requires a contextual type
40 |                 guard let value = notification.object as? T else { return }
41 |                 callback(value)
/host/spi-builder-workspace/Sources/ColorObservable.swift:39:85: error: cannot infer contextual base in reference to member 'main'
37 |         callback(value)
38 |         return ColorObservation(
39 |             notificationCenter.addObserver(forName: didChange, object: nil, queue: .main, using: { notification in
   |                                                                                     `- error: cannot infer contextual base in reference to member 'main'
40 |                 guard let value = notification.object as? T else { return }
41 |                 callback(value)
[5/7] Compiling ColorSet ColorType.swift
[6/7] Compiling ColorSet ColorObservationBag.swift
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
[7/7] Compiling ColorSet ColorObservation.swift
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/6] Compiling ColorSet ColorType.swift
[3/6] Emitting module ColorSet
/host/spi-builder-workspace/Sources/ColorObservable.swift:13:29: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservable<T: Color> {
12 |     let didChange: Notification.Name = .init("me.fromkk.ColorSet.didChange")
13 |     let notificationCenter: NotificationCenter = .init()
   |                             `- error: cannot find type 'NotificationCenter' in scope
14 |
15 |     public private(set) var value: T {
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
[4/6] Compiling ColorSet ColorObservation.swift
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
[5/6] Compiling ColorSet ColorObservable.swift
/host/spi-builder-workspace/Sources/ColorObservable.swift:13:29: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservable<T: Color> {
12 |     let didChange: Notification.Name = .init("me.fromkk.ColorSet.didChange")
13 |     let notificationCenter: NotificationCenter = .init()
   |                             `- error: cannot find type 'NotificationCenter' in scope
14 |
15 |     public private(set) var value: T {
/host/spi-builder-workspace/Sources/ColorObservation.swift:14:63: error: cannot find type 'NotificationCenter' in scope
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
   |                                                               `- error: cannot find type 'NotificationCenter' in scope
15 |         self.observation = observation
16 |         self.notificationCenter = notificationCenter
/host/spi-builder-workspace/Sources/ColorObservable.swift:39:72: error: 'nil' requires a contextual type
37 |         callback(value)
38 |         return ColorObservation(
39 |             notificationCenter.addObserver(forName: didChange, object: nil, queue: .main, using: { notification in
   |                                                                        `- error: 'nil' requires a contextual type
40 |                 guard let value = notification.object as? T else { return }
41 |                 callback(value)
/host/spi-builder-workspace/Sources/ColorObservable.swift:39:85: error: cannot infer contextual base in reference to member 'main'
37 |         callback(value)
38 |         return ColorObservation(
39 |             notificationCenter.addObserver(forName: didChange, object: nil, queue: .main, using: { notification in
   |                                                                                     `- error: cannot infer contextual base in reference to member 'main'
40 |                 guard let value = notification.object as? T else { return }
41 |                 callback(value)
[6/6] Compiling ColorSet ColorObservationBag.swift
/host/spi-builder-workspace/Sources/ColorObservation.swift:13:34: error: cannot find type 'NotificationCenter' in scope
11 | public class ColorObservation: Equatable {
12 |     private let observation: NSObjectProtocol
13 |     weak var notificationCenter: NotificationCenter?
   |                                  `- error: cannot find type 'NotificationCenter' in scope
14 |     init(_ observation: NSObjectProtocol, notificationCenter: NotificationCenter) {
15 |         self.observation = observation
BUILD FAILURE 6.1 wasm