The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SafeURLKit, reference main (5b251c), with Swift 6.2 for Wasm on 29 Oct 2026 07:40:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adamtheturtle/SafeURLKit.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/adamtheturtle/SafeURLKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5b251c3 Merge pull request #156 from adamtheturtle/dependabot/github_actions/astral-sh/setup-uv-10.3.2
Cloned https://github.com/adamtheturtle/SafeURLKit.git
Revision (git rev-parse @):
5b251c31146351c8d72433f8b9ee6b8dc6767007
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/adamtheturtle/SafeURLKit.git at main
========================================
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-53886769-0":/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:c2cc4df169d3c45015ced899e997f329be5fc90bdbfce388bd8981e1ea44d639
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 URLStringParser.swift
[4/13] Compiling SafeURLKit SpecialPurposeAddresses.swift
[5/13] Compiling SafeURLKit SpecialUseDomains.swift
[6/14] Compiling SafeURLKit URLValidationError.swift
[7/14] Compiling SafeURLKit URLHost.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/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.
[9/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
[10/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
[11/14] Compiling SafeURLKit URLPolicy.swift
[12/14] Compiling SafeURLKit IPv4Address.swift
[13/14] Compiling SafeURLKit IPv6Address.swift
[14/14] Compiling SafeURLKit ValidatedURL.swift
BUILD FAILURE 6.2 wasm