Build Information
Failed to build PhantomSwift, reference v1.1.1 (ee5fad), with Swift 6.3 for Linux on 24 Apr 2026 09:19:46 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/swiftpackageindex/spi-images:basic-6.3-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.3
Building package at path: $PWD
https://github.com/synaptode/PhantomSwift.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/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
[5/10] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
[6/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)
[7/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)\""]
[8/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.
[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 PhantomRuleMatcher.swift
BUILD FAILURE 6.3 linux