The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PhantomSwift, reference master (ee5fad), with Swift 6.3 for Wasm on 24 Apr 2026 09:28:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/synaptode/PhantomSwift.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         wasm
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-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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling PhantomSwiftNetworking PhantomNetworkSimulator.swift
/host/spi-builder-workspace/Sources/PhantomSwiftNetworking/Modules/Network/Core/PhantomNetworkSimulator.swift:20:36: error: no exact matches in call to instance method 'post'
18 |
19 |     private func notifyStateChanged() {
20 |         NotificationCenter.default.post(name: Self.stateChangedNotification, object: self)
   |                                    |- error: no exact matches in call to instance method 'post'
   |                                    |- note: found candidate with type '(Notification.Name, Notification.Name.Subject) -> ()' (aka '(NSNotification.Name, Notification.Name.Subject) -> ()')
   |                                    |- note: found candidate with type '(Notification.Name) -> ()' (aka '(NSNotification.Name) -> ()')
   |                                    |- note: found candidate with type '@MainActor (Notification.Name, Notification.Name.Subject) -> ()' (aka '@MainActor (NSNotification.Name, Notification.Name.Subject) -> ()')
   |                                    `- note: found candidate with type '@MainActor (Notification.Name) -> ()' (aka '@MainActor (NSNotification.Name) -> ()')
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)
[5/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: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)\""]
[6/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.
[7/10] Compiling PhantomSwiftNetworking PhantomRuleMatcher.swift
[8/10] 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 |
[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 PhantomNetworkModel.swift
BUILD FAILURE 6.3 wasm