Build Information
Failed to build PhantomSwift, reference v1.1.1 (ee5fad), with Swift 6.1 for Android on 24 Apr 2026 09:21:15 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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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.1
Building package at path: $PWD
https://github.com/synaptode/PhantomSwift.git
https://github.com/synaptode/PhantomSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-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:14:23: warning: static property 'defaultConfig' is not concurrency-safe because non-'Sendable' type 'MockoonConfig' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | /// Persistent configuration for redirecting all traffic to a local Mockoon server.
7 | public struct MockoonConfig: Codable {
| `- note: consider making struct 'MockoonConfig' conform to the 'Sendable' protocol
8 | public var host: String
9 | public var port: Int
:
12 | public var excludePatterns: [String]
13 |
14 | public static let defaultConfig = MockoonConfig(host: "localhost", port: 3000, isEnabled: false, excludePatterns: [])
| |- warning: static property 'defaultConfig' is not concurrency-safe because non-'Sendable' type 'MockoonConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private static let defaultsKey = "com.phantomswift.mockoon.config"
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:34:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomInterceptor' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Singleton engine managing network interception rules.
33 | public final class PhantomInterceptor {
| `- note: class 'PhantomInterceptor' does not conform to the 'Sendable' protocol
34 | public static let shared = PhantomInterceptor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomInterceptor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
/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)\""]
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:6:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomNetworkSimulator' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// Simulates various network conditions like latency and packet loss.
5 | public final class PhantomNetworkSimulator {
| `- note: class 'PhantomNetworkSimulator' does not conform to the 'Sendable' protocol
6 | public static let shared = PhantomNetworkSimulator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomNetworkSimulator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let stateChangedNotification = Notification.Name("com.phantomswift.network.simulator.stateChanged")
8 |
[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 PhantomNetworkModel.swift
[7/10] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[8/10] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:6:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomNetworkSimulator' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | /// Simulates various network conditions like latency and packet loss.
5 | public final class PhantomNetworkSimulator {
| `- note: class 'PhantomNetworkSimulator' does not conform to the 'Sendable' protocol
6 | public static let shared = PhantomNetworkSimulator()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomNetworkSimulator' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let stateChangedNotification = Notification.Name("com.phantomswift.network.simulator.stateChanged")
8 |
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:43:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
41 | if latency > 0 {
42 | DispatchQueue.global().asyncAfter(deadline: .now() + latency) {
43 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 | } else {
[9/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)\""]
[10/10] Compiling PhantomSwiftNetworking PhantomInterceptor.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:14:23: warning: static property 'defaultConfig' is not concurrency-safe because non-'Sendable' type 'MockoonConfig' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | /// Persistent configuration for redirecting all traffic to a local Mockoon server.
7 | public struct MockoonConfig: Codable {
| `- note: consider making struct 'MockoonConfig' conform to the 'Sendable' protocol
8 | public var host: String
9 | public var port: Int
:
12 | public var excludePatterns: [String]
13 |
14 | public static let defaultConfig = MockoonConfig(host: "localhost", port: 3000, isEnabled: false, excludePatterns: [])
| |- warning: static property 'defaultConfig' is not concurrency-safe because non-'Sendable' type 'MockoonConfig' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultConfig' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | private static let defaultsKey = "com.phantomswift.mockoon.config"
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:34:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomInterceptor' may have shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | /// Singleton engine managing network interception rules.
33 | public final class PhantomInterceptor {
| `- note: class 'PhantomInterceptor' does not conform to the 'Sendable' protocol
34 | public static let shared = PhantomInterceptor()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PhantomInterceptor' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
/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 |
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d37fe7b8fba27dae59fb1d9d7dfa86b38b41ffb3975924aad6f05cb4cc3de131
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[3/8] 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)
[4/8] 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/8] 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 |
[6/8] 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.
[7/8] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
[8/8] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
BUILD FAILURE 6.1 android