The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftMoment, reference master (4cd4ee), with Swift 6.3 for Wasm on 11 Apr 2026 04:02:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/akosma/SwiftMoment.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/akosma/SwiftMoment
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 4cd4ee8 Merge pull request #97 from psi-gh/master
Cloned https://github.com/akosma/SwiftMoment.git
Revision (git rev-parse @):
4cd4ee886328f9514c20f050b81d1725337ddd33
SUCCESS checkout https://github.com/akosma/SwiftMoment.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/akosma/SwiftMoment.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/10] Compiling SwiftMoment Operators.swift
[4/11] Compiling SwiftMoment TimeUnit.swift
[5/11] Compiling SwiftMoment MomentFromNow.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentFromNow.swift:139:31: warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components [#DeprecatedDeclaration]
137 |         }
138 |
139 |         let langDict = Locale.components(fromIdentifier: localeIdentifer)
    |                               `- warning: 'components(fromIdentifier:)' is deprecated: Use `Locale.Components(identifier:)` to access components [#DeprecatedDeclaration]
140 |         let languageCode = langDict["kCFLocaleLanguageCodeKey"]
141 |         if let languagePath = bundle.path(forResource: languageCode, ofType: "lproj") {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[6/11] Compiling SwiftMoment MomentCache.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
15 | 		let locale: Locale
16 |
17 | 		var hashValue: Int {
   |       `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling SwiftMoment Extensions.swift
[8/11] Emitting module SwiftMoment
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/LazyBox.swift:30:25: error: cannot find 'DispatchQueue' in scope
28 |
29 |     /// All reads and writes of `_value` must happen on this queue.
30 |     private let queue = DispatchQueue(label: "LazyBox._value")
   |                         `- error: cannot find 'DispatchQueue' in scope
31 |
32 |     /// Performs the lazy computation, or returns the value stored.
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/MomentCache.swift:17:7: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
15 | 		let locale: Locale
16 |
17 | 		var hashValue: Int {
   |       `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MomentCache.Key' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
18 | 			return tz.hashValue ^ locale.hashValue
19 | 		}
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[9/11] Compiling SwiftMoment Moment.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/LazyBox.swift:30:25: error: cannot find 'DispatchQueue' in scope
28 |
29 |     /// All reads and writes of `_value` must happen on this queue.
30 |     private let queue = DispatchQueue(label: "LazyBox._value")
   |                         `- error: cannot find 'DispatchQueue' in scope
31 |
32 |     /// Performs the lazy computation, or returns the value stored.
[10/11] Compiling SwiftMoment Duration.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/Duration.swift:108:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
106 |     /// A textual representation of this instance.
107 |     public var description: String {
108 |         let formatter = DateComponentsFormatter()
    |                         `- error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
109 |         formatter.calendar = Calendar(identifier: Calendar.Identifier.gregorian)
110 |         formatter.calendar?.timeZone = TimeZone(abbreviation: "UTC")!
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 1 | @available(*, unavailable, message: "Not supported in swift-corelibs-foundation")
 2 | open class DateComponentsFormatter : Formatter, @unchecked Sendable {
   |            `- note: 'DateComponentsFormatter' has been explicitly marked unavailable here
 3 |     public enum UnitsStyle : Int, Sendable {
 4 |         case positional
[11/11] Compiling SwiftMoment LazyBox.swift
/host/spi-builder-workspace/SwiftMoment/SwiftMoment/LazyBox.swift:30:25: error: cannot find 'DispatchQueue' in scope
28 |
29 |     /// All reads and writes of `_value` must happen on this queue.
30 |     private let queue = DispatchQueue(label: "LazyBox._value")
   |                         `- error: cannot find 'DispatchQueue' in scope
31 |
32 |     /// Performs the lazy computation, or returns the value stored.
BUILD FAILURE 6.3 wasm