The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Hammer, reference 2.2.0 (93e602), with Swift 6.2 for Android on 29 Oct 2026 10:35:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lyft/hammer.git
Reference: 2.2.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/lyft/hammer
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at 93e602c Report agent errors as JSON with a code (#90)
Cloned https://github.com/lyft/hammer.git
Revision (git rev-parse @):
93e602cb35e3b5a87d1631b0650e29a7f59b7de6
SUCCESS checkout https://github.com/lyft/hammer.git at 2.2.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/lyft/hammer.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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
Building for debugging...
[0/9] Write sources
[4/9] Write swift-version--11D90AFD9DD3AB2.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/51] Emitting module Hammer
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[7/51] Compiling Hammer EventGenerator+Keyboard.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[8/51] Compiling Hammer KeyboardKey.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[9/51] Compiling Hammer EventGenerator+Marker.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[10/51] Compiling Hammer EventGenerator+Readiness.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[11/51] Compiling Hammer EventGenerator+Settings.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[12/55] Compiling HammerAgentCore JSONValue.swift
[13/55] Compiling Hammer AccessibilityElements.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[14/55] Compiling Hammer CoreGraphic+Extensions.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[15/55] Compiling Hammer Deadline.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[16/55] Compiling Hammer FrameTracker.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[17/55] Compiling Hammer EventGenerator+Stylus.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[18/55] Compiling Hammer StylusInfo.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[19/55] Compiling Hammer EventGenerator+SwiftUI.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[20/55] Compiling Hammer EventGenerator.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[21/55] Compiling Hammer HammerLocatable.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[22/55] Compiling Hammer HammerError.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[23/55] Compiling Hammer HammerWindow.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[24/55] Compiling Hammer MainRunLoop.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[25/55] Compiling Hammer Subviews.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[26/55] Compiling HammerAgentCore AgentWire.swift
[27/55] Compiling HammerAgentCore ArgumentValidation.swift
[28/55] Compiling HammerAgentCore CommandDescriptor.swift
[29/55] Compiling HammerAgentCore BuiltinCommands+Editing.swift
[30/55] Emitting module HammerAgentCore
[31/55] Compiling HammerAgentCore AgentGuide.swift
[32/55] Compiling HammerAgentCore BuiltinCommands.swift
[33/56] Compiling Hammer SwiftErrorHooks.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[34/56] Compiling Hammer TouchStorage.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[35/56] Compiling Hammer UIKit+Extensions.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[36/56] Compiling Hammer Waiting.swift
/host/spi-builder-workspace/Sources/Hammer/AppleInternal/AppleInternal+BackBoardServices.swift:2:8: error: no such module 'Darwin'
 1 | import CoreFoundation
 2 | import Darwin
   |        `- error: no such module 'Darwin'
 3 |
 4 | private let kBackBoardServicesPath
[37/56] Wrapping AST for HammerAgentCore for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/61] Compiling HammerCLI HammerCLI.swift
[40/61] Compiling HammerCLI CommandArguments.swift
[41/61] Emitting module HammerCLI
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:67:34: error: cannot find type 'URLRequest' in scope
 65 |     }
 66 |
 67 |     private func send(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
 68 |         var request = request
 69 |         // Commands such as waits and long presses take a while, and the app runs them one at a time
[42/61] Compiling HammerCLI MCPServer.swift
/host/spi-builder-workspace/Sources/HammerCLI/MCPServer.swift:12:56: error: value of type 'FileHandle' has no member 'bytes'
 10 |
 11 |     func run() async throws {
 12 |         for try await line in FileHandle.standardInput.bytes.lines where !line.isEmpty {
    |                                                        `- error: value of type 'FileHandle' has no member 'bytes'
 13 |             let message = try? JSONDecoder().decode([String: JSONValue].self, from: Data(line.utf8))
 14 |             guard let message else {
[43/61] Compiling HammerCLI AgentClient.swift
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:67:34: error: cannot find type 'URLRequest' in scope
 65 |     }
 66 |
 67 |     private func send(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
 68 |         var request = request
 69 |         // Commands such as waits and long presses take a while, and the app runs them one at a time
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:18:40: error: cannot find 'URLRequest' in scope
 16 |     func commands() async throws -> [CommandDescriptor] {
 17 |         let url = self.baseURL.appending(path: AgentEndpoint.commandsPath)
 18 |         let data = try await self.send(URLRequest(url: url))
    |                                        `- error: cannot find 'URLRequest' in scope
 19 |         return try JSONDecoder().decode([CommandDescriptor].self, from: data)
 20 |     }
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |     /// - returns: The command's JSON output.
 59 |     func run(_ name: String, arguments: [String: JSONValue]) async throws -> Data {
 60 |         var request = URLRequest(url: self.baseURL.appending(path: AgentEndpoint.commandPath(name)))
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         request.httpBody = try JSONEncoder().encode(arguments)
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:76:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |
 75 |         let data: Data
 76 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         do {
 78 |             (data, response) = try await URLSession.shared.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:78:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         let response: URLResponse
 77 |         do {
 78 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |         } catch let error as URLError {
 80 |             throw ClientError(error, port: self.port, timeout: request.timeoutInterval)
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:83:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 81 |         }
 82 |
 83 |         guard let status = (response as? HTTPURLResponse)?.statusCode, status != 200 else {
    |                                      `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |             return data
 85 |         }
/host/spi-builder-workspace/Sources/HammerCLI/AgentClient.swift:83:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 81 |         }
 82 |
 83 |         guard let status = (response as? HTTPURLResponse)?.statusCode, status != 200 else {
    |                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |             return data
 85 |         }
BUILD FAILURE 6.2 android