Build Information
Failed to build SwiftMoment, reference 1.3.0 (c2ed42), with Swift 6.3 for Android on 20 Apr 2026 21:41:44 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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iamjono/SwiftMoment.git
Reference: 1.3.0
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/iamjono/SwiftMoment
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at c2ed424 remove extension that seems unused, causes issues with swift 5.2 on Linux
Cloned https://github.com/iamjono/SwiftMoment.git
Revision (git rev-parse @):
c2ed4248beb6b3b9c93520dd32be0a92f2fee241
SUCCESS checkout https://github.com/iamjono/SwiftMoment.git at 1.3.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/iamjono/SwiftMoment.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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
[3/9] Compiling SwiftMoment TimeUnit.swift
[4/9] Compiling SwiftMoment Operators.swift
[5/9] Compiling SwiftMoment MomentFromNow.swift
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:43:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
41 | } else if deltaSeconds < dayInSeconds {
42 | // Hours Ago
43 | value = Int(floor(Float(deltaSeconds / hourInSeconds)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
44 | return stringFromFormat("%%d %@hours ago", withValue: value)
45 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:52:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
50 | } else if deltaSeconds < weekInSeconds {
51 | // Days Ago
52 | value = Int(floor(Float(deltaSeconds / dayInSeconds)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
53 | return stringFromFormat("%%d %@days ago", withValue: value)
54 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:61:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
59 | } else if deltaSeconds < monthInSeconds {
60 | // Weeks Ago
61 | value = Int(floor(Float(deltaSeconds / weekInSeconds)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
62 | return stringFromFormat("%%d %@weeks ago", withValue: value)
63 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:70:27: error: cannot convert value of type 'Float' to expected argument type 'Double'
68 | } else if deltaSeconds < yearInSeconds {
69 | // Month Ago
70 | value = Int(floor(Float(deltaSeconds / monthInSeconds)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
71 | return stringFromFormat("%%d %@months ago", withValue: value)
72 |
/host/spi-builder-workspace/Sources/SwiftMoment/MomentFromNow.swift:79:25: error: cannot convert value of type 'Float' to expected argument type 'Double'
77 |
78 | // Years Ago
79 | value = Int(floor(Float(deltaSeconds / yearInSeconds)))
| `- error: cannot convert value of type 'Float' to expected argument type 'Double'
80 | return stringFromFormat("%%d %@years ago", withValue: value)
81 | }
[6/9] Compiling SwiftMoment Duration.swift
[7/9] Compiling SwiftMoment Moment.swift
[8/9] Compiling SwiftMoment Extensions.swift
[9/9] Emitting module SwiftMoment
BUILD FAILURE 6.3 android