The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Replicate, reference 0.24.0 (efd033), with Swift 6.2 for Android on 22 Jun 2025 02:41:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/replicate/replicate-swift.git
Reference: 0.24.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/replicate/replicate-swift
 * tag               0.24.0     -> FETCH_HEAD
HEAD is now at efd033f Bump version to 0.24.0
Cloned https://github.com/replicate/replicate-swift.git
Revision (git rev-parse @):
efd033f4e421112b70e82221c813417e164aab7a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/replicate/replicate-swift.git at 0.24.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/replicate/replicate-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/16] Compiling Replicate Status.swift
[4/16] Compiling Replicate Training.swift
[5/17] Compiling Replicate Data+uriEncoded.swift
[6/17] Compiling Replicate Hardware.swift
[7/17] Emitting module Replicate
[8/17] Compiling Replicate Account.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:36: error: value of type 'DispatchTime' has no member 'advanced'
1030 |             return Retrier(policy: self,
1031 |                            deadline: timeout.flatMap {
1032 |                             .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
     |                                    `- error: value of type 'DispatchTime' has no member 'advanced'
1033 |                            })
1034 |         }
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:50: error: cannot infer contextual base in reference to member 'nanoseconds'
1030 |             return Retrier(policy: self,
1031 |                            deadline: timeout.flatMap {
1032 |                             .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
     |                                                  `- error: cannot infer contextual base in reference to member 'nanoseconds'
1033 |                            })
1034 |         }
[9/17] Compiling Replicate Client.swift
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:36: error: value of type 'DispatchTime' has no member 'advanced'
1030 |             return Retrier(policy: self,
1031 |                            deadline: timeout.flatMap {
1032 |                             .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
     |                                    `- error: value of type 'DispatchTime' has no member 'advanced'
1033 |                            })
1034 |         }
/host/spi-builder-workspace/Sources/Replicate/Client.swift:1032:50: error: cannot infer contextual base in reference to member 'nanoseconds'
1030 |             return Retrier(policy: self,
1031 |                            deadline: timeout.flatMap {
1032 |                             .now().advanced(by: .nanoseconds(Int($0 * 1e+9)))
     |                                                  `- error: cannot infer contextual base in reference to member 'nanoseconds'
1033 |                            })
1034 |         }
[10/17] Compiling Replicate Value.swift
[11/17] Compiling Replicate Webhook.swift
[12/17] Compiling Replicate Deployment.swift
[13/17] Compiling Replicate Error.swift
[14/17] Compiling Replicate Identifier.swift
[15/17] Compiling Replicate Model.swift
[16/17] Compiling Replicate Predictable.swift
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 |             group.addTask {
197 |                 try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 |                 return try await client.getPrediction(Self.self, id: id)
    |                            `- warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 |             }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 |             group.addTask {
197 |                 try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 |                 return try await client.getPrediction(Self.self, id: id)
    |                            `- warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 |             }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 |             if let deadline = retrier.deadline {
202 |                 group.addTask {
    |                               `- warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 |                     try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 |                     throw CancellationError()
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 |             if let deadline = retrier.deadline {
202 |                 group.addTask {
    |                               `- warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 |                     try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 |                     throw CancellationError()
[17/17] Compiling Replicate Prediction.swift
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 |             group.addTask {
197 |                 try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 |                 return try await client.getPrediction(Self.self, id: id)
    |                            `- warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 |             }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:198:28: warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
196 |             group.addTask {
197 |                 try await Task.sleep(nanoseconds: UInt64(delay * 1e+9))
198 |                 return try await client.getPrediction(Self.self, id: id)
    |                            `- warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
199 |             }
200 |
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 |             if let deadline = retrier.deadline {
202 |                 group.addTask {
    |                               `- warning: capture of non-sendable type 'Input.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 |                     try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 |                     throw CancellationError()
/host/spi-builder-workspace/Sources/Replicate/Prediction.swift:202:31: warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
200 |
201 |             if let deadline = retrier.deadline {
202 |                 group.addTask {
    |                               `- warning: capture of non-sendable type 'Output.Type' in an isolated closure; this is an error in the Swift 6 language mode
203 |                     try await Task.sleep(nanoseconds: deadline.uptimeNanoseconds - DispatchTime.now().uptimeNanoseconds)
204 |                     throw CancellationError()
BUILD FAILURE 6.2 android