Build Information
Failed to build SwiftPublicSuffixList, reference main (f3e076), with Swift 6.2 for Wasm on 29 Apr 2026 05:25:55 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekscrypto/SwiftPublicSuffixList.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/ekscrypto/SwiftPublicSuffixList
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f3e076b Update public suffix list - v3.1.3
Cloned https://github.com/ekscrypto/SwiftPublicSuffixList.git
Revision (git rev-parse @):
f3e076b1e491d8a77d72d089f23c9deefb468276
SUCCESS checkout https://github.com/ekscrypto/SwiftPublicSuffixList.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ekscrypto/SwiftPublicSuffixList.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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/8] Write sources
[0/8] Copying registry.trie
[3/8] Write swift-version-24593BA9C3E375BF.txt
[5/16] Compiling SwiftPublicSuffixList TrieFormat.swift
[6/16] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
[7/16] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:67:22: error: cannot find type 'URLRequest' in scope
65 | public static func fetch(
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
69 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:103:43: error: cannot find type 'URLRequest' in scope
101 | /// Handler type for performing URL requests. Exposed so tests and custom
102 | /// networking stacks can intercept traffic to `publicsuffix.org`.
103 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
104 |
105 | /// Logger function type for diagnostic messages.
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:68:28: error: @escaping attribute only applies to function types
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
69 | ) async -> [[String]]? {
70 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:100:39: error: cannot find type 'URLRequest' in scope
98 | public static func fetch(
99 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
100 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
101 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
102 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:131:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | private static func rules(
130 | data: Data,
131 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | logger: (String) -> Void
133 | ) -> [[String]]? {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:104:23: error: cannot find 'Thread' in scope
102 | ) -> [[String]]? {
103 |
104 | precondition(!Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
105 |
106 | var onlineRules: [[String]]?
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:108:29: error: cannot find 'DispatchGroup' in scope
106 | var onlineRules: [[String]]?
107 |
108 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
109 | dispatchGroup.enter()
110 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:111:23: error: cannot find 'URLRequest' in scope
109 | dispatchGroup.enter()
110 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
111 | var request = URLRequest(url: publicSuffixUrl)
| `- error: cannot find 'URLRequest' in scope
112 | if let cachePolicy = cachePolicyOrNil {
113 | request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:122:60: error: argument type '_' expected to be an instance of a class or class-constrained type
120 | return
121 | }
122 | onlineRules = Self.rules(data: data, response: response, logger: logger)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
123 | dispatchGroup.leave()
124 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:135:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
133 | ) -> [[String]]? {
134 |
135 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
136 | (200...299).contains(httpResponse.statusCode)
137 | else {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:135:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 | ) -> [[String]]? {
134 |
135 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 | (200...299).contains(httpResponse.statusCode)
137 | else {
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/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:136:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |
135 | guard let httpResponse = response as? HTTPURLResponse,
136 | (200...299).contains(httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 | else {
138 | logger("Non-successful response received from server for Public List Suffix")
[8/16] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:99:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// Completion handler type for URL request operations.
99 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | /// Handler type for performing URL requests. Exposed so tests and custom
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:103:43: error: cannot find type 'URLRequest' in scope
101 | /// Handler type for performing URL requests. Exposed so tests and custom
102 | /// networking stacks can intercept traffic to `publicsuffix.org`.
103 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
104 |
105 | /// Logger function type for diagnostic messages.
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:154:29: error: cannot find type 'URLRequest' in scope
152 | /// from it. Falls back to the embedded rules on failure. Blocks the
153 | /// calling thread; must not be invoked on the main thread.
154 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
155 |
156 | /// Use the rules bundled with the package (`registry.trie`).
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:181:31: error: cannot find type 'Thread' in scope
179 | private let urlRequestHandler: URLRequestHandler
180 | private let accessLock: NSLock
181 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
182 |
183 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:205:28: error: @escaping attribute only applies to function types
203 | public static func list(
204 | from source: InitializerSource = .embedded,
205 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
206 | ) async -> PublicSuffixList {
207 | await withCheckedContinuation { continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:224:36: error: @escaping attribute only applies to function types
222 | /// - urlRequestHandler: Handler used by runtime registry updates.
223 | public init(source: InitializerSource = .embedded,
224 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler) {
| `- error: @escaping attribute only applies to function types
225 | let initial: TrieMatcher
226 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:407:56: error: cannot find type 'URLRequest' in scope
405 | /// ```
406 | @available(macOS 10.15.0, iOS 13, tvOS 13, *)
407 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
408 | await withCheckedContinuation { continuation in
409 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:421:22: error: cannot find type 'URLRequest' in scope
419 | /// subsequent calls return immediately without invoking their completion.
420 | public func updateUsingOnlineRegistry(
421 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
422 | completion: @escaping (Bool) -> Void = { _ in }
423 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:232:27: error: cannot find 'Thread' in scope
230 |
231 | case .onlineRegistry(let cachePolicy):
232 | precondition(!Thread.isMainThread,
| `- error: cannot find 'Thread' in scope
233 | "\(Self.self) May not be initialized on main thread due to long loading times")
234 | if let rules = PublicSuffixListOnlineRegistryFetcher.fetch(
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:67:22: error: cannot find type 'URLRequest' in scope
65 | public static func fetch(
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
69 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:68:28: error: @escaping attribute only applies to function types
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
69 | ) async -> [[String]]? {
70 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:100:39: error: cannot find type 'URLRequest' in scope
98 | public static func fetch(
99 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
100 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
101 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
102 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:245:27: error: cannot find 'Thread' in scope
243 |
244 | case .filePath(let path):
245 | precondition(!Thread.isMainThread,
| `- error: cannot find 'Thread' in scope
246 | "\(Self.self) May not be initialized on main thread due to long loading times")
247 | initial = Self.matcherFromFile(path: path) ?? Self.embeddedMatcher()
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:426:24: error: cannot find 'Thread' in scope
424 | guard updateThread == nil else { return }
425 | let requestHandler = self.urlRequestHandler
426 | updateThread = Thread { [weak self] in
| `- error: cannot find 'Thread' in scope
427 | var success = false
428 | if let rules = PublicSuffixListOnlineRegistryFetcher.fetch(
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/16] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:99:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// Completion handler type for URL request operations.
99 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | /// Handler type for performing URL requests. Exposed so tests and custom
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:103:43: error: cannot find type 'URLRequest' in scope
101 | /// Handler type for performing URL requests. Exposed so tests and custom
102 | /// networking stacks can intercept traffic to `publicsuffix.org`.
103 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
104 |
105 | /// Logger function type for diagnostic messages.
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:154:29: error: cannot find type 'URLRequest' in scope
152 | /// from it. Falls back to the embedded rules on failure. Blocks the
153 | /// calling thread; must not be invoked on the main thread.
154 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
155 |
156 | /// Use the rules bundled with the package (`registry.trie`).
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:181:31: error: cannot find type 'Thread' in scope
179 | private let urlRequestHandler: URLRequestHandler
180 | private let accessLock: NSLock
181 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
182 |
183 | // MARK: - Initialization
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:205:28: error: @escaping attribute only applies to function types
203 | public static func list(
204 | from source: InitializerSource = .embedded,
205 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
206 | ) async -> PublicSuffixList {
207 | await withCheckedContinuation { continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:224:36: error: @escaping attribute only applies to function types
222 | /// - urlRequestHandler: Handler used by runtime registry updates.
223 | public init(source: InitializerSource = .embedded,
224 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler) {
| `- error: @escaping attribute only applies to function types
225 | let initial: TrieMatcher
226 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:407:56: error: cannot find type 'URLRequest' in scope
405 | /// ```
406 | @available(macOS 10.15.0, iOS 13, tvOS 13, *)
407 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
408 | await withCheckedContinuation { continuation in
409 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:421:22: error: cannot find type 'URLRequest' in scope
419 | /// subsequent calls return immediately without invoking their completion.
420 | public func updateUsingOnlineRegistry(
421 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
422 | completion: @escaping (Bool) -> Void = { _ in }
423 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:67:22: error: cannot find type 'URLRequest' in scope
65 | public static func fetch(
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
69 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:68:28: error: @escaping attribute only applies to function types
66 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
67 | cachePolicy: URLRequest.CachePolicy?,
68 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
69 | ) async -> [[String]]? {
70 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:100:39: error: cannot find type 'URLRequest' in scope
98 | public static func fetch(
99 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
100 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
101 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
102 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:131:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | private static func rules(
130 | data: Data,
131 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | logger: (String) -> Void
133 | ) -> [[String]]? {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[10/16] Compiling SwiftPublicSuffixList Punycode.swift
[11/16] Compiling SwiftPublicSuffixList TrieMatcher.swift
[12/16] Compiling SwiftPublicSuffixList TrieBuilder.swift
BUILD FAILURE 6.2 wasm