Build Information
Failed to build SwiftPublicSuffixList, reference main (fdcb53
), with Swift 6.1 for Wasm on 28 May 2025 21:32:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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 fdcb530 Update README.md
Cloned https://github.com/ekscrypto/SwiftPublicSuffixList.git
Revision (git rev-parse @):
fdcb530170d96c6df8e416f5c0218da147f94da7
SUCCESS checkout https://github.com/ekscrypto/SwiftPublicSuffixList.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ekscrypto/SwiftPublicSuffixList.git
https://github.com/ekscrypto/SwiftPublicSuffixList.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftPublicSuffixList",
"name" : "SwiftPublicSuffixList",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SwiftPublicSuffixList",
"targets" : [
"SwiftPublicSuffixList"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftPublicSuffixListTests",
"module_type" : "SwiftTarget",
"name" : "SwiftPublicSuffixListTests",
"path" : "Tests/SwiftPublicSuffixListTests",
"sources" : [
"LoadSaveUpdateTests.swift",
"SwiftPublicSuffixListTests.swift"
],
"target_dependencies" : [
"SwiftPublicSuffixList"
],
"type" : "test"
},
{
"c99name" : "SwiftPublicSuffixList",
"module_type" : "SwiftTarget",
"name" : "SwiftPublicSuffixList",
"path" : "Sources/SwiftPublicSuffixList",
"product_memberships" : [
"SwiftPublicSuffixList"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/registry.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"PublicSuffixList.swift",
"PublicSuffixMatcher.swift",
"PublicSuffixOnlineRegistryFetcher.swift",
"PublicSuffixRulesRegistry.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/3] Write sources
[1/3] Copying registry.json
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[5/9] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:76:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | private static func rules(
75 | data: Data,
76 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | logger: (String) -> Void
78 | ) -> [[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:49:23: error: cannot find 'Thread' in scope
47 | ) -> [[String]]? {
48 |
49 | precondition(!Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
50 |
51 | var onlineRules: [[String]]?
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:29: error: cannot find 'DispatchGroup' in scope
51 | var onlineRules: [[String]]?
52 |
53 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
54 | dispatchGroup.enter()
55 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:56:23: error: cannot find 'URLRequest' in scope
54 | dispatchGroup.enter()
55 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
56 | var request = URLRequest(url: publicSuffixUrl)
| `- error: cannot find 'URLRequest' in scope
57 | if let cachePolicy = cachePolicyOrNil {
58 | request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:67:60: error: argument type '_' expected to be an instance of a class or class-constrained type
65 | return
66 | }
67 | onlineRules = Self.rules(data: data, response: response, logger: logger)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
68 | dispatchGroup.leave()
69 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:80:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
78 | ) -> [[String]]? {
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
81 | (200...299).contains(httpResponse.statusCode)
82 | else {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:80:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | ) -> [[String]]? {
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | (200...299).contains(httpResponse.statusCode)
82 | 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:81:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
81 | (200...299).contains(httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | else {
83 | logger("Non-successful response received from server for Public List Suffix")
[6/9] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
[8/9] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:20:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | final public class PublicSuffixList {
19 |
20 | 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.
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
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:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:23:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | public static let defaultUrlRequestHandler: URLRequestHandler = { request, completion in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:39:29: error: cannot find type 'URLRequest' in scope
37 | case filePath(String)
38 | case rules([[String]])
39 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
40 | case embedded
41 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:82:31: error: cannot find type 'Thread' in scope
80 | private let urlRequestHandler: URLRequestHandler
81 | private let accessLock: NSLock
82 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
83 |
84 | /// Asynchronously generate a PublicSuffixList instance initialized from the source specified
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:90:28: error: @escaping attribute only applies to function types
88 | public static func list(
89 | from source: InitializerSource = .embedded,
90 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
91 | ) async -> PublicSuffixList {
92 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:101:29: error: @escaping attribute only applies to function types
99 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
100 | init(source: InitializerSource = .embedded,
101 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
102 | ) {
103 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:148:56: error: cannot find type 'URLRequest' in scope
146 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
147 | /// - Returns: True if succeeded, false otherwise
148 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
149 | await withCheckedContinuation { continuation in
150 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:161:22: error: cannot find type 'URLRequest' in scope
159 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
160 | public func updateUsingOnlineRegistry(
161 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
162 | completion: @escaping (Bool) -> Void = { _ in }
163 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:76:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | private static func rules(
75 | data: Data,
76 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | logger: (String) -> Void
78 | ) -> [[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
[9/9] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:20:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | final public class PublicSuffixList {
19 |
20 | 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.
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
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:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:23:23: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | public static let defaultUrlRequestHandler: URLRequestHandler = { request, completion in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:39:29: error: cannot find type 'URLRequest' in scope
37 | case filePath(String)
38 | case rules([[String]])
39 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
40 | case embedded
41 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:82:31: error: cannot find type 'Thread' in scope
80 | private let urlRequestHandler: URLRequestHandler
81 | private let accessLock: NSLock
82 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
83 |
84 | /// Asynchronously generate a PublicSuffixList instance initialized from the source specified
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:90:28: error: @escaping attribute only applies to function types
88 | public static func list(
89 | from source: InitializerSource = .embedded,
90 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
91 | ) async -> PublicSuffixList {
92 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:101:29: error: @escaping attribute only applies to function types
99 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
100 | init(source: InitializerSource = .embedded,
101 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
102 | ) {
103 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:148:56: error: cannot find type 'URLRequest' in scope
146 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
147 | /// - Returns: True if succeeded, false otherwise
148 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
149 | await withCheckedContinuation { continuation in
150 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:161:22: error: cannot find type 'URLRequest' in scope
159 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
160 | public func updateUsingOnlineRegistry(
161 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
162 | completion: @escaping (Bool) -> Void = { _ in }
163 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:108:27: error: cannot find 'Thread' in scope
106 |
107 | case .onlineRegistry(let cachePolicy):
108 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
109 | if let fetchedRules = PublicSuffixListOnlineRegistryFetcher.fetch(
110 | logger: Self.logger,
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:119:27: error: cannot find 'Thread' in scope
117 |
118 | case .filePath(let path):
119 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
120 | self.unsafeRules = Self.rulesFromFile(path: path) ?? PublicSuffixRulesRegistry.rules
121 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:123:27: error: cannot find 'Thread' in scope
121 |
122 | case .embedded:
123 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
124 | self.unsafeRules = PublicSuffixRulesRegistry.rules
125 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:168:24: error: cannot find 'Thread' in scope
166 | }
167 | let requestHandler = self.urlRequestHandler
168 | updateThread = Thread { [weak self] in
| `- error: cannot find 'Thread' in scope
169 | var success: Bool = false
170 | if let onlineRules = PublicSuffixListOnlineRegistryFetcher.fetch(logger: Self.logger, cachePolicy: cachePolicy, urlRequestHandler: requestHandler) {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Emitting module SwiftPublicSuffixList
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:20:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | final public class PublicSuffixList {
19 |
20 | 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.
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
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:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:39:29: error: cannot find type 'URLRequest' in scope
37 | case filePath(String)
38 | case rules([[String]])
39 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
40 | case embedded
41 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:82:31: error: cannot find type 'Thread' in scope
80 | private let urlRequestHandler: URLRequestHandler
81 | private let accessLock: NSLock
82 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
83 |
84 | /// Asynchronously generate a PublicSuffixList instance initialized from the source specified
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:90:28: error: @escaping attribute only applies to function types
88 | public static func list(
89 | from source: InitializerSource = .embedded,
90 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
91 | ) async -> PublicSuffixList {
92 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:101:29: error: @escaping attribute only applies to function types
99 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
100 | init(source: InitializerSource = .embedded,
101 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
102 | ) {
103 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:148:56: error: cannot find type 'URLRequest' in scope
146 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
147 | /// - Returns: True if succeeded, false otherwise
148 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
149 | await withCheckedContinuation { continuation in
150 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:161:22: error: cannot find type 'URLRequest' in scope
159 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
160 | public func updateUsingOnlineRegistry(
161 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
162 | completion: @escaping (Bool) -> Void = { _ in }
163 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:76:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | private static func rules(
75 | data: Data,
76 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | logger: (String) -> Void
78 | ) -> [[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
[3/7] Compiling SwiftPublicSuffixList resource_bundle_accessor.swift
[4/7] Compiling SwiftPublicSuffixList PublicSuffixRulesRegistry.swift
[5/7] Compiling SwiftPublicSuffixList PublicSuffixOnlineRegistryFetcher.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:76:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | private static func rules(
75 | data: Data,
76 | response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | logger: (String) -> Void
78 | ) -> [[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:49:23: error: cannot find 'Thread' in scope
47 | ) -> [[String]]? {
48 |
49 | precondition(!Thread.isMainThread)
| `- error: cannot find 'Thread' in scope
50 |
51 | var onlineRules: [[String]]?
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:53:29: error: cannot find 'DispatchGroup' in scope
51 | var onlineRules: [[String]]?
52 |
53 | let dispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
54 | dispatchGroup.enter()
55 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:56:23: error: cannot find 'URLRequest' in scope
54 | dispatchGroup.enter()
55 | let publicSuffixUrl: URL = URL(string: "https://publicsuffix.org/list/public_suffix_list.dat")!
56 | var request = URLRequest(url: publicSuffixUrl)
| `- error: cannot find 'URLRequest' in scope
57 | if let cachePolicy = cachePolicyOrNil {
58 | request.cachePolicy = cachePolicy
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:67:60: error: argument type '_' expected to be an instance of a class or class-constrained type
65 | return
66 | }
67 | onlineRules = Self.rules(data: data, response: response, logger: logger)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
68 | dispatchGroup.leave()
69 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:80:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
78 | ) -> [[String]]? {
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
81 | (200...299).contains(httpResponse.statusCode)
82 | else {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:80:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | ) -> [[String]]? {
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | (200...299).contains(httpResponse.statusCode)
82 | 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:81:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 |
80 | guard let httpResponse = response as? HTTPURLResponse,
81 | (200...299).contains(httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | else {
83 | logger("Non-successful response received from server for Public List Suffix")
[6/7] Compiling SwiftPublicSuffixList PublicSuffixMatcher.swift
[7/7] Compiling SwiftPublicSuffixList PublicSuffixList.swift
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:20:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | final public class PublicSuffixList {
19 |
20 | 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.
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
22 | public typealias Logger = (String) -> Void
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:21:43: error: cannot find type 'URLRequest' in scope
19 |
20 | public typealias URLRequestCompletion = (Data?, URLResponse?, Error?) -> Void
21 | public typealias URLRequestHandler = (URLRequest, @escaping URLRequestCompletion) -> Void
| `- error: cannot find type 'URLRequest' in scope
22 | public typealias Logger = (String) -> Void
23 | public static var logger: Logger = { print($0) }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:39:29: error: cannot find type 'URLRequest' in scope
37 | case filePath(String)
38 | case rules([[String]])
39 | case onlineRegistry(URLRequest.CachePolicy?)
| `- error: cannot find type 'URLRequest' in scope
40 | case embedded
41 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:82:31: error: cannot find type 'Thread' in scope
80 | private let urlRequestHandler: URLRequestHandler
81 | private let accessLock: NSLock
82 | private var updateThread: Thread?
| `- error: cannot find type 'Thread' in scope
83 |
84 | /// Asynchronously generate a PublicSuffixList instance initialized from the source specified
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:90:28: error: @escaping attribute only applies to function types
88 | public static func list(
89 | from source: InitializerSource = .embedded,
90 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
91 | ) async -> PublicSuffixList {
92 | await withCheckedContinuation({ continuation in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:101:29: error: @escaping attribute only applies to function types
99 | /// - Parameter source: Except for .rules() source, all other sources may block the current thread temporarily and will not be allowed to run on the main thread (for your own good)
100 | init(source: InitializerSource = .embedded,
101 | urlRequestHandler: @escaping URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
102 | ) {
103 | switch source {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:148:56: error: cannot find type 'URLRequest' in scope
146 | /// - Parameter cachePolicy: URLRequest.CachePolicy to use, or nil to use URLSession default
147 | /// - Returns: True if succeeded, false otherwise
148 | public func updateUsingOnlineRegistry(cachePolicy: URLRequest.CachePolicy? = nil) async -> Bool {
| `- error: cannot find type 'URLRequest' in scope
149 | await withCheckedContinuation { continuation in
150 | updateUsingOnlineRegistry(cachePolicy: cachePolicy) { updated in
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:161:22: error: cannot find type 'URLRequest' in scope
159 | /// - completion: Closure to call when completed, will receive True if succeeded and False otherwise
160 | public func updateUsingOnlineRegistry(
161 | cachePolicy: URLRequest.CachePolicy? = nil,
| `- error: cannot find type 'URLRequest' in scope
162 | completion: @escaping (Bool) -> Void = { _ in }
163 | ) {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:108:27: error: cannot find 'Thread' in scope
106 |
107 | case .onlineRegistry(let cachePolicy):
108 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
109 | if let fetchedRules = PublicSuffixListOnlineRegistryFetcher.fetch(
110 | logger: Self.logger,
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:24:22: error: cannot find type 'URLRequest' in scope
22 | public static func fetch(
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
26 | ) async -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:25:28: error: @escaping attribute only applies to function types
23 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
24 | cachePolicy: URLRequest.CachePolicy?,
25 | urlRequestHandler: @escaping PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
| `- error: @escaping attribute only applies to function types
26 | ) async -> [[String]]? {
27 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixOnlineRegistryFetcher.swift:45:39: error: cannot find type 'URLRequest' in scope
43 | public static func fetch(
44 | logger: @escaping PublicSuffixList.Logger = PublicSuffixList.logger,
45 | cachePolicy cachePolicyOrNil: URLRequest.CachePolicy?,
| `- error: cannot find type 'URLRequest' in scope
46 | urlRequestHandler: PublicSuffixList.URLRequestHandler = PublicSuffixList.defaultUrlRequestHandler
47 | ) -> [[String]]? {
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:119:27: error: cannot find 'Thread' in scope
117 |
118 | case .filePath(let path):
119 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
120 | self.unsafeRules = Self.rulesFromFile(path: path) ?? PublicSuffixRulesRegistry.rules
121 |
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:123:27: error: cannot find 'Thread' in scope
121 |
122 | case .embedded:
123 | precondition(!Thread.isMainThread, "\(Self.self) May not be initialized on main thread due to long loading times")
| `- error: cannot find 'Thread' in scope
124 | self.unsafeRules = PublicSuffixRulesRegistry.rules
125 | }
/host/spi-builder-workspace/Sources/SwiftPublicSuffixList/PublicSuffixList.swift:168:24: error: cannot find 'Thread' in scope
166 | }
167 | let requestHandler = self.urlRequestHandler
168 | updateThread = Thread { [weak self] in
| `- error: cannot find 'Thread' in scope
169 | var success: Bool = false
170 | if let onlineRules = PublicSuffixListOnlineRegistryFetcher.fetch(logger: Self.logger, cachePolicy: cachePolicy, urlRequestHandler: requestHandler) {
BUILD FAILURE 6.1 wasm