The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SerpApi, reference main (d6f9c4), with Swift 6.3 for Wasm on 14 Oct 2026 11:47:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/serpapi/serpapi-swift.git
Reference: main
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/serpapi/serpapi-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d6f9c4b Fix capitalization in README
Cloned https://github.com/serpapi/serpapi-swift.git
Revision (git rev-parse @):
d6f9c4b74bcfbc61b2f90393fde9865280cfa988
SUCCESS checkout https://github.com/serpapi/serpapi-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/serpapi/serpapi-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:df2e9038ff906af397ec7b7e13902ccb183f8867606bc33419e44453a9abdb4b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.40s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3838] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.57s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.80s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Compiling SerpApi Version.swift
[6/8] Compiling SerpApi SerpApiError.swift
[7/8] Emitting module SerpApi
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     public let params: [String: String]
 59 |
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     /// Constructor
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SerpApiClient' has non-Sendable type 'AnyObject'
 58 |     public let params: [String: String]
 59 |
 60 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming class 'SerpApiClient' has non-Sendable type 'AnyObject'
 61 |
 62 |     /// Constructor
[8/8] Compiling SerpApi SerpApiClient.swift
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     public let params: [String: String]
 59 |
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     /// Constructor
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SerpApiClient' has non-Sendable type 'AnyObject'
 58 |     public let params: [String: String]
 59 |
 60 |     private let session: URLSession
    |                 `- error: stored property 'session' of 'Sendable'-conforming class 'SerpApiClient' has non-Sendable type 'AnyObject'
 61 |
 62 |     /// Constructor
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:103:71: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
101 |         self.params = baseParams
102 |
103 |         let configuration = self.persistent ? URLSessionConfiguration.default : URLSessionConfiguration.ephemeral
    |                                                                       `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 |         configuration.timeoutIntervalForRequest = self.timeout
105 |         // URLSession handles persistent connections by default via its connection pool.
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:103:105: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
101 |         self.params = baseParams
102 |
103 |         let configuration = self.persistent ? URLSessionConfiguration.default : URLSessionConfiguration.ephemeral
    |                                                                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
104 |         configuration.timeoutIntervalForRequest = self.timeout
105 |         // URLSession handles persistent connections by default via its connection pool.
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:107:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
105 |         // URLSession handles persistent connections by default via its connection pool.
106 |         // When `persistent` is false, an ephemeral configuration avoids persisting caches/cookies.
107 |         self.session = URLSession(configuration: configuration)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
108 |     }
109 |
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:199:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
197 |
198 |     deinit {
199 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
200 |     }
201 |
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:206:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
204 |     /// In URLSession, this invalidates the session and cancels tasks.
205 |     public func close() {
206 |         session.invalidateAndCancel()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
207 |     }
208 |
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:316:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
314 |         while true {
315 |             let data: Data
316 |             let httpResponse: HTTPURLResponse
    |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
317 |             do {
318 |                 let (responseData, response) = try await session.data(from: url)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:318:66: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
316 |             let httpResponse: HTTPURLResponse
317 |             do {
318 |                 let (responseData, response) = try await session.data(from: url)
    |                                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
319 |                 guard let http = response as? HTTPURLResponse else {
320 |                     throw SerpApiError.requestFailed("Invalid response type")
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:339:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
337 |             }
338 |
339 |             let status = httpResponse.statusCode
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
340 |
341 |             // Retry transient HTTP status codes while attempts remain, honoring Retry-After.
/host/spi-builder-workspace/Sources/SerpApi/SerpApiClient.swift:345:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
343 |                attempt < maxRetries,
344 |                Self.isRetryable(status: status) {
345 |                 let retryAfter = httpResponse.value(forHTTPHeaderField: Self.headerRetryAfter)
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
346 |                     .flatMap(Self.parseRetryAfter)
347 |                 try await sleepBeforeRetry(attempt: attempt, retryAfter: retryAfter)
BUILD FAILURE 6.3 wasm