Build Information
Failed to build PhantomSwift, reference v1.1.1 (ee5fad), with Swift 6.0 for Linux on 24 Apr 2026 09:20:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 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: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/synaptode/PhantomSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/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)\""]
[5/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.
[6/10] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
[7/10] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[8/10] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
[9/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 |
[10/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)\""]
BUILD FAILURE 6.0 linux