The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PhantomSwift, reference v1.1.1 (ee5fad), with Swift 6.1 for Wasm on 24 Apr 2026 09:29:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build 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:         wasm
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-4606859-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
[5/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:20:9: error: cannot find 'NotificationCenter' in scope
18 |
19 |     private func notifyStateChanged() {
20 |         NotificationCenter.default.post(name: Self.stateChangedNotification, object: self)
   |         `- error: cannot find 'NotificationCenter' in scope
21 |     }
22 |
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:42:13: error: cannot find 'DispatchQueue' in scope
40 |         // 2. Simulate Latency
41 |         if latency > 0 {
42 |             DispatchQueue.global().asyncAfter(deadline: .now() + latency) {
   |             `- error: cannot find 'DispatchQueue' in scope
43 |                 completion(nil)
44 |             }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:42:58: error: cannot call value of non-function type 'Date'
40 |         // 2. Simulate Latency
41 |         if latency > 0 {
42 |             DispatchQueue.global().asyncAfter(deadline: .now() + latency) {
   |                                                          `- error: cannot call value of non-function type 'Date'
43 |                 completion(nil)
44 |             }
[6/10] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[7/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)
[8/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:36:25: error: cannot find 'DispatchQueue' in scope
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:36:91: error: cannot infer contextual base in reference to member 'concurrent'
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                                                                                           `- error: cannot infer contextual base in reference to member 'concurrent'
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/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 |
[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 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:36:25: error: cannot find 'DispatchQueue' in scope
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:36:91: error: cannot infer contextual base in reference to member 'concurrent'
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                                                                                           `- error: cannot infer contextual base in reference to member 'concurrent'
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/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/Interceptor/PhantomInterceptor.swift:53:28: error: cannot infer contextual base in reference to member 'barrier'
 51 |     /// Persists and applies a new Mockoon configuration.
 52 |     public func updateMockoon(_ config: MockoonConfig) {
 53 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 54 |             self._mockoonConfig = config
 55 |             config.save()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:65:58: error: 'nil' requires a contextual type
 63 |         guard let url = url else { return nil }
 64 |         return queue.sync {
 65 |             guard _mockoonConfig.isEnabled else { return nil }
    |                                                          `- error: 'nil' requires a contextual type
 66 |             // Check exclude patterns — if matched, bypass Mockoon
 67 |             let isExcluded = _mockoonConfig.excludePatterns.contains { pattern in
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:81:28: error: cannot infer contextual base in reference to member 'barrier'
 79 |     /// Adds a new interception rule.
 80 |     public func add(rule: InterceptRule) {
 81 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 82 |             let wrappedRule = PhantomInterceptRule(rule: rule)
 83 |             self.rules.append(wrappedRule)
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:89:28: error: cannot infer contextual base in reference to member 'barrier'
 87 |     /// Toggles a rule's enabled state.
 88 |     public func toggle(id: UUID) {
 89 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 90 |             if let index = self.rules.firstIndex(where: { $0.id == id }) {
 91 |                 self.rules[index].isEnabled.toggle()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:98:28: error: cannot infer contextual base in reference to member 'barrier'
 96 |     /// Deletes a rule.
 97 |     public func delete(id: UUID) {
 98 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 99 |             self.rules.removeAll(where: { $0.id == id })
100 |         }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:105:28: error: cannot infer contextual base in reference to member 'barrier'
103 |     /// Removes all rules.
104 |     public func clear() {
105 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
106 |             self.rules.removeAll()
107 |             self.recentEvents.removeAll()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:113:28: error: cannot infer contextual base in reference to member 'barrier'
111 |     /// Resets hit counters on all rules to zero.
112 |     public func resetHitCounts() {
113 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
114 |             for i in self.rules.indices { self.rules[i].hitCount = 0 }
115 |         }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:139:29: error: cannot infer contextual base in reference to member 'barrier'
137 |
138 |         // Increment hit count asynchronously (non-blocking)
139 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
140 |             self.rules[index].hitCount += 1
141 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:20:9: error: cannot find 'NotificationCenter' in scope
18 |
19 |     private func notifyStateChanged() {
20 |         NotificationCenter.default.post(name: Self.stateChangedNotification, object: self)
   |         `- error: cannot find 'NotificationCenter' in scope
21 |     }
22 |
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:42:13: error: cannot find 'DispatchQueue' in scope
40 |         // 2. Simulate Latency
41 |         if latency > 0 {
42 |             DispatchQueue.global().asyncAfter(deadline: .now() + latency) {
   |             `- error: cannot find 'DispatchQueue' in scope
43 |                 completion(nil)
44 |             }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:42:58: error: cannot call value of non-function type 'Date'
40 |         // 2. Simulate Latency
41 |         if latency > 0 {
42 |             DispatchQueue.global().asyncAfter(deadline: .now() + latency) {
   |                                                          `- error: cannot call value of non-function type 'Date'
43 |                 completion(nil)
44 |             }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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:36:25: error: cannot find 'DispatchQueue' in scope
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:36:91: error: cannot infer contextual base in reference to member 'concurrent'
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                                                                                           `- error: cannot infer contextual base in reference to member 'concurrent'
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/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)\""]
[4/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.
[5/8] Compiling PhantomSwiftNetworking PhantomInterceptor.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:36:25: error: cannot find 'DispatchQueue' in scope
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:36:91: error: cannot infer contextual base in reference to member 'concurrent'
 34 |     public static let shared = PhantomInterceptor()
 35 |
 36 |     private let queue = DispatchQueue(label: "com.phantomswift.interceptor", attributes: .concurrent)
    |                                                                                           `- error: cannot infer contextual base in reference to member 'concurrent'
 37 |     private let maxRecentEvents = 20
 38 |     private var rules: [PhantomInterceptRule] = []
/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/Interceptor/PhantomInterceptor.swift:53:28: error: cannot infer contextual base in reference to member 'barrier'
 51 |     /// Persists and applies a new Mockoon configuration.
 52 |     public func updateMockoon(_ config: MockoonConfig) {
 53 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 54 |             self._mockoonConfig = config
 55 |             config.save()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:65:58: error: 'nil' requires a contextual type
 63 |         guard let url = url else { return nil }
 64 |         return queue.sync {
 65 |             guard _mockoonConfig.isEnabled else { return nil }
    |                                                          `- error: 'nil' requires a contextual type
 66 |             // Check exclude patterns — if matched, bypass Mockoon
 67 |             let isExcluded = _mockoonConfig.excludePatterns.contains { pattern in
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:81:28: error: cannot infer contextual base in reference to member 'barrier'
 79 |     /// Adds a new interception rule.
 80 |     public func add(rule: InterceptRule) {
 81 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 82 |             let wrappedRule = PhantomInterceptRule(rule: rule)
 83 |             self.rules.append(wrappedRule)
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:89:28: error: cannot infer contextual base in reference to member 'barrier'
 87 |     /// Toggles a rule's enabled state.
 88 |     public func toggle(id: UUID) {
 89 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 90 |             if let index = self.rules.firstIndex(where: { $0.id == id }) {
 91 |                 self.rules[index].isEnabled.toggle()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:98:28: error: cannot infer contextual base in reference to member 'barrier'
 96 |     /// Deletes a rule.
 97 |     public func delete(id: UUID) {
 98 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
 99 |             self.rules.removeAll(where: { $0.id == id })
100 |         }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:105:28: error: cannot infer contextual base in reference to member 'barrier'
103 |     /// Removes all rules.
104 |     public func clear() {
105 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
106 |             self.rules.removeAll()
107 |             self.recentEvents.removeAll()
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:113:28: error: cannot infer contextual base in reference to member 'barrier'
111 |     /// Resets hit counters on all rules to zero.
112 |     public func resetHitCounts() {
113 |         queue.sync(flags: .barrier) {
    |                            `- error: cannot infer contextual base in reference to member 'barrier'
114 |             for i in self.rules.indices { self.rules[i].hitCount = 0 }
115 |         }
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Interceptor/PhantomInterceptor.swift:139:29: error: cannot infer contextual base in reference to member 'barrier'
137 |
138 |         // Increment hit count asynchronously (non-blocking)
139 |         queue.async(flags: .barrier) {
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
140 |             self.rules[index].hitCount += 1
141 |
[6/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)\""]
[7/8] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[8/8] Compiling PhantomSwiftNetworking PhantomNetworkModel.swift
BUILD FAILURE 6.1 wasm