Build Information
Failed to build PhantomSwift, reference v1.1.1 (ee5fad), with Swift 6.2 for Android on 24 Apr 2026 09:21:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.2-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/synaptode/PhantomSwift.git
Reference: v1.1.1
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/synaptode/PhantomSwift
* tag v1.1.1 -> FETCH_HEAD
HEAD is now at ee5fada Release v1.1.1
Cloned https://github.com/synaptode/PhantomSwift.git
Revision (git rev-parse @):
ee5fada779339bc0292769f80661cea181bf8f91
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/synaptode/PhantomSwift.git at v1.1.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/synaptode/PhantomSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:cb98f9856cb1288a0028ff0e63d4de86ca92d5e7890400e3e915f7ea3943ed55
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--11D90AFD9DD3AB2.txt
[4/10] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[5/10] Compiling PhantomSwiftNetworking PhantomCURLExporter.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomCURLExporter.swift:9:45: error: cannot find type 'URLRequest' in scope
7 | /// - Parameter request: The URLRequest to export.
8 | /// - Returns: A string containing the cURL command.
9 | public static func export(from request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
10 | guard let url = request.url else { return "" }
11 | var parts = ["curl \"\(url.absoluteString)\""]
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Emitting module PhantomSwiftNetworking
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/InterceptRule.swift:37:62: error: cannot find type 'URLRequest' in scope
35 |
36 | /// Modify request headers or body before sending.
37 | case modifyRequest(urlPattern: String, transform: (inout URLRequest) -> Void)
| `- error: cannot find type 'URLRequest' in scope
38 |
39 | /// Serve response from a local file in the app sandbox.
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:119:35: error: cannot find type 'URLRequest' in scope
117 |
118 | /// Finds the first matching rule for a given request and increments its hit counter.
119 | public func rule(for request: URLRequest) -> InterceptRule? {
| `- error: cannot find type 'URLRequest' in scope
120 | guard let url = request.url else { return nil }
121 |
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomCURLExporter.swift:9:45: error: cannot find type 'URLRequest' in scope
7 | /// - Parameter request: The URLRequest to export.
8 | /// - Returns: A string containing the cURL command.
9 | public static func export(from request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
10 | guard let url = request.url else { return "" }
11 | var parts = ["curl \"\(url.absoluteString)\""]
[7/10] Compiling PhantomSwiftNetworking PhantomInterceptor.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:119:35: error: cannot find type 'URLRequest' in scope
117 |
118 | /// Finds the first matching rule for a given request and increments its hit counter.
119 | public func rule(for request: URLRequest) -> InterceptRule? {
| `- error: cannot find type 'URLRequest' in scope
120 | guard let url = request.url else { return nil }
121 |
[8/10] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
[9/10] Compiling PhantomSwiftNetworking InterceptRule.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/InterceptRule.swift:37:62: error: cannot find type 'URLRequest' in scope
35 |
36 | /// Modify request headers or body before sending.
37 | case modifyRequest(urlPattern: String, transform: (inout URLRequest) -> Void)
| `- error: cannot find type 'URLRequest' in scope
38 |
39 | /// Serve response from a local file in the app sandbox.
[10/10] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
BUILD FAILURE 6.2 android