The Swift Package Index logo.Swift Package Index

Build Information

Failed to build acp-swift-sdk, reference 0.2.2 (ebc1ff), with Swift 6.2 for Android on 17 Dec 2025 16:53:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RayZhao1998/acp-swift-sdk.git
Reference: 0.2.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/RayZhao1998/acp-swift-sdk
 * tag               0.2.2      -> FETCH_HEAD
HEAD is now at ebc1ffd feat: remove dumplicate `loadSession` method and add new session management methods (#8)
Cloned https://github.com/RayZhao1998/acp-swift-sdk.git
Revision (git rev-parse @):
ebc1ffde5c41eb08a0f416d25619b89c0968619d
SUCCESS checkout https://github.com/RayZhao1998/acp-swift-sdk.git at 0.2.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/RayZhao1998/acp-swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:5dcfe09194e3c36609f58c2a9689c9c974fddafea0cac7c12077a98d08c6b397
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2158] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.40s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (3.09s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3624] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.46s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.90s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/9] Write sources
[4/9] Write swift-version-2B04F66FBCF4E350.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/21] Compiling ACP ACP.swift
[7/21] Compiling ACP Agent.swift
[8/21] Emitting module ACP
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:13:25: error: cannot find type 'AsyncLineSequence' in scope
 11 |
 12 | public actor NDJSONMessageStream: MessageStream, ClosableStream {
 13 |   private var iterator: AsyncLineSequence<FileHandle.AsyncBytes>.AsyncIterator
    |                         `- error: cannot find type 'AsyncLineSequence' in scope
 14 |   private let writeBytes: @Sendable (Data) throws -> Void
 15 |   private let onClose: @Sendable () -> Void
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:21:12: error: cannot find type 'AsyncLineSequence' in scope
 19 |
 20 |   public init(
 21 |     lines: AsyncLineSequence<FileHandle.AsyncBytes>,
    |            `- error: cannot find type 'AsyncLineSequence' in scope
 22 |     writeBytes: @escaping @Sendable (Data) throws -> Void,
 23 |     onClose: @escaping @Sendable () -> Void = {}
[9/22] Compiling ACP ClientSideConnection.swift
[10/22] Compiling ACP Meta.swift
[11/22] Compiling ACP Client.swift
[12/22] Compiling ACP AgentSideConnection.swift
[13/22] Compiling ACP Connection.swift
[14/22] Compiling ACP Decoding.swift
[15/22] Compiling ACP Error.swift
[16/22] Compiling ACP Schema.swift
[17/22] Compiling ACP JSONRPC.swift
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:13:25: error: cannot find type 'AsyncLineSequence' in scope
 11 |
 12 | public actor NDJSONMessageStream: MessageStream, ClosableStream {
 13 |   private var iterator: AsyncLineSequence<FileHandle.AsyncBytes>.AsyncIterator
    |                         `- error: cannot find type 'AsyncLineSequence' in scope
 14 |   private let writeBytes: @Sendable (Data) throws -> Void
 15 |   private let onClose: @Sendable () -> Void
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:21:12: error: cannot find type 'AsyncLineSequence' in scope
 19 |
 20 |   public init(
 21 |     lines: AsyncLineSequence<FileHandle.AsyncBytes>,
    |            `- error: cannot find type 'AsyncLineSequence' in scope
 22 |     writeBytes: @escaping @Sendable (Data) throws -> Void,
 23 |     onClose: @escaping @Sendable () -> Void = {}
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:36:20: error: value of type 'FileHandle' has no member 'bytes'
 34 |   ) -> NDJSONMessageStream {
 35 |     NDJSONMessageStream(
 36 |       lines: input.bytes.lines,
    |                    `- error: value of type 'FileHandle' has no member 'bytes'
 37 |       writeBytes: { data in output.write(data) },
 38 |       onClose: {
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:83:40: error: cannot infer contextual base in reference to member 'utf8'
 81 |
 82 |     guard !line.isEmpty else { return try await read() }
 83 |     guard let data = line.data(using: .utf8) else { return nil }
    |                                        `- error: cannot infer contextual base in reference to member 'utf8'
 84 |     return try decoder.decode(JSONRPCMessage.self, from: data)
 85 |   }
[18/22] Compiling ACP MessageStream.swift
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:13:25: error: cannot find type 'AsyncLineSequence' in scope
 11 |
 12 | public actor NDJSONMessageStream: MessageStream, ClosableStream {
 13 |   private var iterator: AsyncLineSequence<FileHandle.AsyncBytes>.AsyncIterator
    |                         `- error: cannot find type 'AsyncLineSequence' in scope
 14 |   private let writeBytes: @Sendable (Data) throws -> Void
 15 |   private let onClose: @Sendable () -> Void
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:21:12: error: cannot find type 'AsyncLineSequence' in scope
 19 |
 20 |   public init(
 21 |     lines: AsyncLineSequence<FileHandle.AsyncBytes>,
    |            `- error: cannot find type 'AsyncLineSequence' in scope
 22 |     writeBytes: @escaping @Sendable (Data) throws -> Void,
 23 |     onClose: @escaping @Sendable () -> Void = {}
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:36:20: error: value of type 'FileHandle' has no member 'bytes'
 34 |   ) -> NDJSONMessageStream {
 35 |     NDJSONMessageStream(
 36 |       lines: input.bytes.lines,
    |                    `- error: value of type 'FileHandle' has no member 'bytes'
 37 |       writeBytes: { data in output.write(data) },
 38 |       onClose: {
/host/spi-builder-workspace/Sources/ACP/Base/MessageStream.swift:83:40: error: cannot infer contextual base in reference to member 'utf8'
 81 |
 82 |     guard !line.isEmpty else { return try await read() }
 83 |     guard let data = line.data(using: .utf8) else { return nil }
    |                                        `- error: cannot infer contextual base in reference to member 'utf8'
 84 |     return try decoder.decode(JSONRPCMessage.self, from: data)
 85 |   }
BUILD FAILURE 6.2 android