Build Information
Failed to build SafeURLKit, reference 0.2.0 (e9c4ed), with Swift 6.2 for Wasm on 8 Sep 2026 20:34:45 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adamtheturtle/SafeURLKit.git
Reference: 0.2.0
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/adamtheturtle/SafeURLKit
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at e9c4edd Merge pull request #148 from adamtheturtle/codex/vale-alignment
Cloned https://github.com/adamtheturtle/SafeURLKit.git
Revision (git rev-parse @):
e9c4eddcfd3e16669a19f46142f487d9b74fbc14
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/adamtheturtle/SafeURLKit.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/adamtheturtle/SafeURLKit.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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling SafeURLKit URLHost.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Compiling SafeURLKit IPv4Address.swift
[5/14] Compiling SafeURLKit IPv6Address.swift
[6/14] Emitting module SafeURLKit
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:105:29: error: cannot find type 'URLRequest' in scope
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
106 | completionHandler: @escaping (URLRequest?) -> Void
107 | ) {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:106:39: error: cannot find type 'URLRequest' in scope
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
107 | ) {
108 | guard let url = request.url else {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:102:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | /// stored properties on a `final` class whose superclass is not `Sendable`.
101 | public func urlSession(
102 | _: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:103:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | public func urlSession(
102 | _: URLSession,
103 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:104:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | _: URLSession,
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:137:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 | private func validateRedirect(
137 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:84: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:39: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:53:63: error: cannot find type 'URLSessionTaskDelegate' in scope
51 | /// Subclassing is already impossible (`final`); do not copy this pattern onto a
52 | /// non-final type without the same immutability guarantees.
53 | public final class PolicyEnforcingRedirectDelegate: NSObject, URLSessionTaskDelegate,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
54 | @unchecked Sendable {
55 | /// The policy applied to each redirect target.
[7/14] Compiling SafeURLKit URLValidationError.swift
[8/14] Compiling SafeURLKit URLPolicy.swift
[9/14] Compiling SafeURLKit SpecialPurposeAddresses.swift
[10/14] Compiling SafeURLKit SpecialUseDomains.swift
[11/14] Compiling SafeURLKit OriginRule.swift
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:105:29: error: cannot find type 'URLRequest' in scope
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
106 | completionHandler: @escaping (URLRequest?) -> Void
107 | ) {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:106:39: error: cannot find type 'URLRequest' in scope
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
107 | ) {
108 | guard let url = request.url else {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:102:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | /// stored properties on a `final` class whose superclass is not `Sendable`.
101 | public func urlSession(
102 | _: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:103:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | public func urlSession(
102 | _: URLSession,
103 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:104:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | _: URLSession,
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:137:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 | private func validateRedirect(
137 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:84: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:39: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:53:63: error: cannot find type 'URLSessionTaskDelegate' in scope
51 | /// Subclassing is already impossible (`final`); do not copy this pattern onto a
52 | /// non-final type without the same immutability guarantees.
53 | public final class PolicyEnforcingRedirectDelegate: NSObject, URLSessionTaskDelegate,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
54 | @unchecked Sendable {
55 | /// The policy applied to each redirect target.
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:109:31: error: 'nil' requires a contextual type
107 | ) {
108 | guard let url = request.url else {
109 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
110 | return
111 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:121:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
119 | )
120 | }
121 | completionHandler(sanitized(request, redirectingFrom: response.url))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
122 | } catch let error as URLValidationError {
123 | onRejection?(url, error)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:125:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
123 | onRejection?(url, error)
124 | if rejectedRedirectBehavior == .cancelTask {
125 | task.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
126 | }
127 | completionHandler(nil)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:127:31: error: 'nil' requires a contextual type
125 | task.cancel()
126 | }
127 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
128 | } catch {
129 | if rejectedRedirectBehavior == .cancelTask {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:130:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
128 | } catch {
129 | if rejectedRedirectBehavior == .cancelTask {
130 | task.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
131 | }
132 | completionHandler(nil)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:132:31: error: 'nil' requires a contextual type
130 | task.cancel()
131 | }
132 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
133 | }
134 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:140:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
140 | guard let location = response.value(forHTTPHeaderField: "Location") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
141 | throw .malformedURL(reason: "the redirect response has no Location header")
142 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:150:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
148 | }
149 |
150 | let absoluteLocation = try absoluteLocationString(location, base: response.url)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
151 | if let absoluteLocation {
152 | let validated = try policy.validate(absoluteLocation)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:164:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 |
163 | guard
164 | let base = response.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | let resolved = URL(string: location, relativeTo: base)?.absoluteURL
166 | else {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:228:29: error: 'nil' requires a contextual type
226 | }
227 | for name in headers.keys where sensitiveHeaderFields.contains(name.lowercasedASCII) {
228 | result.setValue(nil, forHTTPHeaderField: name)
| `- error: 'nil' requires a contextual type
229 | }
230 | // Foundation may keep a canonical spelling after setValue(nil); rebuild the field
[12/14] Compiling SafeURLKit PolicyEnforcingRedirectDelegate.swift
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:105:29: error: cannot find type 'URLRequest' in scope
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
106 | completionHandler: @escaping (URLRequest?) -> Void
107 | ) {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:106:39: error: cannot find type 'URLRequest' in scope
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
107 | ) {
108 | guard let url = request.url else {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:102:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | /// stored properties on a `final` class whose superclass is not `Sendable`.
101 | public func urlSession(
102 | _: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:103:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | public func urlSession(
102 | _: URLSession,
103 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:104:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | _: URLSession,
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:137:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 | private func validateRedirect(
137 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
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/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:84: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:39: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:53:63: error: cannot find type 'URLSessionTaskDelegate' in scope
51 | /// Subclassing is already impossible (`final`); do not copy this pattern onto a
52 | /// non-final type without the same immutability guarantees.
53 | public final class PolicyEnforcingRedirectDelegate: NSObject, URLSessionTaskDelegate,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
54 | @unchecked Sendable {
55 | /// The policy applied to each redirect target.
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:109:31: error: 'nil' requires a contextual type
107 | ) {
108 | guard let url = request.url else {
109 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
110 | return
111 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:121:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
119 | )
120 | }
121 | completionHandler(sanitized(request, redirectingFrom: response.url))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
122 | } catch let error as URLValidationError {
123 | onRejection?(url, error)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:125:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
123 | onRejection?(url, error)
124 | if rejectedRedirectBehavior == .cancelTask {
125 | task.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
126 | }
127 | completionHandler(nil)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:127:31: error: 'nil' requires a contextual type
125 | task.cancel()
126 | }
127 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
128 | } catch {
129 | if rejectedRedirectBehavior == .cancelTask {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:130:22: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
128 | } catch {
129 | if rejectedRedirectBehavior == .cancelTask {
130 | task.cancel()
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
131 | }
132 | completionHandler(nil)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:132:31: error: 'nil' requires a contextual type
130 | task.cancel()
131 | }
132 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
133 | }
134 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:140:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
140 | guard let location = response.value(forHTTPHeaderField: "Location") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
141 | throw .malformedURL(reason: "the redirect response has no Location header")
142 | }
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:150:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
148 | }
149 |
150 | let absoluteLocation = try absoluteLocationString(location, base: response.url)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
151 | if let absoluteLocation {
152 | let validated = try policy.validate(absoluteLocation)
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:164:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
162 |
163 | guard
164 | let base = response.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
165 | let resolved = URL(string: location, relativeTo: base)?.absoluteURL
166 | else {
/host/spi-builder-workspace/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:228:29: error: 'nil' requires a contextual type
226 | }
227 | for name in headers.keys where sensitiveHeaderFields.contains(name.lowercasedASCII) {
228 | result.setValue(nil, forHTTPHeaderField: name)
| `- error: 'nil' requires a contextual type
229 | }
230 | // Foundation may keep a canonical spelling after setValue(nil); rebuild the field
[13/14] Compiling SafeURLKit URLStringParser.swift
[14/14] Compiling SafeURLKit ValidatedURL.swift
BUILD FAILURE 6.2 wasm