Build Information
Failed to build ACP, reference v0.2.3 (f4eaa3), with Swift 6.2 for Android on 3 Nov 2026 08:58:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aptove/swift-sdk.git
Reference: v0.2.3
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/aptove/swift-sdk
* tag v0.2.3 -> FETCH_HEAD
HEAD is now at f4eaa34 feat: support v2 session/request_permission wire format
Cloned https://github.com/aptove/swift-sdk.git
Revision (git rev-parse @):
f4eaa34c74fa08bdad64ce92d83281eda798dae1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/aptove/swift-sdk.git at v0.2.3
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/aptove/swift-sdk.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:9e4b64e17859f153444a8085b41803f96a8252f8f76139cd5e69e2540803aa5a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/8315] Fetching swift-log
[8316/37770] Fetching swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git from cache (1.68s)
Fetched https://github.com/apple/swift-collections.git from cache (1.69s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (1.93s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.2 (0.15s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.5
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Samples/SimpleAgentApp/README.md
Building for debugging...
[0/46] Write sources
[18/46] Write swift-version--11D90AFD9DD3AB2.txt
[20/85] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[21/85] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[22/85] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[23/88] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[24/88] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[25/88] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[26/88] Compiling InternalCollectionsUtilities Span+Extras.swift
[27/88] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[28/88] Compiling InternalCollectionsUtilities _SortedCollection.swift
[29/88] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[30/88] Compiling Logging Logger.swift
[31/89] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[32/89] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[33/89] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[34/89] Compiling InternalCollectionsUtilities MutableRef.swift
[35/89] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[36/89] Compiling InternalCollectionsUtilities Integer rank.swift
[37/89] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[38/89] Compiling InternalCollectionsUtilities UInt+reversed.swift
[39/89] Compiling Logging Logger+Attributes.swift
[42/89] Compiling Logging Logger+With.swift
[43/89] Compiling Logging LoggingSystem.swift
[44/89] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[45/89] Compiling InternalCollectionsUtilities String+Padding.swift
[46/89] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[47/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[48/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[49/89] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[50/89] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[51/89] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[52/89] Emitting module InternalCollectionsUtilities
[53/89] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[54/89] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[55/89] Compiling InternalCollectionsUtilities Debugging.swift
[56/89] Compiling InternalCollectionsUtilities Descriptions.swift
[57/94] Wrapping AST for InternalCollectionsUtilities for debugging
[59/306] Emitting module SpanPreview
[60/306] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[61/321] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[62/329] Compiling SpanPreview InputSpan.swift
[63/360] Wrapping AST for SpanPreview for debugging
[65/360] Compiling HeapModule Heap+Descriptions.swift
[66/402] Compiling HeapModule Heap+Testing.swift
[67/402] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[68/402] Compiling HeapModule _HeapNode.swift
[69/402] Compiling HeapModule Heap+UnsafeHandle.swift
[70/402] Compiling HeapModule Heap+Invariants.swift
[71/402] Compiling HeapModule Heap.swift
[72/402] Compiling DequeModule RigidDeque+Prepend.swift
[73/402] Compiling DequeModule RigidDeque+Removals.swift
[74/402] Compiling DequeModule RigidDeque+Replacements.swift
[75/402] Compiling DequeModule RigidDeque+Testing.swift
[76/402] Compiling DequeModule RigidDeque.swift
[77/402] Compiling DequeModule UniqueDeque+Append.swift
[78/402] Compiling DequeModule UniqueDeque+Consumption.swift
[79/402] Compiling DequeModule UniqueDeque+ContainerOperations.swift
[80/409] Compiling BitCollections BitSet.swift
[81/409] Compiling BitCollections Range+Utilities.swift
[82/409] Compiling BitCollections Slice+Utilities.swift
[83/409] Compiling BitCollections UInt+Tricks.swift
[84/409] Compiling BitCollections _Word.swift
[85/409] Compiling _RopeModule _RopeVersion.swift
[86/409] Compiling _RopeModule Rope+Collection.swift
[87/409] Compiling _RopeModule Rope+Index.swift
[88/409] Compiling _RopeModule Rope+Sequence.swift
[89/409] Compiling _RopeModule Rope+Append.swift
[90/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[91/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[92/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[93/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[94/419] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[95/419] Compiling BitCollections BitSet.Index.swift
[96/419] Compiling BitCollections BitSet._UnsafeHandle.swift
[98/426] Compiling DequeModule _DequeBuffer.swift
[99/426] Compiling DequeModule _DequeBufferHeader.swift
[100/426] Compiling DequeModule RigidDeque+Append.swift
[101/426] Compiling DequeModule RigidDeque+Consumption.swift
[102/426] Compiling DequeModule RigidDeque+ContainerOperations.swift
[103/426] Compiling DequeModule RigidDeque+Deprecations.swift
[104/430] Emitting module HeapModule
[105/432] Compiling DequeModule _UnsafeDequeHandle.swift
[106/432] Compiling DequeModule _UnsafeDequeSegments.swift
[107/432] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[108/432] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[117/432] Compiling DequeModule UniqueDeque+Deprecations.swift
[118/432] Compiling DequeModule UniqueDeque+Descriptions.swift
[119/432] Compiling DequeModule UniqueDeque+Equatable.swift
[120/432] Compiling DequeModule UniqueDeque+Hashable.swift
[121/432] Compiling DequeModule UniqueDeque+Initializers.swift
[122/432] Compiling DequeModule UniqueDeque+Insertions.swift
[123/432] Compiling DequeModule UniqueDeque+Iterable.swift
[124/432] Compiling DequeModule UniqueDeque+Prepend.swift
[142/432] Compiling DequeModule UniqueDeque+Removals.swift
[142/432] Wrapping AST for HeapModule for debugging
[144/432] Compiling DequeModule Deque+Testing.swift
[145/432] Compiling DequeModule Deque._Storage.swift
[146/432] Compiling DequeModule Deque._UnsafeHandle.swift
[147/432] Compiling DequeModule Deque.swift
[152/432] Compiling _RopeModule Rope+Extract.swift
[153/432] Compiling _RopeModule Rope+Find.swift
[154/432] Compiling _RopeModule Rope+ForEachWhile.swift
[155/432] Compiling _RopeModule Rope+Insert.swift
[156/432] Compiling HashTreeCollections TreeSet+Debugging.swift
[157/432] Compiling HashTreeCollections TreeSet+Descriptions.swift
[158/432] Compiling HashTreeCollections TreeSet+Equatable.swift
[159/432] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[160/432] Compiling HashTreeCollections TreeSet+Extras.swift
[161/432] Compiling HashTreeCollections TreeSet+Filter.swift
[171/432] Compiling DequeModule UniqueDeque+Replacements.swift
[172/432] Compiling DequeModule UniqueDeque.swift
[173/432] Compiling DequeModule _DequeSlot.swift
[182/432] Compiling DequeModule RigidDeque+Descriptions.swift
[183/432] Compiling DequeModule RigidDeque+Equatable.swift
[184/432] Compiling DequeModule RigidDeque+Hashable.swift
[185/432] Compiling DequeModule RigidDeque+Initializers.swift
[186/432] Compiling DequeModule RigidDeque+Insertions.swift
[187/432] Compiling DequeModule RigidDeque+Iterable.swift
[196/432] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[197/432] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[198/432] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[199/432] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[200/432] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[201/432] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[202/432] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[203/432] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[204/432] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[205/432] Compiling HashTreeCollections TreeSet.swift
[232/441] Emitting module BitCollections
[243/441] Compiling DequeModule Deque+Extras.swift
[244/441] Compiling DequeModule Deque+Hashable.swift
[249/441] Compiling DequeModule Deque+Codable.swift
[250/441] Compiling DequeModule Deque+Collection.swift
[251/441] Compiling DequeModule Deque+CustomReflectable.swift
[252/441] Compiling DequeModule Deque+Descriptions.swift
[253/441] Compiling DequeModule Deque+Equatable.swift
[254/441] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[258/441] Compiling OrderedCollections OrderedSet+Sendable.swift
[259/441] Compiling OrderedCollections OrderedSet+SubSequence.swift
[260/441] Compiling OrderedCollections OrderedSet+Testing.swift
[261/441] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[262/441] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[263/441] Compiling OrderedCollections OrderedSet.swift
[264/441] Compiling OrderedCollections UnsafeBitset.swift
[271/441] Emitting module Logging
[276/441] Compiling Logging MetadataProvider.swift
[303/442] Wrapping AST for Logging for debugging
[359/443] Wrapping AST for BitCollections for debugging
[394/443] Emitting module OrderedCollections
[395/444] Wrapping AST for OrderedCollections for debugging
[397/444] Emitting module _RopeModule
[408/444] Emitting module HashTreeCollections
[409/445] Wrapping AST for HashTreeCollections for debugging
[411/445] Compiling _RopeModule Rope+Join.swift
[412/445] Compiling _RopeModule Rope+MutatingForEach.swift
[413/445] Compiling _RopeModule Rope+Remove.swift
[414/445] Compiling _RopeModule Rope+RemoveSubrange.swift
[415/445] Compiling _RopeModule Rope+Split.swift
[416/445] Compiling _RopeModule Optional Utilities.swift
[417/445] Compiling _RopeModule String Utilities.swift
[418/445] Compiling _RopeModule String.Index+ABI.swift
[419/445] Compiling _RopeModule _CharacterRecognizer.swift
[420/446] Wrapping AST for _RopeModule for debugging
[427/446] Emitting module DequeModule
[428/449] Wrapping AST for DequeModule for debugging
[430/449] Compiling Collections Collections.swift
[431/449] Emitting module Collections
[432/450] Wrapping AST for Collections for debugging
[434/505] Compiling ACPModel Priority.swift
[435/505] Compiling ACPModel ProtocolVersion.swift
[436/505] Compiling ACPModel Providers.swift
[437/505] Compiling ACPModel RequestId.swift
[438/505] Compiling ACPModel Role.swift
[439/505] Compiling ACPModel SessionConfigGroupId.swift
[440/505] Compiling ACPModel SessionConfigId.swift
[441/505] Compiling ACPModel SessionConfigOption.swift
[442/512] Emitting module ACPModel
[443/512] Compiling ACPModel SessionConfigValueId.swift
[444/512] Compiling ACPModel SessionId.swift
[445/512] Compiling ACPModel SessionInfo.swift
[446/512] Compiling ACPModel SessionMessages.swift
[447/512] Compiling ACPModel SessionModeId.swift
[448/512] Compiling ACPModel SessionModeMessages.swift
[449/512] Compiling ACPModel SessionOperations.swift
[450/512] Compiling ACPModel SessionUpdate.swift
[451/512] Compiling ACPModel ACPModel.swift
[452/512] Compiling ACPModel AcpProtocols.swift
[453/512] Compiling ACPModel Annotations.swift
[454/512] Compiling ACPModel AuthMessages.swift
[455/512] Compiling ACPModel AvailableCommand.swift
[456/512] Compiling ACPModel Capabilities.swift
[457/512] Compiling ACPModel ContentBlock.swift
[458/512] Compiling ACPModel Cursor.swift
[459/512] Compiling ACPModel V2Elicitation.swift
[460/512] Compiling ACPModel V2ElicitationRequests.swift
[461/512] Compiling ACPModel V2MaybeUndefined.swift
[462/512] Compiling ACPModel V2Permission.swift
[463/512] Compiling ACPModel V2Plan.swift
[464/512] Compiling ACPModel V2Providers.swift
[465/512] Compiling ACPModel V2Requests.swift
[466/512] Compiling ACPModel ModelId.swift
[467/512] Compiling ACPModel ModelMessages.swift
[468/512] Compiling ACPModel Nes.swift
[469/512] Compiling ACPModel Notifications.swift
[470/512] Compiling ACPModel Pagination.swift
[471/512] Compiling ACPModel PermissionMessages.swift
[472/512] Compiling ACPModel PermissionOptionId.swift
[473/512] Compiling ACPModel PlanEntry.swift
[474/512] Compiling ACPModel SessionUpdateTypes.swift
[475/512] Compiling ACPModel Terminal.swift
[476/512] Compiling ACPModel ToolCall.swift
[477/512] Compiling ACPModel ToolCallId.swift
[478/512] Compiling ACPModel V2Auth.swift
[479/512] Compiling ACPModel V2Capabilities.swift
[480/512] Compiling ACPModel V2Content.swift
[481/512] Compiling ACPModel Elicitation.swift
[482/512] Compiling ACPModel FileMessages.swift
[483/512] Compiling ACPModel Implementation.swift
[484/512] Compiling ACPModel InitializeMessages.swift
[485/512] Compiling ACPModel JsonRpc.swift
[486/512] Compiling ACPModel JsonValue.swift
[487/512] Compiling ACPModel McpServer.swift
[488/512] Compiling ACPModel MessageId.swift
[489/512] Compiling ACPModel V2Session.swift
[490/512] Compiling ACPModel V2SessionConfig.swift
[491/512] Compiling ACPModel V2SessionResume.swift
[492/512] Compiling ACPModel V2SessionUpdate.swift
[493/512] Compiling ACPModel V2Terminal.swift
[494/512] Compiling ACPModel V2ToolCall.swift
[495/512] Compiling ACPModel V2Types.swift
[496/516] Wrapping AST for ACPModel for debugging
[498/529] Compiling ACP FileSystemOperations.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[499/529] Compiling ACP PaginatedResponse.swift
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:128:27: warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
126 | ) -> PaginatedAsyncSequence<Item> {
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
| `- warning: capture of non-Sendable type 'Request.Type' in an isolated closure [#SendableMetatypes]
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
130 |
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:133:46: warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
131 | // Decode the result to the expected response type
132 | let data = try JSONEncoder().encode(jsonRpcResponse.result)
133 | let response = try JSONDecoder().decode(Response.self, from: data)
| `- warning: capture of non-Sendable type 'Response.Type' in an isolated closure [#SendableMetatypes]
134 |
135 | return responseHandler(response)
/host/spi-builder-workspace/Sources/ACP/PaginatedResponse.swift:129:50: warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
127 | PaginatedAsyncSequence { [self] cursor in
128 | let request = requestFactory(cursor)
129 | let jsonRpcResponse = try await self.sendRequest(method: method, params: request)
| | `- note: isolated conformance to protocol 'Encodable' can be introduced here
| |- warning: sending value of non-Sendable type 'Request' risks causing data races [#SendingRisksDataRace]
| `- note: sending task-isolated value of non-Sendable type 'Request' to actor-isolated instance method 'sendRequest(method:params:timeoutSeconds:)' risks causing races in between task-isolated and actor-isolated uses
130 |
131 | // Decode the result to the expected response type
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[500/531] Compiling ACP ClientSessionOperations.swift
[501/531] Compiling ACP Event.swift
[502/531] Compiling ACP AgentContext.swift
[503/531] Compiling ACP Client.swift
[504/531] Compiling ACP TerminalOperations.swift
[505/531] Compiling ACP Transport.swift
[506/531] Compiling ACP ClientConnection.swift
[507/531] Compiling ACP ClientSession.swift
[508/531] Emitting module ACP
[509/531] Compiling ACP ACP.swift
[510/531] Compiling ACP Agent.swift
[511/531] Compiling ACP AgentConnection.swift
[512/531] Compiling ACP Protocol.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[513/531] Compiling ACP ProtocolExtensions.swift
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:187:17: warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
185 | if let paramsValue = request.params {
186 | let data = try JSONEncoder().encode(paramsValue)
187 | params = try JSONDecoder().decode(P.self, from: data)
| `- warning: capture of non-Sendable type 'P.Type' in an isolated closure [#SendableMetatypes]
188 | } else {
189 | throw ProtocolError.decodingFailed(underlying: NSError(
/host/spi-builder-workspace/Sources/ACP/ProtocolExtensions.swift:197:30: warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
195 |
196 | // Execute handler
197 | let result = try await handler(params)
| `- warning: capture of non-Sendable type 'R.Type' in an isolated closure [#SendableMetatypes]
198 |
199 | // Encode result as JsonValue
[#SendableMetatypes]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-metatypes>
[514/531] Compiling ACP RemoteClientOperations.swift
[515/531] Compiling ACP StdioTransport.swift
[516/536] Wrapping AST for ACP for debugging
[518/545] Emitting module SimpleAgentApp
[519/545] Emitting module AuthStatusApp
[520/545] Compiling SimpleAgentApp main.swift
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:400:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
398 | if case .text(let text) = chunk.content {
399 | print(text.text, terminator: "")
400 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
401 | }
402 | case .agentThoughtChunk(let chunk):
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:491:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
489 | while true {
490 | print("You: ", terminator: "")
491 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
492 |
493 | guard let input = readLine() else { break }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
/host/spi-builder-workspace/Samples/SimpleAgentApp/main.swift:501:24: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
499 | print()
500 | print("Agent: ", terminator: "")
501 | fflush(stdout)
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
502 |
503 | let response = try await clientConnection.prompt(request: PromptRequest(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
[521/545] Compiling ACPHTTP ACPHTTP.swift
[522/545] Emitting module V2SimpleAgentApp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[523/545] Emitting module ACPHTTP
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: value of type '_' expected to be instance of class or class-constrained type
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 | self.url = url
54 | self.session = session
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:44:32: error: cannot find type 'URLSessionWebSocketTask' in scope
42 |
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
45 | private let session: URLSession
46 |
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let stateActor: WebSocketStateActor
44 | private var webSocketTask: URLSessionWebSocketTask?
45 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 |
47 | /// Initialize a new WebSocket transport.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:36: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | self.url = url
54 | self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ACPHTTP/WebSocketTransport.swift:52:50: error: value of type '_' expected to be instance of class or class-constrained type
50 | /// - url: The WebSocket URL to connect to (must use ws:// or wss://)
51 | /// - session: URLSession to use for connections (defaults to shared)
52 | public init(url: URL, session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
53 | self.url = url
54 | self.session = session
BUILD FAILURE 6.2 android